Add pretty printers for the NPTL lock types
[platform/upstream/glibc.git] / ChangeLog
1 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
2
3         * INSTALL: Regenerated.
4         * Makeconfig: Add comments and whitespace to make the control flow
5         clearer.
6         (+link-printers-tests, +link-pie-printers-tests,
7         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
8         built-rtld-LDFLAGS, link-libc-rpath,
9         link-libc-tests-after-rpath-link,
10         link-libc-printers-tests): New.
11         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
12         link-libc-tests): Use the new variables as required.
13         * Makerules ($(py-const)): New rule.
14         generated: Add $(py-const).
15         * README.pretty-printers: New file.
16         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
17         (others): Depend on $(py-const).
18         (tests): Depend on $(tests-printers-programs) or
19         $(tests-printers-out),
20         as required.  Pass $(tests-printers) to merge-test-results.sh.
21         * manual/install.texi: Add requirements for testing the pretty
22         printers.
23         * nptl/Makefile (gen-py-const-headers, pretty-printers,
24         tests-printers, CFLAGS-test-mutexattr-printers.c
25         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
26         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
27         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
28         * nptl/nptl-printers.py: New file.
29         * nptl/nptl_lock_constants.pysym: Likewise.
30         * nptl/test-cond-printers.c: Likewise.
31         * nptl/test-cond-printers.py: Likewise.
32         * nptl/test-condattr-printers.c: Likewise.
33         * nptl/test-condattr-printers.py: Likewise.
34         * nptl/test-mutex-printers.c: Likewise.
35         * nptl/test-mutex-printers.py: Likewise.
36         * nptl/test-mutexattr-printers.c: Likewise.
37         * nptl/test-mutexattr-printers.py: Likewise.
38         * nptl/test-rwlock-printers.c: Likewise.
39         * nptl/test-rwlock-printers.py: Likewise.
40         * nptl/test-rwlockattr-printers.c: Likewise.
41         * nptl/test-rwlockattr-printers.py: Likewise.
42         * scripts/gen-py-const.awk: Likewise.
43         * scripts/test_printers_common.py: Likewise.
44         * scripts/test_printers_exceptions.py: Likewise.
45
46 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
47
48         * scripts/build-many-glibcs.py (Context.__init__): Take strip
49         argument.
50         (Glibc.build_glibc): Strip installed shared libraries if
51         requested.
52         (get_parser): Add --strip option.
53         (main): Update Context call.
54
55 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
56             Dominik Vogt  <vogt@linux.vnet.ibm.com>
57
58         [BZ #20847]
59         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
60         array bounds for else branch.
61         (__execvpe): Style fixes.
62         * posix/tst-vfork3.c (run_script): New function.
63         (create_script): Likewise.
64         (do_test): Use run_script internal function.
65         (do_prepare): Use create_script internal function.
66
67 2016-12-07  Andreas Schwab  <schwab@suse.de>
68
69         * sysdeps/unix/sysv/linux/x86/elision-conf.h
70         (__elision_available): Don't declare.
71         * sysdeps/unix/sysv/linux/x86/elision-conf.c
72         (__elision_available): Don't define.
73         (elision_init): Don't set __elision_available.
74
75 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
76
77         [BZ #20940]
78         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
79         return Inf for arguments Inf and sNaN.
80         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
81         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
82         Likewise.
83         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
84         Likewise.
85         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
86         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
87         for arguments Inf and sNaN.  When returning a NaN, compute it by
88         arithmetic on the arguments.
89         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
90         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
91         arguments.
92
93 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
94
95         [BZ #20916]
96         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
97         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
98         to compute result.
99         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
100         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
101
102 2016-12-05  Torvald Riegel  <triegel@redhat.com>
103
104         * include/atomic.h (__atomic_check_size_ls): New.
105         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
106         atomic_store_release): Use it.
107         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
108         (elision_adapt, ELIDE_LOCK): Use atomics.
109         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
110         atomics and improve code comments.
111         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
112         (__lll_trylock_elision): Likewise.
113
114 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
115
116         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
117         programs.
118
119 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
120
121         [BZ #20916]
122         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
123         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
124         arguments to compute result.
125         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
126         1 for arguments (sNaN, 0) or (1, sNaN).
127         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
128         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
129
130         [BZ #20919]
131         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
132         NaN first argument when raised to power 0.
133         * math/w_pow.c (__pow): Do not check for NaN or zero results from
134         raising to power zero.
135         * math/w_powf.c (__powf): Likewise.
136         * math/w_powl.c (__powl): Likewise.
137         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
138         pow (0, 0) or pow (NaN, 0).
139
140 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
141
142         [BZ #20918]
143         * configure.ac: Test for static NSS cryptographic libraries and set
144         libc_cv_static_nss_crypt.
145         * configure: Regenerate.
146         * config.make.in (static-nss-crypt): Define.
147         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
148         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
149         (CFLAGS-tst-linkall-static.c): Define.
150         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
151         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
152         ($(objpfx)tst-linkall-static): Define.
153         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
154         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
155
156 2016-12-02  Florian Weimer  <fweimer@redhat.com>
157
158         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
159         (one-hundred, tst-tls-many-dynamic-modules): Define.
160         (modules-names): Add $(tst-tls-many-dynamic-modules).
161         (tst-tls-manydynamic%mod.os): Build with special preprocessor
162         macros.
163         (tst-tls-manydynamic): Link against libdl, libpthread.
164         (tst-tls-manydynamic.out): The test needs the test modules at run
165         time.
166         * elf/tst-tls-manydynamic.c: New file.
167         * elf/tst-tls-manydynamic.h: Likewise.
168         * elf/tst-tls-manydynamicmod.c: Likewise.
169
170 2016-12-02  Florian Weimer  <fweimer@redhat.com>
171
172         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
173         (TLS_DTV_UNALLOCATED): Add.
174         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
175         offsets.
176
177 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
178
179         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
180
181 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
182
183         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
184         Add -fno-optimize-sibling-calls.
185
186 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
187
188         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
189         New declaration.
190         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
191         macro.
192         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
193         New macro.
194         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
195         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
196         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
197         (llogbf): Likewise.
198         (llogbl): Likewise.
199         * math/Makefile (gen-libm-calls): Add w_llogbF.
200         (tests): Add test-fp-llogb-constants.
201         * math/w_llogb_template.c: New file.  Based on
202         math/w_ilogb_template.c.
203         * math/libm-test.inc (llogb_test_data): New array.
204         (llogb_test): New function.
205         (main): Call llogb_test.
206         * math/test-fp-llogb-constants.c: New file.  Based on
207         math/test-fp-ilogb-constants.c.
208         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
209         (do_test): Call check_return_llogb.
210         * math/test-tgmath.c (NCALLS): Increase to 126.
211         (F(compile_test)): Call llogb.
212         (F(llogb)): New function.
213         * manual/math.texi (Exponents and Logarithms): Document llogb,
214         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
215         * manual/libm-err-tab.pl (@all_functions): Add llogb.
216         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
217         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
218         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
219         (CFLAGS-nldbl-llogb.c): New variable.
220         * sysdeps/nacl/libm.abilist: Update.
221         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
222         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
223         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
224         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
225         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
226         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
227         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
228         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
229         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
230         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
231         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
232         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
234         Likewise.
235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
236         Likewise.
237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
238         Likewise.
239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
240         Likewise.
241         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
242         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
243         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
244         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
245         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
246         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
247         Likewise.
248         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
249         Likewise.
250         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
251         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
252         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
253
254 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
255
256         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
257         _Float128 instead of long double.
258         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
259
260         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
261         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
262         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
263         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
264         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
265         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
266         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
267         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
268         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
269         Likewise.
270
271 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
272
273         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
274         Remove redirection to __strrchr_ppc.
275
276 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
277
278         * sysdeps/powerpc/powerpc64/multiarch/Makefile
279         (sysdep_routines): Add strcmp_power9.
280         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
281         (strcmp): Add __strcmp_power9 to list of strcmp functions.
282         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
283         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
284         (strcmp): Add __strcmp_power9 to ifunc list.
285         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
286
287 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
288
289         * bits/fp-logb.h: New file.
290         * sysdeps/ia64/bits/fp-logb.h: Likewise.
291         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
292         * sysdeps/x86/bits/fp-logb.h: Likewise.
293         * math/Makefile (headers): Add bits/fp-logb.h.
294         * math/math.h: Include <bits/fp-logb.h>.
295         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
296         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
297         * bits/mathdef.h (FP_ILOGB0): Remove.
298         (FP_ILOGBNAN): Likewise.
299         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
300         (FP_ILOGBNAN): Likewise.
301         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
302         (FP_ILOGBNAN): Likewise.
303         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
304         (FP_ILOGBNAN): Likewise.
305         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
306         (FP_ILOGBNAN): Likewise.
307         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
308         (FP_ILOGBNAN): Likewise.
309         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
310         (FP_ILOGBNAN): Likewise.
311         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
312         (FP_ILOGBNAN): Likewise.
313         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
314         (FP_ILOGBNAN): Likewise.
315         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
316         (FP_ILOGBNAN): Likewise.
317
318         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
319         time module.
320         (Context.__init__): Initialize self.logsdir_old.
321         (Context.run_builds): Handle bot action.
322         (Context.bot_cycle): Copy logs directory before running builds.
323         (Context.bot_run_self): Take argument for whether to check
324         subprocess result.  Flush stdout before running subprocess.
325         (Context.bot): New function.
326         (get_parser): Allow bot action.
327
328 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
329
330         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
331         Import email.mime.text, email.utils and smtplib modules.
332         (Context.__init__): Initialize self.bot_config_json.
333         (Context.run_builds): Handle bot-cycle action.
334         (Context.load_bot_config_json): New function.
335         (Context.part_build_old): Likewise.
336         (Context.bot_cycle): Likewise.
337         (Context.bot_build_mail): Likewise.
338         (Context.bot_run_self): Likewise.
339         (get_parser): Allow bot-cycle action.
340
341 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
342
343         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
344         Remove redirection to __stpcpy_ppc.
345
346 2016-11-30  Florian Weimer  <fweimer@redhat.com>
347
348         Remove __libc_memalign from ld.so because it is unused.
349         * elf/dl-minimal.c: Update comment on the malloc implementation.
350         (malloc): Renamed from __libc_memalign, replacing the original
351         malloc implementation.  Replace the align parameter with
352         MALLOC_ALIGNMENT.
353         * elf/Versions (ld): Update comment and remove __libc_memalign.
354         * sysdeps/nacl/ld.abilist: Likewise.
355         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
356         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
357         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
358         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
359         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
360         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
361         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
362         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
363         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
364         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
365         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
366         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
367         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
371         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
372         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
373         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
374         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
375         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
376         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
378         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
379         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
380         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
381         * sysdeps/generic/localplt.data (ld.so): Likewise.
382         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
383         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
384         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
385         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
386         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
387         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
388         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
389         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
390         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
392         (ld.so): Likewise.
393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
394         (ld.so): Likewise.
395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
396         Likewise.
397         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
398         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
399         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
400         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
401         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
402
403 2016-11-30  Florian Weimer  <fweimer@redhat.com>
404
405         [BZ #16628]
406         Implement _dl_catch_error, _dl_signal_error in libc.so.
407         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
408         (catch_hook): Define as thread-local or regular variable,
409         depending on DL_ERROR_BOOTSTRAP.
410         (CATCH_HOOK): Remove.
411         (dl_signal_error, _dl_catch_error): Use
412         catch_hook.  Add hidden definition for libc.
413         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
414         for DL_ERROR_BOOTSTRAP only.
415         * elf/dl-error.c: New file.
416         * elf/dl-error-minimal.c: Likewise.
417         * elf/tst-latepthread.c: Likewise.
418         * elf/tst-latepthreadmod.c: Likewise.
419         * elf/Makefile (routines): Add dl-error.
420         (dl-routines): Remove dl-error.
421         (rtld-routines): Add dl-error-minimal.
422         [build-shared] (tests): Add tst-latepthread.
423         (module-names): Add tst-latepthreadmod.
424         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
425         symbol.
426         (tst-latepthreadmod.so): Link against libpthread.
427         (tst-latepthread): Link against libdbl.
428         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
429         _dl_catch_error.
430         [ld] (GLIBC_PRIVATE): Likewise.
431         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
432         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
433         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
434         directly.
435         * elf/dl-tsd.c: Remove file.
436         * elf/rtld.c (_rtld_global_ro): Remove initializers for
437         _dl_catch_error, _dl_signal_error.
438         (_dl_initial_error_catch_tsd): Remove definition.
439         (do_preload): Remove initialization of dl_error_catch_tsd.
440         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
441         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
442         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
443         * dlfcn/dlopen.c (dlopen_doit): Likewise.
444         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
445         set dl_error_catch_tsd.
446         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
447         _dl_error_catch_tsd member.
448         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
449         members.
450         (_dl_initial_error_catch_tsd): Remove declaration.
451         (_dl_dprintf): Provide definition for use outside of ld.so.
452         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
453         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
454         prototype for libc.
455         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
456         _dl_catch_error.
457         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
458         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
459         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
460         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
461         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
462         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
463         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
464         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
465         Likewise.
466         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
468         (ld.so): Likewise.
469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
470         (ld.so): Likewise.
471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
472         Likewise.
473         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
474         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
475         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
476         Likewise.
477         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
478         Likewise.
479         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
480
481 2016-11-30  Florian Weimer  <fweimer@redhat.com>
482
483         [BZ #4099]
484         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
485         _IO_BUFSIZ (8192).
486
487 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
488
489         * PROJECTS: Remove file.
490
491 2016-11-29  Florian Weimer  <fweimer@redhat.com>
492
493         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
494
495 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
496             Steve Ellcey  <sellcey@caviumnetworks.com>
497
498         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
499         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
500         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
501         fxstatat.
502         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
503         lxstat.
504         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
505         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
506         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
507         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
508         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
509         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
510         __xstat.
511
512 2016-11-29  Florian Weimer  <fweimer@redhat.com>
513
514         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
515         Define.
516         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
517         definition.
518
519 2016-11-29  Florian Weimer  <fweimer@redhat.com>
520
521         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
522         version and turn into strong alias.  Remove compat symbol.
523
524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
525         (__longjmp): Remove.
526
527 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
528
529         * bits/fp-fast.h: New file.
530         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
531         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
532         * math/Makefile (headers): Add bits/fp-fast.h.
533         * math/math.h: Include <bits/fp-fast.h>.
534         * bits/mathdef.h (FP_FAST_FMA): Remove.
535         (FP_FAST_FMAF): Likewise.
536         (FP_FAST_FMAL): Likewise.
537         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
538         (FP_FAST_FMAF): Likewise.
539         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
540         (FP_FAST_FMAF): Likewise.
541         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
542         (FP_FAST_FMAF): Likewise.
543         (FP_FAST_FMAL): Likewise.
544         * sysdeps/arm/bits/mathdef.h: Remove file.
545         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
546         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
547         * sysdeps/tile/bits/mathdef.h: Likewise.
548
549 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
550
551         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
552         * math/w_ilogb.c: Remove.
553         * math/w_ilogbf.c: Likewise.
554         * math/w_ilogbl.c: Likewise.
555         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
556         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
557         * math/Makefile (gen-libm-calls): Add w_ilogbF.
558         (libm-calls): Remove w_ilogbF.
559         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
560         (LDOUBLE_ilogbl_libm_version): New macro.
561
562         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
563
564         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
565         [!__STRICT_ANSI__ && !__cplusplus].
566
567 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
568
569         [BZ #20750]
570         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
571         of PIC.
572
573 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
574             Yury Norov  <ynorov@caviumnetworks.com>
575             Steve Ellcey  <sellcey@caviumnetworks.com>
576
577         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
578         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
579         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
580         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
581         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
582         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
583         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
584         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
585         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
586         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
587         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
588         to get correct reg name for ILP32.
589         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
590         (RELA_SIZE): New Macro.
591         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
592         to support ILP32.
593         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
594         cast for ILP32 mode.
595         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
596         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
597         * sysdeps/aarch64/memset.S (__memset): Ditto.
598         * sysdeps/aarch64/strchr.S (strchr): Ditto.
599         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
600         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
601         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
602         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
603         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
604         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
605         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
606         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
607         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
608         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
609         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
610         change PTR_MANGLE call to use register numbers instead of names.
611         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
612         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
613         ILP32 mode, change PTR_MANGLE calls to use register numbers.
614         * sysdeps/aarch64/start.S (_start): Ditto.
615         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
616         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
617         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
618         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
619         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
620         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
621         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
622         Make defined values dependent on __ILP32__.
623         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
624         (sem_t): Change __align type.
625         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
626         PTR_SIZE): New Macros.
627         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
628         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
629         Set when in ILP32 mode.
630         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
631         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
632         Set elf flags for ILP32.
633         (add_system_dir): Set ILP32 library directories.
634         * sysdeps/unix/sysv/linux/aarch64/init-first.c
635         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
636         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
637         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
638         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
639         New Macros.
640         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
641
642 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
643
644         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
645         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
646         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
647
648 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
649
650         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
651         <asm/cachectl.h>.
652
653 2016-11-27  Zack Weinberg  <zackw@panix.com>
654
655         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
656         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
657
658 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
659
660         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
661         error_t to fix usage in C++ programs.
662
663 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
664
665         * scripts/build-many-glibcs.py: Import datetime module.
666         (Context.__init__): Load JSON build state.  Initialize list of
667         status logs.
668         (Context.run_builds): Update saved build state.
669         (Context.add_makefile_cmdlist): Update list of status logs.
670         (Context.load_build_state_json): New function.
671         (Context.store_build_state_json): Likewise.
672         (Context.clear_last_build_state): Likewise.
673         (Context.update_build_state): Likewise.
674         (CommandList.status_logs): Likewise.
675
676 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
677
678         * scripts/build-many-glibcs.py (Context.__init__): Save text of
679         script being executed.
680         (Context.get_script_text): New function.
681         (Context.exec_self): Likewise.
682         (Context.checkout): Re-exec script if changed by checkout process.
683
684 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
685
686         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
687         (setpayloadsig): New declaration.
688         * math/Versions (setpayloadsig): New libm symbol at version
689         GLIBC_2.25.
690         (setpayloadsigf): Likewise.
691         (setpayloadsigl): Likewise.
692         * math/Makefile (libm-calls): Add s_setpayloadsigF.
693         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
694         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
695         (setpayloadsig_test_data): New array.
696         (setpayloadsig_test): New function.
697         (main): Call setpayloadsig_test.
698         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
699         setpayloadsigf and setpayloadsigl.
700         * manual/libm-err-tab.pl: Update comment on interfaces without
701         ulps tabulated.
702         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
703         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
704         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
705         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
706         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
707         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
708         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
709         setpayloadsig.
710         (CFLAGS-nldbl-setpayloadsig.c): New variable.
711         * sysdeps/nacl/libm.abilist: Update.
712         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
713         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
714         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
715         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
716         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
717         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
718         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
719         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
720         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
721         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
722         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
723         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
725         Likewise.
726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
727         Likewise.
728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
729         Likewise.
730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
731         Likewise.
732         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
733         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
734         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
735         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
736         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
737         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
738         Likewise.
739         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
740         Likewise.
741         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
742         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
743         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
744
745         * scripts/build-many-glibcs.py: Import json module.
746         (Context.__init__): Take replace_sources argument.  Load
747         versions.json.
748         (Context.load_versions_json): New function.
749         (Context.store_json): Likewise.
750         (Context.store_versions_json): Likewise.
751         (Context.set_component_version): Likewise.
752         (Context.checkout): Update versions.json.  Check for and handle
753         changes of version.  Prefer previously explicitly specified
754         version to default version.
755         (Context.checkout_vcs): Return a revision identifier.
756         (Context.git_checkout): Likewise.
757         (Context.gcc_checkout): Likewise.
758         (get_parser): Add --replace-sources option.
759         (main): Pass replace_sources argument to Context call.
760
761 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
762
763         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
764         * nptl/allocatestack.c (allocate_stack): Likewise.
765         (__reclaim_stacks): Likewise.
766         (setxid_signal_thread): Obtain pid through syscall.
767         * nptl/nptl-init.c (sigcancel_handler): Likewise.
768         (sighandle_setxid): Likewise.
769         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
770         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
771         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
772         Likewise.
773         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
774         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
775         comment.
776         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
777         * nptl/descr.h (struct pthread): Change comment about pid value.
778         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
779         pid assert.
780         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
781         Do not set pid value.
782         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
783         pid cache check.
784         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
785         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
786         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
787         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
788         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
789         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
790         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
791         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
792         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
793         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
794         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
795         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
796         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
797         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
798         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
799         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
800         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
801         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
802         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
803         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
804         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
805         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
806         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
807         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
808         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
811         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
812         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
813         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
814         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
815         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
816         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
817         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
818         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
819         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
820         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
821         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
822         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
823         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
824         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
825         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
826         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
829         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
830         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
831         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
832         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
833         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
834         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
835         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
836         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
837         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
838         struct access.
839         (clone_test): Remove function.
840         (do_test): Rewrite to take in consideration pid is not cached anymore.
841
842 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
843
844         * bits/flt-eval-method.h: New file.
845         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
846         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
847         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
848         * math/Makefile (headers): Add bits/flt-eval-method.h.
849         * math/math.h: Include <bits/flt-eval-method.h>.
850         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
851         [__USE_ISOC99] (double_t): Likewise.
852         * bits/mathdef.h (float_t): Remove.
853         (double_t): Likewise.
854         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
855         (double_t): Likewise.
856         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
857         (double_t): Likewise.
858         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
859         (double_t): Likewise.
860         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
861         (double_t): Likewise.
862         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
863         (double_t): Likewise.
864         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
865         (double_t): Likewise.
866         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
867         (double_t): Likewise.
868         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
869         (double_t): Likewise.
870         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
871         (double_t): Likewise.
872         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
873         (double_t): Likewise.
874         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
875         (double_t): Likewise.
876         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
877         (double_t): Likewise.
878         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
879         (double_t): Likewise.
880
881 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
882
883         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
884         instead of PIC.
885
886 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
887
888         [BZ #20859]
889         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
890         (-0x7fffffff) instead of 0x80000001.
891         * math/test-fp-ilogb-constants.c: New file.
892         * math/Makefile (tests): Add test-fp-ilogb-constants.
893
894 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
895
896         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
897         (_init): Use it in place of hardcoded R_MIPS_JALR.
898         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
899         (_init): Use it in place of hardcoded R_MIPS_JALR.
900         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
901         (_init): Use it in place of hardcoded R_MIPS_JALR.
902
903 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
904
905         [BZ #20787]
906         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
907         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
908         (double_t): Do not define to double if [__x86_64__] when
909         __FLT_EVAL_METHOD__ is nonzero.
910         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
911         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
912         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
913         test-flt-eval-method-387 and test-flt-eval-method-sse.
914         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
915         variable.
916         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
917
918 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
919
920         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
921         use of -fno-isolate-erroneous-paths options for tilepro.
922
923 2016-11-23  Florian Weimer  <fweimer@redhat.com>
924
925         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
926         structure initialization is no longer needed.
927
928 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
929
930         [BZ #20855]
931         * bits/mathdef.h (float_t): Define to float.
932         * math/test-flt-eval-method.c: New file.
933         * math/Makefile (tests): Add test-flt-eval-method.
934         (CFLAGS-test-flt-eval-method.c): New variable.
935
936 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
937
938         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
939         and __fstatfs.  Make them aliases of __fstatfs64 if
940         STATFS_IS_STATFS64 is set to non-zero.
941         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
942         and __statfs64.
943         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
944         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
945         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
946         for __statfs and statfs.
947         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
948         to 0.
949         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
950         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
951         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
952         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
953         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
954         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
957         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
958         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
959         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
960         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
961
962 2016-11-22  Andreas Schwab  <schwab@suse.de>
963
964         * misc/mkstemp.c: Include <fcntl.h>.
965         * misc/mkstemps.c: Likewise.
966         * misc/mkostemp.c: Likewise.
967         * misc/mkostemps.c: Likewise.
968
969 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
970
971         [BZ #20847]
972         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
973         array bounds.
974         (__execvpe): Likewise.
975
976 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
977
978         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
979         -fno-isolate-erroneous-paths options for tilepro.
980
981 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
982
983         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
984         to 0 when in 32 bit mode.
985         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
986         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
987         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
988         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
990         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
991         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
992         XSTAT_IS_XSTAT64 test.
993         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
994         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
995         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
996         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
997         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
998         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
999         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
1000         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
1001         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
1002         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
1003         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
1004
1005 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
1006
1007         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1008         (setpayload): New declaration.
1009         * math/Versions (setpayload): New libm symbol at version
1010         GLIBC_2.25.
1011         (setpayloadf): Likewise.
1012         (setpayloadl): Likewise.
1013         * math/Makefile (libm-calls): Add s_setpayloadF.
1014         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
1015         test_Ff_b1_data.
1016         (RUN_TEST_Ff_b1): New macro.
1017         (RUN_TEST_LOOP_Ff_b1): Likewise.
1018         (canonicalize_test_data): Update type.
1019         (setpayload_test_data): New array.
1020         (setpayload_test): New function.
1021         (main): Call setpayload_test.
1022         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
1023         setpayloadf and setpayloadl.
1024         * manual/libm-err-tab.pl: Update comment on interfaces without
1025         ulps tabulated.
1026         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
1027         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
1028         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
1029         Likewise.
1030         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
1031         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
1032         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
1033         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
1034         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
1035         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
1036         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
1037         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
1038         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
1039         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1040         setpayload.
1041         (CFLAGS-nldbl-setpayload.c): New variable.
1042         * sysdeps/nacl/libm.abilist: Update.
1043         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1044         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1045         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1046         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1047         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1048         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1049         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1050         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1051         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1052         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1053         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1054         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1056         Likewise.
1057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1058         Likewise.
1059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1060         Likewise.
1061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1062         Likewise.
1063         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1064         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1065         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1066         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1067         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1068         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1069         Likewise.
1070         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1071         Likewise.
1072         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1073         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1074         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1075
1076 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1077
1078         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
1079         * include/unistd.h: Extend comment about __access_noerrno return
1080         semantics.
1081         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
1082         (access_common): Correct typo for EACCES.
1083
1084 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
1085
1086         * sysdeps/tile/math-tests.h: New file.
1087
1088         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
1089         (__old_set_dataplane): Rename from set_dataplane and make a
1090         compatibility symbol.
1091         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
1092         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
1093         sys/dataplane.h.
1094
1095 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
1096
1097         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
1098         script quote words in command output to log suitably for input to
1099         the shell.
1100
1101 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
1102             Maciej W. Rozycki  <macro@imgtec.com>
1103
1104         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
1105         `.Lno_weak_fn' label.
1106         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
1107         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
1108
1109 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1110             Yury Norov  <ynorov@caviumnetworks.com>
1111
1112         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
1113         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
1114         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1115         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
1116         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1117         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
1118         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1119         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1120         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1121         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
1122         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
1123         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
1124         (sysdep_routines): Remove oldgetrlimit64.
1125         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
1126         (sysdep_routines): Likewise.
1127         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
1128         (sysdep_routines): Likewise.
1129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1130         [$(subdir) = resource] (sysdep_routines): Likewise.
1131         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1132         [$(subdir) = resource] (sysdep_routines): Likewise.
1133         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
1134         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
1135         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
1136         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
1137         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
1138         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
1139         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
1140         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
1141         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
1142         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
1143         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
1144         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
1145         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
1146         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
1147         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
1148         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
1149         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
1150         setrlimit and getrlimit.
1151         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1152         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
1153         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
1154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
1155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1156         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
1157         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
1158         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1159         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1160         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
1161         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
1162         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
1163         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
1164         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
1165         (__old_getrlimit64): Add compatibility symbol.
1166         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
1167
1168 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
1169
1170         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
1171         newly built gmp, mpfr and mpc.
1172
1173         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
1174
1175 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1176
1177         * conform/Makefile (linknamespace-libs): Rename to
1178         linknamespace-libs-thr.
1179         (linknamespace-libs-posix): New variable.
1180         (linknamespace-libs-xsi): Likewise.
1181         (linknamespace-libs-XPG3): Include libcrypt.a.
1182         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
1183         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
1184         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
1185         (linknamespace-libs-XOPEN2K): Likewise.
1186         (linknamespace-libs-XOPEN2K8): Likewise.
1187         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
1188
1189         [BZ #20829]
1190         * stdio-common/Versions (__snprintf): Add to version
1191         GLIBC_PRIVATE.
1192         * include/stdio.h (__snprintf): Use libc_hidden_proto.
1193         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
1194         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
1195         of snprintf.
1196         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
1197
1198 2016-11-16  Zack Weinberg  <zackw@panix.com>
1199
1200         * string/string.h: Remove obsolete comment stating that
1201         strcoll_l and strxfrm_l have not yet been standardized.
1202
1203 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1204
1205         * hurd/hurd.h (__hurd_fail_noerrno): New function.
1206         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
1207         __access_noerrno.
1208         * io/access.c (__access_noerrno): New function.
1209         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
1210         (hurd_fail_seterrno): Likewise.
1211         (access_common): Likewise.
1212         (__access_noerrno): Likewise.
1213         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
1214         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
1215         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
1216         macro.
1217
1218 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
1219
1220         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
1221         Only declare fpregs if [__SH_FPU_ANY__].
1222
1223 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
1224
1225         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
1226         Make code unconditional.
1227         [!(__SH4__ || __SH4A__)]: Remove conditional code.
1228
1229 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
1230
1231         * manual/sysinfo.texi (S_APPEND): Delete.
1232         (S_IMMUTABLE): Likewise.
1233
1234 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
1235             Magnus Granberg  <zorry@gentoo.org>
1236             Mike Frysinger  <vapier@gentoo.org>
1237
1238         [BZ #20662]
1239         * configure.ac (libc_cv_predef_stack_protector): Also check for
1240         __stack_chk_fail_local symbols.
1241         * configure: Regenerated.
1242
1243 2016-11-15  Florian Weimer  <fweimer@redhat.com>
1244
1245         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1246         (libc_hidden_def): Remove redefinition.
1247         (__sigsetjmp): Add hidden definition.
1248         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
1249         (libc_hidden_def): Remove redefinition.
1250         (__sigsetjmp): Add hidden definition.
1251
1252 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
1253
1254         * scripts/build-many-glibcs.py (os.path): Do not import.
1255         (Context): Inherit explicitly from object.  Remove blank line
1256         between class and docstring.
1257         (Config): Likewise.
1258         (Glibc): Likewise.
1259         (Command): Likewise.
1260         (CommandList): Likewise.
1261         (Context.write_files): Store chmod mode in a variable.
1262
1263         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
1264         LIBC_SLIBDIR_RTLDDIR for tilegx32.
1265         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
1266
1267 2016-11-14  Zack Weinberg  <zackw@panix.com>
1268
1269         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
1270         creating or re-creating it.
1271
1272         * string/bits/string2.h: Fix typo in comment.
1273
1274 2016-11-14  Zack Weinberg  <zackw@panix.com>
1275
1276         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
1277         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
1278         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
1279         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
1280         of redirected function names.
1281
1282         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
1283         as well.  Document that MESSAGE must be a single string literal.
1284
1285 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
1286
1287         * scripts/build-many-glibcs.py: New file.
1288
1289         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
1290         (do_test): Disable -Wmaybe-uninitialized around uses of
1291         except_mask.
1292
1293         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
1294
1295 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
1296
1297         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
1298         (atomic_store_release): Provide tilepro-specific implementations.
1299
1300 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
1301
1302         * math/math.h (__MATH_TG): New macro.
1303         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
1304         [__USE_ISOC99] (signbit): Likewise.
1305         [__USE_ISOC99] (isfinite): Likewise.
1306         [__USE_ISOC99] (isnan): Likewise.
1307         [__USE_ISOC99] (isinf): Likewise.
1308         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
1309         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
1310         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
1311         __MATH_TG and __MATH_EVAL_FMT2.
1312         * sysdeps/generic/math_private.h (fabs_tg): Define using
1313         __MATH_TG.
1314         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
1315         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
1316         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
1317         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
1318         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
1319         macro.
1320         (__iscanonical): Likewise.
1321         (iscanonical): Define using __MATH_TG.
1322
1323 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1324
1325         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
1326         guards.
1327
1328         * sysdeps/unix/sysv/linux/access.c: New file.
1329         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
1330
1331 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
1332
1333         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
1334         and __WORDSIZE32_PTRDIFF_LONG.
1335
1336 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1337
1338         * sysdeps/aarch64/libm-test-ulps: Regenerated.
1339
1340 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1341
1342         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
1343         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
1344         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
1345         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
1346         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
1347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
1348         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
1349         * sysdeps/unix/sysv/linux/truncate.c: New file.
1350         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
1351         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1352         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
1353         Remove.
1354         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
1355         Likewise.
1356
1357         * posix/tst-truncate-common.c: New file.
1358         * posix/tst-truncate.c: Use tst-truncate-common.c.
1359         * posix/tst-truncate64.c: Likewise and add LFS tests.
1360         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
1361         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
1362         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
1363         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
1364         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
1365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
1366         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
1367         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
1368         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
1369         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
1370         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
1371         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
1372         Remove.
1373         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
1374         Likewise.
1375
1376 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
1377
1378         [BZ #20790]
1379         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
1380         to MAXLINESIZE.
1381         * sunrpc/bug20790.x: New file.
1382         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
1383         variable.
1384         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
1385         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
1386
1387         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
1388
1389         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
1390
1391         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
1392         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
1393         calloc, realloc, free, memalign and __libc_memalign rather than
1394         making them optional.
1395
1396         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
1397         for libc.so.
1398
1399 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1400
1401         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
1402         ptw-lseek64.
1403         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
1404         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
1405         Likewise.
1406         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
1407         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
1408         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
1409         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
1410         * sysdeps/unix/sysv/linux/lseek.c: New file.
1411         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
1412         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
1413         __libc_lseek64 from auto-generation.
1414         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1415         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
1416
1417 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1418
1419         * nptl/tst-basic1.c (tf, do_test): Use write_message.
1420         * nptl/tst-cleanup1.c (do_test): Likewise.
1421         * nptl/tst-cleanup3.c (do_test): Likewise.
1422         * nptl/tst-key1.c (do_test): Likewise.
1423         * nptl/tst-key2.c (tf, do_test): Likewise.
1424         * nptl/tst-key3.c (tf, do_test): Likewise.
1425         * nptl/tst-stdio1.c (do_test): Likewise.
1426         * nptl/tst-stdio2.c (do_test): Likewise.
1427
1428         * nptl/tst-kill3.c (handler): Use write_message in place of write.
1429         * nptl/tst-kill6.c (handler): Likewise.
1430         * nptl/tst-tls2.c (CB): Likewise.
1431         * nptl/tst-tls3.c (CB): Likewise.
1432
1433 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
1434
1435         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
1436
1437 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
1438             Steve Ellcey  <sellcey@caviumnetworks.com>
1439
1440         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
1441           __ASSUME_ST_INO_64_BIT as 0
1442         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
1443         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
1444           over the code where __ASSUME_ST_INO_64_BIT is used.
1445         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
1446         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
1447         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1448
1449 2016-11-07  Florian Weimer  <fweimer@redhat.com>
1450
1451         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1452         Document ABI exposure of the __kind offset.
1453         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1454         Mention reason for the __kind offset exposure in the ABI.
1455         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1456         Likewise.
1457         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1458         Likewise.
1459         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1460         Likewise.
1461         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
1462         (struct __pthread_mutex_s): Likewise.
1463         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1464         Likewise.
1465         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1466         Likewise.
1467         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1468         Likewise.
1469         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1470         Likewise.
1471         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1472         Likewise.
1473         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
1474         Likewise.
1475         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
1476         (struct __pthread_mutex_s): Likewise.
1477         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
1478         (struct __pthread_mutex_s): Likewise.
1479         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
1480         Likewise.
1481
1482 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
1483
1484         * test-skeleton.c: Document do_test usage.
1485
1486 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
1487
1488         * iconv/gconv.h (__gconv_info): Define __data element using a
1489         zero-length array.
1490
1491 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
1492
1493         * math/test-tgmath2.c: Split up test function.
1494
1495 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1496
1497         * Rules (tests-expected): New variable, depending on
1498         $(run-built-tests).
1499         (tests): Pass $(tests-expected) to merge-test-results.sh, not
1500         $(tests).
1501
1502         * Rules [$(run-built-tests) = no] (tests): Do not depend on
1503         $(tests-unsupported).
1504
1505 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1506
1507         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
1508         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
1509
1510 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1511
1512         [BZ #20768]
1513         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
1514         __fegetenv instead of fegetenv.
1515
1516         [BZ #14139]
1517         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
1518         (find_files): Obtain platform name from libm-test-ulps-name and
1519         store in %pplatforms.
1520         (canonicalize_platform): Remove.
1521         (print_platforms): Use $pplatforms directly.
1522         (by_platforms): Do not allow for platforms missing from
1523         %pplatforms.
1524         * sysdeps/aarch64/libm-test-ulps-name: New file.
1525         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
1526         * sysdeps/arm/libm-test-ulps-name: Likewise.
1527         * sysdeps/generic/libm-test-ulps-name: Likewise.
1528         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
1529         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
1530         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
1531         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
1532         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
1533         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
1534         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
1535         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
1536         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
1537         * sysdeps/nios2/libm-test-ulps-name: Likewise.
1538         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
1539         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
1540         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
1541         * sysdeps/sh/libm-test-ulps-name: Likewise.
1542         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
1543         * sysdeps/tile/libm-test-ulps-name: Likewise.
1544         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
1545
1546         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
1547
1548         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
1549         (test-xfail-check-execstack): New variable.
1550
1551         * sysdeps/mips/localplt.data: New file.
1552
1553 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
1554             Steve Ellcey  <sellcey@caviumnetworks.com>
1555
1556         * bits/wordsize.h: Add documentation.
1557         * sysdeps/aarch64/bits/wordsize.h : New file
1558         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
1559         definitions.
1560         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
1561         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
1562         with #if instead of #ifdef.
1563         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
1564         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
1565         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
1566         Add or change defines.
1567         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
1568         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1569         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
1570         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
1571         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1572         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1573         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
1574         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
1575         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
1576         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1577         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
1578         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
1579         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
1580         * sysdeps/x86/bits/wordsize.h: Likewise.
1581
1582 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
1583             Kevin Petit  <kevin.petit@arm.com>
1584
1585         * sysdeps/aarch64/memchr.S (__memchr): New file.
1586
1587 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
1588
1589         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
1590
1591 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
1592
1593         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
1594         $(linknamespace-symlists-tests).
1595
1596 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
1597
1598         * time/tst-strptime2.c: Ignore -Wformat-length warning.
1599
1600 2016-11-02  Florian Weimer  <fweimer@redhat.com>
1601             Carlos O'Donell  <carlos@redhat.com>
1602
1603         [Bug #20729]
1604         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
1605         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
1606         for -Os related change.
1607
1608 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
1609
1610         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
1611
1612 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
1613
1614         [BZ #19673]
1615         * manual/math.texi (Exponents and Logarithms): Correct description
1616         of clog10.
1617
1618 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
1619
1620         [Bz #20729]
1621         * locale/weight.h: Include libc-internal.h.
1622         * locale/weightwc.h: Likewise.
1623         * nptl/nptl_dbP.h: Likewise.
1624
1625 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
1626
1627         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
1628         when it is MACH_PORT_NULL.
1629
1630 2016-10-31  Andreas Schwab  <schwab@suse.de>
1631
1632         [BZ #20707]
1633         * posix/glob.c (glob): Initialize pglob before checking for
1634         GLOB_BRACE.  Don't call glob recursively if pattern contains no
1635         valid brace expression despite GLOB_BRACE.
1636         * posix/globtest.sh: Test it.
1637
1638 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1639
1640         [BZ #20729]
1641         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
1642         Define.
1643         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
1644         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
1645         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
1646         for seq2.back_us and seq1.back_us only for -Os compiles.
1647         * locale/weightwc.h (findix): Likewise.
1648         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
1649         DB_GET_FIELD_ADDRESS only for -Os compiles.
1650         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
1651         for slen only for -Os compiles.
1652         * string/strcoll_l.c (get_next_seq): Ignore
1653         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
1654         for -Os compiles.
1655
1656         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
1657         * include/crypt.h: New file.
1658
1659 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1660
1661         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
1662         from test-skeleton.c.
1663         (statclass): Replace calls to write with calls to write_message.
1664
1665 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1666
1667         * math/math.h
1668         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
1669         New macro.
1670         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
1671         Likewise.
1672         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
1673         Likewise.
1674         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
1675         SNANL.
1676         * math/test-double.h (snan_value_MACRO): New macro.
1677         * math/test-float.h (snan_value_MACRO): Likewise.
1678         * math/test-ldouble.h (snan_value_MACRO): Likewise.
1679         * math/libm-test.inc (issignaling_test_data): Add tests of
1680         snan_value_MACRO.
1681
1682 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1683
1684         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
1685         behavior when eliding a lock not held by the current thread.
1686         * sysdeps/powerpc/nptl/elide.h: Likewise.
1687
1688 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1689
1690         [BZ #20728]
1691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
1692         branch to _exit() by a function call.
1693
1694 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1695
1696         * malloc/malloc.c: Update chunk layout comments.
1697         (chunk_main_arena): Update comment.
1698
1699 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1700
1701         * crypt/sha256.c, crypt/sha256-block.c,
1702         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
1703         sha256_process_block to __sha256_process_block.
1704         * crypt/sha512.c, crypt/sha512-block.c,
1705         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
1706         sha512_process_block to __sha512_process_block.
1707
1708 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
1709
1710         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
1711
1712         * math/test-nan-overflow.c: Include stdlib.h for malloc.
1713
1714 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
1715
1716         [BZ #20019]
1717         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
1718         definition in unrelocated shared library.
1719         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1720
1721 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1722
1723         [BZ #20729]
1724         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
1725         * sysdeps/unix/sysv/linux/i386/Makefile
1726         (uses-6-syscall-arguments): Define.
1727         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
1728         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
1729         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
1730         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
1731         Likewise.
1732         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
1733         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
1734         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
1735         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
1736         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
1737         (CFLAGS-fallocate64.os): Likewise.
1738         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
1739         (CFLAGS-pthread_rwlock_timedrdlock.os)
1740         (CFLAGS-pthread_rwlock_timedwrlock.o)
1741         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
1742         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
1743         (CFLAGS-sem_timedwait.os): Likewise.
1744
1745 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1746
1747         * elf/tst-linkall-static.c: New file.
1748         * elf/Makefile (tests-static): Add tst-linkall-static.
1749         (tst-linkall-static): Link against static libraries.
1750
1751 2016-10-27  Florian Weimer  <fweimer@redhat.com>
1752
1753         * malloc/malloc.c (sysmalloc): Initialize previous size field of
1754         mmaped chunks.
1755
1756 2016-10-28  Florian Weimer  <fweimer@redhat.com>
1757
1758         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
1759         members to mchunk_prev_size, mchunk_size.
1760         (chunk_main_arena): Reverse sense and rename from
1761         chunk_non_main_arena.
1762         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
1763         mchunk_size instead of size.
1764         (set_non_main_arena): Define.
1765         (chunksize): Use chunksize_nomask instead of direct member access.
1766         (chunksize_nomask): Define.
1767         (next_chunk): Use chunksize instead of direct member access.
1768         (prev_size, set_prev_size): Define.
1769         (prev_chunk): Use prev_size instead of direct member access.
1770         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
1771         (inuse_bit_at_offset, set_inuse_bit_at_offset)
1772         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
1773         (mchunk_prev_size, mchunk_size): Poison tokens.
1774         (unlink): Use chunksize_nomask, prev_size accessors.
1775         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
1776         (do_check_free_chunk): Use prev_size accessor.
1777         (sysmalloc): Use set_prev_size, set_head accessors.
1778         (munmap_chunk, mremap_chunk): Use prev_size accessor.
1779         (__libc_free): Use chunksize_nomask accessor.
1780         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
1781         chunk_main_arena accessors.
1782         (_int_free): Use chunksize_nomask, prev_size accessors.
1783         (malloc_consolidate): Use chunksize, prev_size accessors.
1784         (_int_realloc): Use chunksize_nomask accessor.
1785         (_int_memalign): Use set_prev_size accessor.
1786         (__malloc_info): Use chunksize_nomask accessor.
1787         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
1788         accessors.
1789         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
1790         (heap_trim): Use chunksize_nomask, prev_size accessors.
1791
1792 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
1793
1794         [BZ #19380]
1795         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
1796         for inexact results.
1797         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
1798         of inexact result where mpfr_subnormalize is the only inexact
1799         step.
1800         * stdlib/tst-strtod-round-data.h: Regenerated.
1801         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
1802         Define to 0.
1803         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
1804
1805 2016-10-27  David S. Miller  <davem@davemloft.net>
1806
1807         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
1808
1809 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1810
1811         * malloc/malloc.c (do_set_mallopt_check): New function.
1812         (do_set_mmap_threshold): Likewise.
1813         (do_set_mmaps_max): Likewise.
1814         (do_set_top_pad): Likewise.
1815         (do_set_perturb_byte): Likewise.
1816         (do_set_trim_threshold): Likewise.
1817         (do_set_arena_max): Likewise.
1818         (do_set_arena_test): Likewise.
1819         (__libc_mallopt): Use them.
1820
1821 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
1822
1823         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
1824         (canonicalize): New declaration.
1825         * math/Versions (canonicalize): New libm symbol at version
1826         GLIBC_2.25.
1827         (canonicalizef): Likewise.
1828         (canonicalizel): Likewise.
1829         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
1830         * math/s_canonicalize_template.c: New file.
1831         * math/libm-test.inc: Update comment on functions tested and
1832         testing of NaN payloads.
1833         (TEST_NAN_PAYLOAD): New macro.
1834         (NO_TEST_INLINE): Update value.
1835         (XFAIL_TEST): Likewise.
1836         (ERRNO_UNCHANGED): Likewise.
1837         (ERRNO_EDOM): Likewise.
1838         (ERRNO_ERANGE): Likewise.
1839         (IGNORE_RESULT): Likewise.
1840         (NON_FINITE): Likewise.
1841         (TEST_SNAN): Likewise.
1842         (NO_TEST_MATHVEC): Likewise.
1843         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
1844         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
1845         (struct test_Ffp_b1_data): New type.
1846         (RUN_TEST_Ffp_b1): New macro.
1847         (RUN_TEST_LOOP_Ffp_b1): Likewise.
1848         (canonicalize_test_data): New array.
1849         (canonicalize_test): New function.
1850         (main): Call canonicalize_test.
1851         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
1852         canonicalizef and canonicalizel.
1853         * manual/libm-err-tab.pl: Update comment on interfaces without
1854         ulps tabulated.
1855         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
1856         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
1857         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1858         canonicalize.
1859         (CFLAGS-nldbl-canonicalize.c): New variable.
1860         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
1861         to ...
1862         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
1863         ... here.
1864         (do_test): Also test canonicalizel.
1865         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
1866         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
1867         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
1868         file.
1869         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
1870         Use libm_hidden_def.
1871         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
1872         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
1873         (do_test): Also test canonicalizel.
1874         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
1875         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
1876         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
1877         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
1878         libm_hidden_def.
1879         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
1880         macro.
1881         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
1882         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
1883         * sysdeps/nacl/libm.abilist: Update.
1884         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1885         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1886         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1887         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1888         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1889         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1890         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1891         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1892         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1893         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1894         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1895         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1897         Likewise.
1898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1899         Likewise.
1900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1901         Likewise.
1902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1903         Likewise.
1904         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1905         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1906         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1907         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1908         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1910         Likewise.
1911         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1912         Likewise.
1913         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1914         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1915         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1916
1917         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
1918         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1919         getpayload.
1920         (CFLAGS-nldbl-getpayload.c): New variable.
1921
1922 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1923
1924         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
1925         integer from the format string.
1926
1927 2016-10-26  Florian Weimer  <fweimer@redhat.com>
1928
1929         [BZ #19473]
1930         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
1931         declarations.
1932         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
1933         weak aliases.
1934         * malloc/hooks.c (__malloc_get_state): Remove definition.
1935         (malloc_get_state): New stub implementation as
1936         compatibility symbol.
1937         (malloc_set_state): Rename from __malloc_set_state.  Turn into
1938         compat symbol.
1939         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
1940         malloc_set_state.
1941         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
1942
1943 2016-10-26  Florian Weimer  <fweimer@redhat.com>
1944
1945         * iconvdata/iso646.c (enum variant): Drop illegal_var.
1946         (names): Turn into concatenation of strings.
1947         (gconv_init): Adapt iteration over names.
1948
1949 2016-10-26  Florian Weimer  <fweimer@redhat.com>
1950
1951         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
1952         make const.
1953         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
1954         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
1955         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
1956         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
1957         character in sbconv.
1958         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
1959         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
1960         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
1961
1962 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1963
1964         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
1965
1966         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
1967         (M_TRIM_THRESHOLD): Likewise.
1968
1969         * manual/memory.texi (M_ARENA_TEST): Add documentation.
1970         (M_ARENA_MAX): Likewise.
1971         * malloc/malloc.c: Remove obsolete comment.
1972
1973         * manual/memory.texi: Add environment variable alternatives to
1974         setting mallopt parameters.
1975
1976 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
1977
1978         * include/atomic.h
1979         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
1980         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
1981
1982 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1983
1984         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
1985         * stdlib/tst-strfrom.h: New file.
1986         * stdlib/tst-strfrom.c: New file.
1987         * stdlib/tst-strfrom-locale.c: New file.
1988
1989         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
1990         * stdlib/bug-strtod2.c: Likewise.
1991         * stdlib/tst-strtod-round-skeleton.c: Likewise.
1992         * stdlib/tst-strtod6.c: Likewise.
1993         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
1994
1995 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1996
1997         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
1998         * manual/arith.texi: Document strfromd, strfromf, strfroml.
1999         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
2000         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
2001         * stdlib/stdlib.h (strfromd): New declaration.
2002         (strfromf): Likewise.
2003         (strfroml): Likewise.
2004         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
2005         strfrom.
2006         * stdlib/strfromd.c: New file.
2007         * stdlib/strfromf.c: Likewise.
2008         * stdlib/strfroml.c: Likewise.
2009         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
2010         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
2011         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
2012         * sysdeps/arm/nacl/libc.abilist: Update.
2013         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
2014         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2015         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2016         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2017         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2018         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2019         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2020         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2021         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2022         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2023         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2024         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2025         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2026         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
2028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2031         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2032         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2033         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2034         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2035         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2036         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2037         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2038         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2039         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2040         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2041
2042 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
2043
2044         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
2045         instead of cmpli.
2046         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
2047         instead of cmpli.
2048
2049 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
2050
2051         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
2052         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2053         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
2054         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2055         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2056         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
2057
2058 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2059
2060         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
2061         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
2062         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
2063         SYSCALL_LL64_PRW.
2064         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
2065         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
2066         __ASSUME_PRW_DUMMY_ARG.
2067         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
2068         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
2069         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
2070         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
2071         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
2072         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
2073
2074 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
2075
2076         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
2077
2078 2016-10-22  Florian Weimer  <fweimer@redhat.com>
2079
2080         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
2081         "C++", to override a potential extern "C" directive around the
2082         header file inclusion.
2083
2084 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
2085
2086         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
2087
2088 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2089
2090         * sysdeps/powerpc/fpu/fenv_private.h:
2091         (_FPU_MASK_ALL): Rename to...
2092         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
2093         XE FPSCR bits.
2094
2095         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
2096
2097         (_FPU_MASK_ROUNDING): Rename to...
2098         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
2099         NI bits.
2100
2101         (_FPU_MASK_EXCEPT_ROUND): Rename to...
2102         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
2103         bits and rounding bits.
2104
2105         (__libc_feholdbits_ppc): New inline function to mask, set,
2106         and pontentially clear FSPCR bits, and change MSR[FE] bits.
2107         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
2108         (libc_feholdexcept_setround_ppc): Likewise.
2109
2110         (__libc_femergeenv_ppc): New function to dynamically mask both
2111         old and new FP environments and merge.
2112         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
2113         (libc_feresetround_ppc): Likewise.
2114         (libc_feupdateenv_test_ppc): Likewise.
2115         (libc_feupdateenv_ppc): Likewise.
2116
2117         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
2118         of ISA RN bits, and update macro names.
2119         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
2120         effectively the same as the previously mentioned function.
2121
2122         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
2123         usage with fe_resetround_ppc.
2124
2125         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
2126         to be used.
2127         (libc_feholdexcept_setround_ctxf): Likewise.
2128         (libc_feholdexcept_setround_ctxl): Likewise.
2129
2130 2016-10-21  Florian Weimer  <fweimer@redhat.com>
2131
2132         [BZ #20715]
2133         * math/math.h [__cplusplus] (iszero): Define as function template.
2134         * math/Makefile [CXX] (tests): Add test-math-iszero.
2135         (CFLAGS-test-math-iszero.cc): Set.
2136         * math/test-math-iszero.cc: New file.
2137
2138 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
2139
2140         [BZ #20660]
2141         * sysdeps/arm/e_sqrt.c: New file.
2142         * sysdeps/arm/e_sqrtf.c: Likewise.
2143
2144 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
2145
2146         [BZ #20718]
2147         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
2148         not use floating-point comparisons to test sign.
2149         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
2150         Likewise.
2151
2152         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2153         (getpayload): New declaration.
2154         * math/Versions (getpayload): New libm symbol at version
2155         GLIBC_2.25.
2156         (getpayloadf): Likewise.
2157         (getpayloadl): Likewise.
2158         * math/Makefile (libm-calls): Add s_getpayloadF.
2159         * math/libm-test.inc: Include <nan-high-order-bit.h>.
2160         (struct test_f_f_data): Add comment.
2161         (RUN_TEST_fp_f): New macro.
2162         (RUN_TEST_LOOP_fp_f): Likewise.
2163         (getpayload_test_data): New array.
2164         (getpayload_test): New function.
2165         (main): Call getpayload_test.
2166         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
2167         descriptor.
2168         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
2169         getpayloadf and getpayloadl.
2170         * manual/libm-err-tab.pl: Update comment on interfaces without
2171         ulps tabulated.
2172         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
2173         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
2174         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
2175         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
2176         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
2177         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
2178         * sysdeps/nacl/libm.abilist: Update.
2179         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2180         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2181         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2182         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2183         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2184         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2185         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2186         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2187         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2188         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2189         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2190         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2192         Likewise.
2193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2194         Likewise.
2195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2196         Likewise.
2197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2198         Likewise.
2199         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2200         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2201         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2202         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2203         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2204         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2205         Likewise.
2206         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2207         Likewise.
2208         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2209         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2210         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2211
2212 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2213
2214         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
2215         tst-fallocate{64}.
2216         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
2217         on syscall return.
2218
2219 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
2220
2221         [BZ #20689]
2222         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
2223         usable.
2224
2225 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
2226
2227         * sysdeps/generic/nan-high-order-bit.h: New file.
2228         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
2229         * sysdeps/mips/nan-high-order-bit.h: Likewise.
2230         * sysdeps/hppa/math_private.h: Remove file.
2231         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
2232         not define here.
2233         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
2234         <nan-high-order-bit.h>.
2235         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2236         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2237         <nan-high-order-bit.h>.
2238         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2239         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2240         <nan-high-order-bit.h>.
2241         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2242         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
2243         <nan-high-order-bit.h>.
2244         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2245         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2246         <nan-high-order-bit.h>.
2247         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2248         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2249         <nan-high-order-bit.h>.
2250         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2251         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
2252         <nan-high-order-bit.h>.
2253         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2254         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2255         <nan-high-order-bit.h>.
2256         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2257         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2258         <nan-high-order-bit.h>.
2259         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2260         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
2261         <nan-high-order-bit.h>.
2262         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2263         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2264         <nan-high-order-bit.h>.
2265         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2266         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2267         <nan-high-order-bit.h>.
2268         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2269         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
2270         <nan-high-order-bit.h>.
2271         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2272         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
2273         <nan-high-order-bit.h>.
2274         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2275         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
2276         <nan-high-order-bit.h>.
2277         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2278         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
2279         <nan-high-order-bit.h>.
2280         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2281         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2282         <nan-high-order-bit.h>.
2283         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2284         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2285         <nan-high-order-bit.h>.
2286         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
2287
2288 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2289
2290         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
2291
2292 2016-09-22  John David Anglin  <dave.anglin@bell.net>
2293
2294         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
2295         abort-instr.h.
2296         (EFAULT): Remove conditional define.
2297         (ENOSYS): Likewise.
2298         (atomic_compare_and_exchange_val_acq): Use instruction nullification
2299         instead of conditional branch instructions.
2300
2301 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
2302
2303         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2304         (totalordermag): New declaration.
2305         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
2306         New macro.
2307         * math/Versions (totalordermag): New libm symbol at version
2308         GLIBC_2.25.
2309         (totalordermagf): Likewise.
2310         (totalordermagl): Likewise.
2311         * math/Makefile (libm-calls): Add s_totalordermagF.
2312         * math/libm-test.inc (totalordermag_test_data): New array.
2313         (totalordermag_test): New function.
2314         (main): Call totalordermag_test.
2315         * math/test-tgmath.c (NCALLS): Increase to 125.
2316         (F(compile_test)): Call totalordermag.
2317         (F(totalordermag)): New function.
2318         * manual/arith.texi (FP Comparison Functions): Document
2319         totalordermag, totalordermagf and totalordermagl.
2320         * manual/libm-err-tab.pl: Update comment on interfaces without
2321         ulps tabulated.
2322         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
2323         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
2324         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
2325         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
2326         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
2327         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
2328         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
2329         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2330         totalordermag.
2331         (CFLAGS-nldbl-totalordermag.c): New variable.
2332         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
2333         (do_test): Also test totalordermagl.
2334         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
2335         Likewise.
2336         * sysdeps/nacl/libm.abilist: Update.
2337         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2338         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2339         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2340         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2341         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2342         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2343         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2344         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2345         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2346         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2347         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2348         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2350         Likewise.
2351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2352         Likewise.
2353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2354         Likewise.
2355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2356         Likewise.
2357         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2358         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2359         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2360         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2361         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2362         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2363         Likewise.
2364         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2365         Likewise.
2366         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2367         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2368         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2369
2370 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
2371
2372         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
2373         boolean.
2374
2375 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
2376
2377         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
2378         raising FE_INVALID with feraisexcept in case where part of
2379         argument is infinite, subtract that part of argument from itself.
2380         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
2381         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
2382         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2383
2384 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2385
2386         * math/libm-test.inc (totalorder_test_data): Add more tests.
2387
2388 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
2389
2390         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
2391         Undefine weak_alias and add a comment why mips64 require
2392         versioning.
2393
2394 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2395
2396         [BZ #20647]
2397         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
2398         maximum CPUID level is less than 2.
2399
2400 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
2401
2402         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2403         (totalorder): New declaration.
2404         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
2405         New macro.
2406         * math/Versions (totalorder): New libm symbol at version
2407         GLIBC_2.25.
2408         (totalorderf): Likewise.
2409         (totalorderl): Likewise.
2410         * math/Makefile (libm-calls): Add s_totalorderF.
2411         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
2412         string.
2413         * math/libm-test.inc (PAYLOAD_DIG): New macro.
2414         (qnan_value_pl): Likewise.
2415         (snan_value_pl): Likewise.
2416         (qnan_value): Define using qnan_value_pl.
2417         (snan_value): Define using snan_value_pl.
2418         (struct test_ff_i_data): Add comment about which tests use this
2419         structure.
2420         (RUN_TEST_ff_b): New macro.
2421         (RUN_TEST_LOOP_ff_b): Likewise.
2422         (totalorder_test_data): New array.
2423         (totalorder_test): New function.
2424         (main): Call totalorder_test.
2425         * math/test-tgmath.c (NCALLS): Increase to 122.
2426         (F(compile_test)): Call totalorder.
2427         (F(totalorder)): New function.
2428         * manual/arith.texi (FP Comparison Functions): Document
2429         totalorder, totalorderf and totalorderl.
2430         * manual/libm-err-tab.pl: Update comment on interfaces without
2431         ulps tabulated.
2432         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
2433         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
2434         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
2435         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
2436         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
2437         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
2438         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
2439         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2440         totalorder.
2441         (CFLAGS-nldbl-totalorder.c): New variable.
2442         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
2443         file.
2444         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
2445         Add test-totalorderl-ldbl-128ibm.
2446         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
2447         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
2448         test-totalorderl-ldbl-96.
2449         * sysdeps/nacl/libm.abilist: Update.
2450         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2451         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2452         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2453         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2454         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2455         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2456         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2457         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2458         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2459         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2460         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2461         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2463         Likewise.
2464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2465         Likewise.
2466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2467         Likewise.
2468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2469         Likewise.
2470         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2471         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2472         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2473         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2474         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2475         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2476         Likewise.
2477         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2478         Likewise.
2479         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2480         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2481         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2482
2483 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2484
2485         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
2486         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
2487         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
2488         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
2489         remove ENOSYS implementation.
2490         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
2491         Consolidate all Linux implementations.
2492
2493 2016-10-11  Florian Weimer  <fweimer@redhat.com>
2494
2495         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
2496         * resolv/herror.c (herror): Cast away const-ness.
2497         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
2498         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
2499
2500 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
2501
2502         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
2503         instead of M_NAN + M_NAN.
2504         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
2505
2506 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2507
2508         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
2509         unused variable 'p'.
2510
2511 2016-10-09  Alan Modra  <amodra@gmail.com>
2512             Andreas Schwab  <schwab@linux-m68k.org>
2513
2514         [BZ #20554]
2515         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
2516         [PIC && !SHARED]: Set up PIC register for PLT call.
2517
2518 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
2519
2520         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
2521         conditional on value of [__FLT_EVAL_METHOD__].
2522         * math/test-iseqsig-excess-precision.c: New file.
2523         * math/Makefile (tests): Add test-iseqsig-excess-precision.
2524
2525 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2526
2527         * math/s_iseqsig_template.c: Include math-private.h.
2528
2529         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
2530         * posix/tst-posix_fadvise.c: New file.
2531         * posix/tst-posix_fadvise64.c: Likewise.
2532         * posix/tst-posix_fadvise-common.c: Likewise.
2533         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2534         (__ASSUME_FADVISE64_64_6ARG): Define.
2535         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2536         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
2537         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2538         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
2539         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
2540         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
2541         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
2542         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
2543         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
2544         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
2545         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
2546         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
2547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
2548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
2549         Likewise.
2550         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
2551         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
2552         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
2553         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2554         Alias to __posix_fadvise64_l32.
2555         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
2556         Add compat definition to posix_fadvise64.
2557         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
2558         Add versioned definition to posix_fadvise64.
2559         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
2560         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
2561         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
2562         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
2563         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
2564
2565         * io/Makefile (tests): Add tst-posix_fallocate and
2566         tst-posix_fallocate64.
2567         * io/tst-posix_fallocate-common.c: New file.
2568         * io/tst-posix_fallocate.c: Likewise.
2569         * io/tst-posix_fallocate64.c: Likewise.
2570         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
2571         file.
2572         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
2573         Likewise.
2574         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
2575         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
2576         Likewise.
2577         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
2578         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
2579         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
2580         SYSCALL_LL to pass both offset and len arguments.
2581         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
2582         Likewise.
2583         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
2584         __libc_pwrite64 alias used by posix_fallocate64.
2585
2586         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2587         tst-fallocate64.
2588         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2589         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2590         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2591         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2592         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2593         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2594         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2595         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2596         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2597         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2598         macro on offset argument.
2599         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2600         SYSCALL_LL64 on offset argument.
2601
2602         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
2603         tst-fallocate64.
2604         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
2605         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
2606         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
2607         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
2608         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
2609         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
2610         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
2611         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2612         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
2613         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
2614         macro on offset argument.
2615         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
2616         SYSCALL_LL64 on offset argument.
2617         * test-skeleton.c (FAIL_RET): Add macro.
2618         (FAIL_EXIT): Likewise.
2619         (FAIL_EXIT1): Likewise.
2620         (_FAIL): Likewise.
2621
2622 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2623
2624         [BZ #20629]
2625         resolv: Remove RES_USEBSTRING and its implementation.
2626         * resolv/resolv.h (RES_USEBSTRING): Remove.
2627         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
2628         (digitvalue, encode_bitstring, decode_bitstring): Remove.
2629         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
2630         (labellen): Remove extended label types support.
2631         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
2632         * resolv/res_init.c (res_setoptions): Likewise.
2633         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2634
2635 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2636
2637         resolv: Remove RES_NOIP6DOTINT and its implementation.
2638         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
2639         (RES_NOIP6DOTINT): Remove.
2640         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
2641         handling.
2642         * resolv/res_debug.c (p_option): Likewise.
2643         * resolv/res_init.c (res_setoptions): Likewise.
2644         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
2645
2646 2016-10-07  Florian Weimer  <fweimer@redhat.com>
2647
2648         resolv: Deprecate unimplemented flags.
2649         * misc/sys/cdefs.h (__glibc_macro_warning1)
2650         (__glibc_macro_warning): Define.
2651         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
2652         (RES_KEEPTSIG): Mark as deprecated.
2653         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
2654         RES_NOCHECKNAME, RES_KEEPTSIG.
2655         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
2656
2657 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2658
2659         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
2660         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
2661         Use strong_alias to create symbols for glibc verison 2.19.
2662
2663 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2664
2665         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
2666
2667 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2668
2669         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
2670
2671 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2672
2673         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
2674
2675 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2676
2677         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
2678         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
2679         in header for using it as type for ifunc function because __GI_* symbols
2680         for ppc32 do not target the ifunc symbols.
2681         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
2682
2683 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2684
2685         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
2686         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
2687         libc_ifunc_hidden_def.
2688         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
2689         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
2690         Redirect ifunced function in header for using it as type of ifunc'ed
2691         function. Redefine libc_hidden_def to use fallback non ifunc'ed
2692         function for __GI_* symbol.
2693         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
2694         * include/libc-symbols.h
2695         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
2696
2697 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2698
2699         [BZ #20478]
2700         * sysdeps/s390/multiarch/ifunc-resolve.h
2701         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
2702         to create ifunc symbols.
2703         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
2704         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
2705         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
2706         for using it as type for ifunc function.
2707         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2708         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
2709         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
2710         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
2711         * sysdeps/s390/multiarch/strcat.c: Likewise.
2712         * sysdeps/s390/multiarch/strchr.c: Likewise.
2713         * sysdeps/s390/multiarch/strcmp.c: Likewise.
2714         * sysdeps/s390/multiarch/strcpy.c: Likewise.
2715         * sysdeps/s390/multiarch/strcspn.c: Likewise.
2716         * sysdeps/s390/multiarch/strlen.c: Likewise.
2717         * sysdeps/s390/multiarch/strncmp.c: Likewise.
2718         * sysdeps/s390/multiarch/strncpy.c: Likewise.
2719         * sysdeps/s390/multiarch/strnlen.c: Likewise.
2720         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
2721         * sysdeps/s390/multiarch/strrchr.c: Likewise.
2722         * sysdeps/s390/multiarch/strspn.c: Likewise.
2723         * sysdeps/s390/multiarch/wcschr.c: Likewise.
2724         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
2725         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
2726         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
2727         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
2728         * sysdeps/s390/multiarch/wmemset.c: Likewise.
2729         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
2730         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
2731         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
2732         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
2733         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
2734         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
2735
2736 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2737
2738         * include/libc-symbols.h (__ifunc_resolver):
2739         New macro is used by __ifunc* macros.
2740         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
2741         depending on HAVE_GCC_IFUNC.
2742         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
2743         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
2744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
2745         Redirect ifunced function in header for using as type for ifunc function.
2746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
2747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
2748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
2749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
2750         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
2751         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
2752         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
2753         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
2754         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
2755         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
2756         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
2757         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
2758         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
2759         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
2760         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
2761         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
2762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
2763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
2764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
2765         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
2766         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
2767         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
2768         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
2769         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
2770         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
2771         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
2772         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
2773         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
2774         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
2775         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
2776         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
2777         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
2778         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
2779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
2780         Add libc_hidden_def() and use libc_ifunc_hidden() macro
2781         instead of libc_ifunc() macro.
2782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
2783         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
2784
2785 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
2786
2787         * config.h.in (HAVE_GCC_IFUNC): New undef.
2788         * configure.ac: Add check if gcc supports attribute ifunc feature.
2789         * configure: Regenerated.
2790         * manual/install.texi: Add recommendation for gcc with
2791         indirect-function support.
2792         * INSTALL: Regenerated.
2793
2794 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
2795
2796         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
2797         macro.
2798         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
2799         (__iseqsig): New declaration.
2800         * math/s_iseqsig_template.c: New file.
2801         * math/Versions (__iseqsigf): New libm symbol at version
2802         GLIBC_2.25.
2803         (__iseqsig): Likewise.
2804         (__iseqsigl): Likewise.
2805         * math/libm-test.inc (iseqsig_test_data): New array.
2806         (iseqsig_test): New function.
2807         (main): Call iseqsig_test.
2808         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
2809         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
2810         * manual/libm-err-tab.pl: Update comment on interfaces without
2811         ulps tabulated.
2812         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
2813         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
2814         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
2815         * sysdeps/nacl/libm.abilist: Update.
2816         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2817         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2818         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2819         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2820         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2821         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2822         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2823         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2824         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2825         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2826         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2827         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2829         Likewise.
2830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2831         Likewise.
2832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2833         Likewise.
2834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2835         Likewise.
2836         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2837         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2838         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2839         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2840         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2841         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2842         Likewise.
2843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2844         Likewise.
2845         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2846         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2847         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2848
2849 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2850
2851         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
2852         do_sincos_2, sloww, sloww1): Update comments.
2853
2854         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
2855         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
2856
2857         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
2858         K boolean and rename it.
2859         (__sin): Adjust.
2860         (__cos): Adjust.
2861
2862 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
2863             Siddhesh Poyarekar  <siddhesh@sourceware.org>
2864
2865         * manual/nss.texi: Fix typos in the manual.
2866
2867 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
2868
2869         * manual/contrib.texi: Fix typos in the manual.
2870
2871         * manual/maint.texi: Fix typos in the manual.
2872
2873         * manual/install.texi: Fix typos in the manual.
2874         * INSTALL: Regenerated.
2875
2876         * manual/lang.texi: Fix typos in the manual.
2877
2878         * manual/probes.texi: Fix typos in the manual.
2879
2880         * manual/threads.texi: Fix typos in the manual.
2881
2882         * manual/debug.texi: Fix typos in the manual.
2883
2884         * manual/crypt.texi: Fix typos in the manual.
2885
2886         * manual/conf.texi: Fix typos in the manual.
2887
2888         * manual/sysinfo.texi: Fix typos in the manual.
2889
2890         * manual/users.texi: Fix typos in the manual.
2891
2892         * manual/job.texi: Fix typos in the manual.
2893
2894         * manual/process.texi: Fix typos in the manual.
2895
2896         * manual/argp.texi: Fix typos in the manual.
2897         * manual/getopt.texi: Likewise.
2898         * manual/startup.texi: Likewise.
2899
2900         * manual/signal.texi: Fix typos in the manual.
2901
2902         * manual/setjmp.texi: Fix typos in the manual.
2903
2904         * manual/resource.texi: Fix typos in the manual.
2905
2906         * manual/time.texi: Fix typos in the manual.
2907
2908         * manual/arith.texi: Fix typos in the manual.
2909
2910         * manual/math.texi: Fix typos in the manual.
2911
2912         * manual/syslog.texi: Fix typos in the manual.
2913
2914         * manual/terminal.texi: Fix typos in the manual.
2915
2916         * manual/socket.texi: Fix typos in the manual.
2917
2918         * manual/filesys.texi: Fix typos in the manual.
2919
2920         * manual/llio.texi: Fix typos in the manual.
2921
2922         * manual/stdio.text: Fix typos in the manual.
2923
2924 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2925
2926         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
2927         instead of K1.
2928
2929         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
2930         SHIFT_QUADRANT and make it bool.
2931         (do_sincos_2): Likewise.
2932         (sloww): Likewise.
2933         (sloww1): Likewise.
2934         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
2935         (__cos): Likewise.
2936
2937 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2938
2939         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
2940
2941 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
2942
2943         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
2944         Define to __WORDSIZE, not conditional on [LONG_MAX ==
2945         0x7fffffffL].
2946         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
2947
2948 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2949
2950         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
2951         inline by __inline__.
2952         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
2953         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
2954         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
2955         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
2956         sigset_t from signal.h.
2957         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
2958         which is already required.
2959
2960 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
2961
2962         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2963
2964 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
2965
2966         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
2967         (struct tcp_repair_window): New type.
2968
2969 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2970
2971         * libio/tst-memstream3.c: Include string.h.
2972
2973 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2974
2975         [BZ #18241]
2976         [BZ #20181]
2977         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
2978         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
2979         write position is at the end the buffer.
2980         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
2981         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
2982         (_IO_str_seekoff): Set correct offset from negative displacement and
2983         set EINVAL for invalid ones.
2984         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
2985         buffer length.
2986         (_IO_wstr_switch_to_get_mode): New function.
2987         (_IO_wstr_seekoff): Set correct offset from negative displacement and
2988         set EINVAL for invalid ones.
2989         * libio/tst-memstream3.c: New file.
2990         * libio/tst-wmemstream3.c: Likewise.
2991         * manual/examples/memstrm.c: Remove warning when priting size_t.
2992
2993 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
2994
2995         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
2996         macro to use __builtin_fma.
2997         * sysdeps/x86_64/fpu/dla.h: Remove file.
2998
2999         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
3000         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
3001         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
3002
3003 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
3004
3005         [BZ #20292]
3006         * elf/Makefile (routines): Add dl-addr-obj.
3007         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
3008         tst-_dl_addr_inside_object.
3009         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
3010         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3011         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
3012         [ifeq (yesyes,$(have-fpie)$(build-shared))]
3013         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
3014         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
3015         * elf/dl-open.c: Likewise.
3016         * elf/dl-addr-obj.c: New file.
3017         * elf/tst-_dl_addr_inside_object.c: New file.
3018
3019 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
3020
3021         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
3022         <bits/iscanonical.h>.
3023         * bits/iscanonical.h: New file.
3024         * math/s_iscanonicall.c: Likewise.
3025         * math/Versions (__iscanonicall): New libm symbol at version
3026         GLIBC_2.25.
3027         * math/libm-test.inc (iscanonical_test_data): New array.
3028         (iscanonical_test): New function.
3029         (main): Call iscanonical_test.
3030         * math/Makefile (headers): Add bits/iscanonical.h.
3031         (type-ldouble-routines): Add s_iscanonicall.
3032         * manual/arith.texi (Floating Point Classes): Document
3033         iscanonical.
3034         * manual/libm-err-tab.pl: Update comment on interfaces without
3035         ulps tabulated.
3036         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
3037         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
3038         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
3039         Likewise.
3040         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
3041         test-iscanonical-ldbl-128ibm.
3042         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
3043         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
3044         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
3045         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
3046         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
3047         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3048         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3050         Likewise.
3051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3052         Likewise.
3053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3054         Likewise.
3055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3056         Likewise.
3057         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3058         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3059
3060 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3061
3062         * string/bits/string3.h: Remove C++ style comments.
3063
3064 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3065
3066         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
3067         instead of ternary condition.
3068         (do_sincos_2): Likewise.
3069         (__sin): Likewise.
3070         (__cos): Likewise.
3071         (slow): Likewise.
3072         (sloww): Likewise.
3073         (sloww1): Likewise.
3074         (bsloww): Likewise.
3075         (bsloww1): Likewise.
3076
3077         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
3078         instead of ternary condition.
3079         (do_sin_slow): Likewise.
3080         (do_sincos_1): Likewise.
3081         (do_sincos_2): Likewise.
3082         (__cos): Likewise.
3083         (sloww): Likewise.
3084         (sloww1): Likewise.
3085         (sloww2): Likewise.
3086         (bsloww): Likewise.
3087         (bsloww1): Likewise.
3088         (bsloww2): Likewise.
3089
3090         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
3091         check from here...
3092         (slow2): ... and here...
3093         (__sin): ... to here.
3094
3095 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
3096
3097         * math/math.h
3098         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
3099         Cast argument to its own type.
3100         * math/test-iszero-excess-precision.c: New file.
3101         * math/Makefile (tests): Add test-iszero-excess-precision.
3102         (CFLAGS-test-iszero-excess-precision.c): New variable.
3103
3104 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3105
3106         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
3107         field, add err field.
3108         (__spawni_child): Report error through err member instead of pipe.
3109         (__spawnix): Likewise.
3110
3111 2016-09-28  Zack Weinberg  <zackw@panix.com>
3112
3113         * scripts/check-installed-headers.sh: Generalize treatment of
3114         sys/elf.h to all target architectures.
3115
3116         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
3117         deleted typedef ucontext_t.
3118
3119 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3120
3121         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
3122         (__INTERNAL_SYSCALL1): Likewise.
3123         (__INTERNAL_SYSCALL2): Likewise.
3124         (__INTERNAL_SYSCALL3): Likewise.
3125         (__INTERNAL_SYSCALL4): Likewise.
3126         (__INTERNAL_SYSCALL5): Likewise.
3127         (__INTERNAL_SYSCALL6): Likewise.
3128         (__INTERNAL_SYSCALL7): Likewise.
3129         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
3130         (__INTERNAL_SYSCALL_NARGS): Likewise.
3131         (__INTERNAL_SYSCALL_DISP): Likewise.
3132         (INTERNAL_SYSCALL_CALL): Likewise.
3133         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
3134         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
3135         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
3136         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
3137         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
3138         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
3139         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
3140         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
3141         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
3142         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
3143         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
3144         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
3145         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
3146
3147 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
3148
3149         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
3150         macro.
3151         * math/libm-test.inc (iszero_test_data): New array.
3152         (iszero_test): New function.
3153         (main): Call iszero_test.
3154         * manual/arith.texi (Floating Point Classes): Document iszero.
3155         * manual/libm-err-tab.pl: Update comment on interfaces without
3156         ulps tabulated.
3157
3158 2016-09-23  Zack Weinberg  <zackw@panix.com>
3159
3160         * scripts/check-installed-headers.sh: New script.
3161         * Rules: In each directory that defines header files to be installed,
3162         run check-installed-headers.sh on them as a special test.
3163         * Makefile: Likewise for the headers installed at top level.
3164
3165         * include/aliases.h, include/alloca.h, include/argz.h
3166         * include/arpa/nameser.h, include/arpa/nameser_compat.h
3167         * include/elf.h, include/envz.h, include/err.h
3168         * include/execinfo.h, include/fpu_control.h, include/getopt.h
3169         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
3170         * include/link.h, include/malloc.h, include/mcheck.h
3171         * include/mntent.h, include/netinet/ether.h
3172         * include/nss.h, include/obstack.h, include/printf.h
3173         * include/pty.h, include/resolv.h, include/rpc/auth.h
3174         * include/rpc/auth_des.h, include/rpc/auth_unix.h
3175         * include/rpc/clnt.h, include/rpc/des_crypt.h
3176         * include/rpc/key_prot.h, include/rpc/netdb.h
3177         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
3178         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
3179         * include/rpc/rpc_msg.h, include/rpc/svc.h
3180         * include/rpc/svc_auth.h, include/rpc/xdr.h
3181         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
3182         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
3183         * include/rpcsvc/ypupd.h, include/shadow.h
3184         * include/stdio_ext.h, include/sys/epoll.h
3185         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
3186         * include/sys/prctl.h, include/sys/profil.h
3187         * include/sys/statfs.h, include/sys/sysctl.h
3188         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
3189         * sysdeps/arm/nacl/include/bits/setjmp.h
3190         * sysdeps/mips/include/sys/asm.h
3191         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
3192         * sysdeps/unix/sysv/linux/include/sys/timex.h
3193         * sysdeps/x86/fpu/include/bits/fenv.h:
3194         Add #ifndef _ISOMAC guard around internal declarations.
3195         Add multiple-inclusion guard if not already present.
3196
3197 2016-09-23  Zack Weinberg  <zackw@panix.com>
3198
3199         * sysdeps/generic/sys/ucontext.h
3200         * sysdeps/arm/sys/ucontext.h
3201         * sysdeps/i386/sys/ucontext.h
3202         * sysdeps/m68k/sys/ucontext.h
3203         * sysdeps/mips/sys/ucontext.h
3204         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
3205         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
3206         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
3207         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
3208         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
3209         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
3210         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
3211         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
3212         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
3213         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
3214         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
3215         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
3216         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
3217         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
3218         Include both bits/sigcontext.h and bits/sigstack.h.
3219         Fix grammar error in comment, if present.
3220
3221         * bits/sigstack.h
3222         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
3223         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
3224         * sysdeps/unix/sysv/linux/bits/sigstack.h
3225         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
3226         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
3227         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
3228         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
3229         * bits/sigcontext.h
3230         * sysdeps/mach/hurd/i386/bits/sigcontext.h
3231         * sysdeps/unix/sysv/linux/bits/sigcontext.h
3232         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
3233         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
3234         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
3235         as well as signal.h, if this was not already allowed.  Request
3236         definition of size_t if necessary.  Minimize semantically-null
3237         differences across files.
3238
3239 2016-09-23  Zack Weinberg  <zackw@panix.com>
3240
3241         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
3242         Remove all logic conditional on __need macros.  Move all the
3243         conditionally defined types to their own headers...
3244         * time/bits/types/clock_t.h: Define clock_t here.
3245         * time/bits/types/clockid_t.h: Define clockid_t here.
3246         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
3247         * time/bits/types/struct_timespec.h: Define struct timespec here.
3248         * time/bits/types/struct_timeval.h: Define struct timeval here.
3249         * time/bits/types/struct_tm.h: Define struct tm here.
3250         * time/bits/types/time_t.h: Define time_t here.
3251         * time/bits/types/timer_t.h: Define timer_t here.
3252         * time/Makefile: Install the new headers.
3253
3254         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
3255         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
3256         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
3257         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
3258         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
3259         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
3260         * sysdeps/unix/sysv/linux/bits/resource.h
3261         * sysdeps/unix/sysv/linux/bits/timex.h
3262         * sysdeps/unix/sysv/linux/mips/bits/resource.h
3263         * sysdeps/unix/sysv/linux/net/ppp_defs.h
3264         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
3265         * sysdeps/unix/sysv/linux/sys/acct.h
3266         * sysdeps/unix/sysv/linux/sys/timerfd.h
3267         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
3268         * time/sys/time.h, time/sys/timeb.h
3269         Use the new bits/types headers.
3270
3271         * include/time.h: Remove __need logic.
3272         * include/bits/time.h
3273         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
3274         * include/bits/types/time_t.h, include/bits/types/timer_t.h
3275         * include/bits/types/struct_itimerspec.h
3276         * include/bits/types/struct_timespec.h
3277         * include/bits/types/struct_timeval.h
3278         * include/bits/types/struct_tm.h:
3279         New wrapper headers.
3280
3281 2016-09-23  Zack Weinberg  <zackw@panix.com>
3282
3283         * sysdeps/mach/hurd/net/if_ppp.h
3284         * sysdeps/unix/sysv/linux/net/if_ppp.h:
3285         Only define struct ifpppstatsreq and struct ifpppcstatsreq
3286         if __USE_MISC is defined, to ensure struct ifreq is declared.
3287
3288         * inet/netinet/ether.h: Condition all function prototypes
3289         on __USE_MISC, to ensure struct ether_addr is declared.
3290
3291         * socket/bits/types/struct_osockaddr.h: New header.
3292         * include/bits/types/struct_osockaddr.h: New wrapper.
3293         * socket/Makefile: Install the new header.
3294         * socket/sys/socket.h, inet/protocols/talkd.h:
3295         Refer to bits/types/struct_osockaddr.h for the definition of
3296         struct osockaddr.
3297
3298 2016-09-23  Zack Weinberg  <zackw@panix.com>
3299
3300         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
3301         * inet/protocols/routed.h, inet/protocols/talkd.h
3302         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
3303         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
3304         * sysdeps/generic/netinet/if_ether.h
3305         * sysdeps/generic/netinet/in_systm.h
3306         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
3307         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3308         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
3309         * sysdeps/mach/hurd/net/if_arp.h
3310         * sysdeps/mach/hurd/net/if_ppp.h
3311         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
3312         * sysdeps/unix/sysv/linux/bits/in.h
3313         * sysdeps/unix/sysv/linux/net/ethernet.h
3314         * sysdeps/unix/sysv/linux/net/if_arp.h
3315         * sysdeps/unix/sysv/linux/net/if_ppp.h
3316         * sysdeps/unix/sysv/linux/net/if_shaper.h
3317         * sysdeps/unix/sysv/linux/net/route.h
3318         * sysdeps/unix/sysv/linux/netinet/if_ether.h
3319         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3320         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3321         * sysdeps/unix/sysv/linux/netipx/ipx.h
3322         * sysdeps/unix/sysv/linux/sys/acct.h
3323         * include/arpa/nameser.h, include/resolv.h:
3324         Change all uses of u_char to unsigned char,
3325         u_short and ushort to unsigned short, u_int and uint to unsigned int,
3326         u_long and ulong to unsigned long, u_int8_t to uint8_t,
3327         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
3328         and u_int64_t and u_quad_t to uint64_t.
3329
3330         * mach/sys/reboot.h: Remove two casts of integer literals
3331         to the types they already have.
3332
3333         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
3334         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3335         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
3336         from referring to 'unsigned char' to 'uint8_t' for consistency with
3337         the macro definition below.
3338
3339         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
3340         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
3341         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
3342         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
3343         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
3344         * sysdeps/unix/sysv/linux/sys/acct.h
3345         * include/arpa/nameser.h, include/resolv.h:
3346         Fix indentation disrupted by mechanical edits.
3347
3348         * inet/protocols/talkd.h, resolv/arpa/nameser.h
3349         * sysdeps/generic/netinet/in_systm.h
3350         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
3351         * sysdeps/gnu/netinet/udp.h
3352         * sysdeps/unix/sysv/linux/net/ethernet.h
3353         * sysdeps/unix/sysv/linux/net/if_arp.h
3354         * sysdeps/unix/sysv/linux/net/if_ppp.h
3355         * sysdeps/unix/sysv/linux/net/if_shaper.h
3356         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
3357         * sysdeps/unix/sysv/linux/netinet/if_tr.h
3358         * sysdeps/unix/sysv/linux/netipx/ipx.h
3359         * sysdeps/unix/sysv/linux/sys/acct.h
3360         Include stdint.h for uintNN_t definitions.
3361         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
3362
3363 2016-09-23  Zack Weinberg  <zackw@panix.com>
3364
3365         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
3366         * sysdeps/unix/sysv/linux/netrose/rose.h:
3367         Include sys/socket.h and netax25/ax25.h.
3368
3369         * inet/netinet/icmp6.h, inet/netinet/ip6.h
3370         * resolv/arpa/nameser_compat.h:
3371         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
3372
3373         * sysdeps/unix/sysv/linux/sys/quota.h:
3374         Use __caddr_t instead of caddr_t.
3375         * sysdeps/unix/sysv/linux/sys/timerfd.h:
3376         Use __clockid_t instead of clockid_t.
3377
3378         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
3379
3380         * argp/argp.h: Check whether _LIBC is defined before expanding it.
3381         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
3382         expanding it.
3383
3384         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
3385         Define __glibc_c99_flexarr_available to 1 when the compiler
3386         supports C99-compatible flexible array members, 0 otherwise.
3387         * sysdeps/unix/sysv/linux/bits/socket.h
3388         * sysdeps/mach/hurd/bits/socket.h
3389         * bits/socket.h: Use __glibc_c99_flexarr_available in
3390         definitions of struct cmsghdr and CMSG_DATA.
3391
3392 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3393
3394         * manual/nss.texi (NSS Modules Interface): Adjust function return
3395         type to enum nss_status.  Document errnop argument.  Clarify
3396         h_errnop semantics.  Fix cross-reference formatting.
3397         (NSS Module Function Internals): Mention that *errnop needs to be
3398         set on failure, but not to zero.
3399
3400 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3401
3402         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
3403         (get_random_name): New functions.
3404         (check_wrapper_flags_mode): Use linkat to give the new file a name
3405         determined by get_random_name.
3406         (do_test): Add calls to test open64 and openat64.
3407
3408 2016-09-23  Florian Weimer  <fweimer@redhat.com>
3409
3410         * test-skeleton.c: Remove #include <stdarg.h>.
3411
3412 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
3413
3414         [BZ #19826]
3415         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
3416         initialization of static TLS entries.
3417         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
3418         * nptl/allocatestack.c (init_one_static_tls): Likewise.
3419
3420 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3421
3422         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
3423         _hurd_malloc_fork_prepare.
3424         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
3425         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
3426         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
3427         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
3428         (_hurd_fork_child_hook): Drop malloc_fork_child.
3429         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
3430         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
3431         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
3432         after locking locks (notably hurd_dtable_lock). Call
3433         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
3434         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
3435         __malloc_fork_unlock_child.
3436         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
3437
3438 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
3439
3440         * soft-fp/extendhftf2.c: New.
3441         * soft-fp/fixhfti.c: Likewise.
3442         * soft-fp/fixunshfti.c: Likewise.
3443         * soft-fp/floattihf.c: Likewise.
3444         * soft-fp/floatuntihf.c: Likewise.
3445         * soft-fp/half.h: Likewise.
3446         * soft-fp/trunctfhf2.c: Likewise.
3447
3448 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
3449
3450         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
3451         macro.
3452         * math/libm-test.inc (issubnormal_test_data): New array.
3453         (issubnormal_test): New function.
3454         * manual/arith.texi (Floating Point Classes): Document
3455         issubnormal.
3456         * manual/libm-err-tab.pl: Update comment on interfaces without
3457         ulps tabulated.
3458
3459         * sysdeps/generic/stdint.h: Define
3460         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3461         <bits/libc-header-start.h> instead of including <features.h>.
3462         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
3463         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
3464         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
3465         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
3466         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
3467         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
3468         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
3469         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
3470         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
3471         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
3472         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
3473         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
3474         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
3475         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
3476         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
3477         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
3478         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
3479         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
3480         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
3481         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
3482         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
3483         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
3484         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
3485         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
3486         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
3487         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
3488         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
3489         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
3490         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
3491         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
3492         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
3493         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
3494         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
3495         * manual/arith.texi (Integers): Document these macros for types
3496         specified by width properties.
3497         * manual/lang.texi (Width of Type): Document these macros for
3498         other standard typedefs.
3499         * stdlib/tst-width-stdint.c: New file.
3500         * stdlib/Makefile (tests): Add tst-width-stdint.
3501
3502 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3503
3504         [BZ #20016]
3505         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
3506         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
3507         Move ...
3508         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
3509         ... here, as compatibility symbols in a new file.
3510         * resolv/Makefile (libresolv-routines): Add compat-hooks.
3511         * resolv/res_init.c (__res_vinit): Adjust member names.
3512         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
3513         * resolv/resolv.h (res_sendhookact, res_send_qhook)
3514         (res_send_rhook): Remove.
3515         (struct __res_state): Rename qhook, rhook members.
3516
3517 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3518
3519         malloc: Use __libc_lock wrappers.
3520         * malloc/arena.c (list_lock, free_list_lock): Define using
3521         __libc_lock_define_initialized.
3522         (arena_lock): Adjust formatting.
3523         * malloc/malloc.c (struct malloc_state): Define mutex using
3524         __libc_lock_define.
3525         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
3526         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
3527         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
3528         (mutex_unlock, mutex_trylock): Remove.
3529         (__pthread_initialize): Remove unused macro.
3530         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
3531         (mutex_unlock, mutex_trylock): Remove.
3532
3533 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3534
3535         [BZ #20592]
3536         Remove RR type classification macros.
3537         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
3538         (ns_t_udp_p, ns_t_xfr_p): Remove.
3539
3540 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3541
3542         Remove misleading version information.
3543         * resolv/arpa/nameser.h (__NAMESER): Remove.
3544         * resolv/arpa/nameser_compat.h (__BIND): Remove.
3545
3546 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3547
3548         Remove the always-defined BIND_4_COMPAT macro.
3549         * resolv/arpa/nameser.h: Unconditionally include
3550         <arpa/nameser_compat.h>.
3551         (BIND_4_COMPAT): Remove.
3552         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
3553
3554 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3555
3556         [BZ #20591]
3557         Remove obsolete DNSSEC support.
3558         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
3559         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
3560         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
3561         (ns_verify_tcp, ns_verify_tcp_init): Remove.
3562         (ns_cert_types): Add comment.
3563         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
3564         separately.
3565         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
3566         (dst_s_dns_key_id): Remove.
3567         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
3568         variables.
3569
3570 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3571
3572         [BZ #20524]
3573         * manual/string.texi (String/Array Comparison): Clarify the
3574         strverscmp behavior.
3575
3576 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3577
3578         * test-skeleton.c (xasprintf): Add function.
3579         * io/tst-open-tmpfile.c: New test.
3580         * io/Makefile (tests): Add it.
3581
3582 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3583
3584         Avoid running $(CXX) during build to obtain header file paths.
3585         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
3586         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
3587         * Makerules (cstdlib, cmath): Remove variables.  Use
3588         $(c++-cstdlib-header), $(c++-cmath-header) instead.
3589         * configure: Regenerate.
3590
3591 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3592
3593         * Makeconfig (all-object-suffixes): Include .op only if
3594         $(build-profile).
3595
3596 2016-09-21  Florian Weimer  <fweimer@redhat.com>
3597
3598         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
3599         conditionals.  Do not define PATH_MAX.
3600
3601 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3602
3603         * posix/Makefile (tests): Add tst-spawn3.
3604         * posix/tst-spawn3.c: New file.
3605         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
3606         if it is already opened for open action.
3607
3608         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
3609         all signals when executing the clone vfork child.
3610         (SIGALL_SET): Remove macro.
3611
3612         * nptl/Makefile (tests): Add tst-exec5.
3613         * nptl/tst-exec5.c: New file.
3614         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
3615         asynchronous cancellation.
3616
3617 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3618
3619         * hurd/exc2signal.c: #include <hurd/signal.h>
3620         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
3621         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
3622         accordingly.
3623         * mach/mach_error.c (mach_error): Fix old-style function definition.
3624         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
3625
3626 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3627
3628         * math/Makefile (libm-calls): Remove s_nanF.
3629         (gen-libm-calls): Add s_nanF.
3630
3631         * math/s_nan.c: Refactor into ...
3632         * math/s_nan_template.c: New file.
3633
3634         * math/s_nanf.c: Removed.
3635         * math/s_nanl.c: Removed.
3636         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
3637         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
3638
3639         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
3640         (LDOUBLE_nanl_libm_version): New macro.
3641
3642         * sysdeps/generic/math-type-macros-double.h:
3643         (M_STRTO_NAN): New macro.
3644         * sysdeps/generic/math-type-macros-float.h: Likewise.
3645         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3646
3647         * sysdeps/generic/math-type-macros.h: Document
3648         M_STRTO_NAN.
3649
3650 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3651
3652         * math/s_nanf.c: Remove __nanf undef.
3653         * math/s_nan.c: Remove __nan undef.
3654         * math/s_nanl.c: Remove __nanl undef.
3655
3656         * sysdeps/generic/math_private.h (__nan): Remove macro
3657         override.
3658         (__nanf): Likewise.
3659         (__nanl): Likewise.
3660
3661 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3662
3663         * math/Makefile (gen-all-calls): New variable.
3664         (generated): Replace gen-libm-calls with gen-all-calls.
3665         (gen-libm-templates.stmp): Likewise.  Also, ensure
3666         the output directory exists or is created and add
3667         dependency on the Makefile.
3668         (calls): Move s_ldexpF into gen-calls.
3669         (gen-calls): New variable.
3670
3671         * math/s_ldexpf.c: Removed.
3672         * math/s_ldexpl.c: Removed.
3673         * math/s_ldexp.c: Refactored into ...
3674         * math/s_ldexp_template.c: New file.
3675
3676         * sysdeps/generic/math-type-macros-double.h: Remove
3677         redundant fall-through definition of declare_mgen_alias.
3678         (declare_mgen_alias_2): New macro.
3679
3680         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
3681         New macro for function aliased to two exported symbols.
3682
3683         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
3684         new template file.
3685         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
3686
3687 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3688
3689         * Makeconfig (all-object-suffixes): Remove .og.
3690         * Makerules (elide-routines.og): Remove.
3691         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
3692         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
3693         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
3694
3695 2016-09-20  Florian Weimer  <fweimer@redhat.com>
3696
3697         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
3698         .os objects.
3699
3700 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3701
3702         [BZ #20615]
3703         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
3704         fpu directory by non-fpu.
3705         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
3706         on non-fpu directory from a fpu directory.
3707
3708 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3709
3710         * include/limits.h: Define
3711         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
3712         <bits/libc-header-start.h> instead of including <features.h>.
3713         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
3714         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
3715         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
3716         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
3717         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
3718         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
3719         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
3720         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
3721         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
3722         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
3723         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
3724         * manual/lang.texi (Width of Type): Document these macros.
3725         * stdlib/tst-width.c: New file.
3726         * stdlib/Makefile (tests): Add tst-width.
3727
3728 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3729
3730         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
3731         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
3732
3733 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3734
3735         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
3736         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3737         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3738
3739 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3740
3741         [BZ #18243]
3742         * rt/Makefile (test): Add tst-shm-cancel.
3743         * rt/tst-shm-cancel.c: New file.
3744         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
3745
3746         [BZ #18243]
3747         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
3748         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
3749         definition.
3750         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
3751         uncontended case.
3752         * nptl/sem_wait.c (__new_sem_wait): Likewise.
3753         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
3754         (tf): Fix check for uncontended case.
3755         (do_test): Likewise.
3756         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
3757         (tf): Fix check for uncontended case.
3758         (do_test): Likewise.
3759         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
3760         (tf): Fix check for uncontended case.
3761         (do_test): Likewise.
3762         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
3763         (tf): Fix check for uncontended case.
3764         (do_test): Likewise.
3765
3766         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
3767         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
3768
3769         [BZ #15765]
3770         * nptl/Makefile (tests): Add tst-sem16.
3771         * nptl/tst-sem16.c: New file.
3772         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
3773
3774         * nptl/sem_open.c (sem_open): Init pad value to 0.
3775         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
3776         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
3777
3778 2016-09-15  Florian Weimer  <fweimer@redhat.com>
3779
3780         [BZ #20611]
3781         * inet/Makefile (routines): Add inet6_scopeid_pton.
3782         (tests): Add tst-inet6_scopeid_pton.
3783         * inet/inet6_scopeid_pton.c: New file.
3784         * inet/net-internal.h: Likewise.
3785         * inet/tst-inet6_scopeid_pton.c: New test.
3786         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
3787         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
3788         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3789
3790 2016-09-14  Florian Weimer  <fweimer@redhat.com>
3791
3792         Remove support for compiling wrappers with PTW.
3793         * sysdeps/nptl/Makeconfig: Drop ptw- support.
3794         * nptl/Makefile (pthread-compat-wrappers): Define.
3795         (libpthread-routines): Use pthread-compat-wrappers.
3796         * sysdeps/unix/sysv/linux/alpha/Makefile
3797         (libpthread-routines, libpthread-shared-only-routines): Remove
3798         ptw- prefix.
3799         * sysdeps/s390/nptl/Makefile
3800         (libpthread-routines, libpthread-shared-only-routines): Likewise.
3801         * sysdeps/ia64/nptl/Makefile
3802         (libpthread-routines, libpthread-shared-only-routines): Likewise.
3803         * sysdeps/nacl/Makefile (libpthread-routines): Use
3804         pthread-compat-wrappers to filter the routines list instead of the
3805         ptw- prefix.
3806
3807 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3808
3809         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
3810         with L() and remove explicit suffix, convert real literals
3811         which can be equivalentally substituted with integers, and
3812         transform -L(x) to L(-x).
3813
3814         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
3815         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
3816         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
3817         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
3818         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
3819         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3820         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3821         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3822         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
3823         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
3824         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3825         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3826         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
3827         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
3828         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
3829         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
3830         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
3831         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3832         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
3833         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
3834         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
3835         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
3836         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
3837         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3838         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
3839         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
3840         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3841         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
3842         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
3843         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3844         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3845         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3846         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
3847         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3848         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3849         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3850         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3851         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3852         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3853         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
3854         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3855         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3856         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3857         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
3858         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
3859         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
3860         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3861         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
3862         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3863         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3864
3865 2016-09-13  Florian Weimer  <fweimer@redhat.com>
3866
3867         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
3868
3869 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3870
3871         * malloc/Makefile (tests): Remove individual static test names
3872         and just add all of tests-static.
3873
3874         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
3875
3876 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
3877
3878         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
3879         file.
3880
3881         * sysdeps/sparc/fpu/fegetmode.c: New file.
3882         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
3883
3884         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
3885         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
3886
3887         * sysdeps/s390/fpu/fegetmode.c: New file.
3888         * sysdeps/s390/fpu/fesetmode.c: Likewise.
3889
3890         * sysdeps/powerpc/fpu/fegetmode.c: New file.
3891         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
3892         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
3893         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
3894         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
3895         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
3896
3897         * sysdeps/mips/fpu/fegetmode.c: New file.
3898         * sysdeps/mips/fpu/fesetmode.c: Likewise.
3899
3900         * sysdeps/m68k/fpu/fegetmode.c: New file.
3901         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
3902
3903         * sysdeps/ia64/fpu/fegetmode.c: New file.
3904         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
3905
3906         * sysdeps/hppa/fpu/fegetmode.c: New file.
3907         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
3908
3909         * sysdeps/arm/fegetmode.c: New file.
3910         * sysdeps/arm/fesetmode.c: Likewise.
3911
3912         * sysdeps/alpha/fpu/fegetmode.c: New file.
3913         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
3914
3915         * sysdeps/aarch64/fpu/fegetmode.c: New file.
3916         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
3917
3918         * math/fegetmode.c: New file.
3919         * math/fesetmode.c: Likewise.
3920         * sysdeps/i386/fpu/fegetmode.c: Likewise.
3921         * sysdeps/i386/fpu/fesetmode.c: Likewise.
3922         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
3923         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
3924         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
3925         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
3926         declaration.
3927         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
3928         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
3929         typedef.
3930         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3931         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3932         (femode_t): New typedef.
3933         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3934         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3935         (femode_t): New typedef.
3936         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3937         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3938         (femode_t): New typedef.
3939         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3940         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3941         (femode_t): New typedef.
3942         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3943         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3944         (femode_t): New typedef.
3945         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3946         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3947         (femode_t): New typedef.
3948         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3949         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3950         (femode_t): New typedef.
3951         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3952         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3953         (femode_t): New typedef.
3954         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3955         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3956         (femode_t): New typedef.
3957         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3958         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3959         (femode_t): New typedef.
3960         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
3961         declaration.
3962         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3963         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3964         (femode_t): New typedef.
3965         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3966         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3967         (femode_t): New typedef.
3968         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3969         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3970         (femode_t): New typedef.
3971         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3972         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3973         (femode_t): New typedef.
3974         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3975         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
3976         (femode_t): New typedef.
3977         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
3978         * manual/arith.texi (FE_DFL_MODE): Document macro.
3979         (fegetmode): Document function.
3980         (fesetmode): Likewise.
3981         * math/Versions (fegetmode): New libm symbol at version
3982         GLIBC_2.25.
3983         (fesetmode): Likewise.
3984         * math/Makefile (libm-support): Add fegetmode and fesetmode.
3985         (tests): Add test-femode and test-femode-traps.
3986         * math/test-femode-traps.c: New file.
3987         * math/test-femode.c: Likewise.
3988         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
3989         alias for __fe_dfl_env.
3990         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
3991         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
3992         (__fe_dfl_mode): Likewise.
3993         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
3994         version GLIBC_2.25.
3995         * sysdeps/nacl/libm.abilist: Update.
3996         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
3997         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3998         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3999         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4000         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4001         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4002         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4003         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4004         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4005         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4006         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4007         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4009         Likewise.
4010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4011         Likewise.
4012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4013         Likewise.
4014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4015         Likewise.
4016         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4017         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4018         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4019         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4020         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4021         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4022         Likewise.
4023         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4024         Likewise.
4025         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4026         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4027         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4028
4029 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4030
4031         [BZ #20495]
4032         [BZ #20508]
4033         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
4034         processors, set Use_dl_runtime_resolve_slow and set
4035         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
4036         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
4037         New.
4038         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
4039         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
4040         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
4041         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
4042         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
4043         if Use_dl_runtime_resolve_opt is set.  Use
4044         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
4045         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
4046         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
4047         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
4048         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
4049         New.
4050         (_dl_runtime_resolve_opt): Likewise.
4051         (_dl_runtime_profile): Define only if _dl_runtime_profile is
4052         defined.
4053
4054 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4055
4056         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
4057         __libc_memalign with "+ RELA R_390_GLOB_DAT".
4058
4059 2016-09-06  Florian Weimer  <fweimer@redhat.com>
4060
4061         Convert malloc to __libc_lock.  Automated part, using this Perl
4062         s/// command:
4063           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
4064             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
4065         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
4066         conversion.
4067
4068 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
4069
4070         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
4071         (linknamespace-symlists-tests): Likewise.
4072         (linknamespace-header-tests): Likewise.
4073
4074 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
4075
4076         [BZ #19810]
4077         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
4078         * elf/tst-noload.c: New test case.
4079         * elf/Makefile (tests): Add tst-noload.
4080
4081 2016-09-02  Roland McGrath  <roland@hack.frob.com>
4082
4083         * sysdeps/nacl/dup.c: Add libc_hidden_def.
4084
4085         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
4086         not any more.
4087
4088         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
4089
4090 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4091
4092         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
4093         (do_cos_slow): Likewise.
4094         (do_sin): Likewise.
4095         (do_sin_slow): Likewise.
4096         (slow): Likewise.
4097         (slow1): Likewise.
4098         (slow2): Likewise.
4099         (sloww): Likewise.
4100         (sloww1): Likewise.
4101         (sloww2): Likewise.
4102         (bsloww): Likewise.
4103         (bsloww1): Likewise.
4104         (bsloww2): Likewise.
4105         (cslow2): Likewise.
4106
4107         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
4108
4109         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
4110         arguments.  Consolidate input partitioning from callers here.
4111         (do_cos_slow): Likewise.
4112         (do_sin): Likewise.
4113         (do_sin_slow): Likewise.
4114         (do_sincos_1): Remove the no longer necessary input partitioning.
4115         (do_sincos_2): Likewise.
4116         (__sin): Likewise.
4117         (__cos): Likewise.
4118         (slow1): Likewise.
4119         (slow2): Likewise.
4120         (sloww1): Likewise.
4121         (sloww2): Likewise.
4122         (bsloww1): Likewise.
4123         (bsloww2): Likewise.
4124         (cslow2): Likewise.
4125
4126 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4127
4128         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
4129         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
4130         outside of allocated array.
4131
4132 2016-09-02  Florian Weimer  <fweimer@redhat.com>
4133
4134         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
4135         instead of MB_CUR_MAX to avoid variable-length array.
4136
4137 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4138
4139         * math/Makefile (libm-calls): Remove k_rem_pio2F.
4140         (type-double-routines): Add k_rem_pio2.
4141         (type-float-routines): Add k_rem_pio2f.
4142
4143         * sysdeps/generic/math_private.h:
4144         (__kernel_rem_pio2l): Removed.
4145
4146         * math/k_rem_pio2l.c: Removed.
4147         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
4148         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
4149         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
4150         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
4151
4152 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4153
4154         * math/Makefile (gen-libm-calls): Add s_fmin
4155         (libm-calls): Remove above.
4156
4157         * math/s_fmin.c: Refactor into ...
4158         * math/s_fmin_template.c: New file.
4159
4160         * math/s_fminf.c: Removed.
4161         * math/s_fminl.c: Removed.
4162         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4163         (LDOUBLE_fmin_libm_version): New macro.
4164
4165         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
4166         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
4167
4168 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4169
4170         * math/Makefile: (gen-libm-calls): Add s_fmax.
4171         (libm-calls): Remove above.
4172
4173         * math/s_fmax.c: Refactor into ...
4174         * math/s_fmax_template.c: New file.
4175         * math/s_fmaxf.c: Removed.
4176         * math/s_fmaxl.c: Removed.
4177
4178         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4179         (LDOUBLE_fmaxl_libm_version): New macro.
4180
4181         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
4182         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
4183
4184         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
4185         s_fmin.c to pick the aarch64 version of the file.
4186         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
4187         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
4188
4189 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4190
4191         * math/Makefile: (gen-libm-calls): Add s_nextdown.
4192         (libm-calls): Remove above.
4193
4194         * math/s_nextdown.c: Refactor into ...
4195         * math/s_nextdown_template.c: New file.
4196         * math/s_nextdownf.c: Removed.
4197         * math/s_nextdownl.c: Removed.
4198
4199         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
4200
4201 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4202
4203         * math/Makefile (gen-libm-calls): Add s_fdim.
4204         (libm-calls): Move to above.
4205
4206         * math/s_fdim.c: Renamed and refactored into to ...
4207         * math/s_fdim_template.c: New file.
4208         * math/s_fdiml.c: Removed.
4209         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
4210         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
4211
4212         * sysdeps/generic/math-type-macros-double.h:
4213         (declare_mgen_alias): Don't declare if already declared.
4214         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
4215         Likewise.
4216
4217         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
4218         (declare_mgen_alias): Don't declare if already declared.
4219         (M_LIBM_NEED_COMPAT): Likewise.
4220         (declare_mgen_libm_compat): Likewise.
4221         (LDOUBLE_fdiml_libm_version): New macro.
4222
4223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4224         Include math/s_fdim.c now that ldbl-opt version is not needed.
4225         (declare_mgen_alias): New macro to disable aliasing.
4226
4227         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
4228         (declare_mgen_alias): Likewise.
4229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
4230         (declare_mgen_alias): Likewise.
4231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
4232         (declare_mgen_alias): Likewise.
4233         (M_LIBM_NEED_COMPAT): Likewise.
4234
4235 2016-09-01  Florian Weimer  <fweimer@redhat.com>
4236
4237         [BZ #20525]
4238         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
4239         Include <linux/quota.h>.
4240         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
4241         and btodb.
4242         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
4243         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
4244         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
4245         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
4246         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
4247         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
4248         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
4249         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
4250         types.
4251         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
4252         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
4253
4254 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4255
4256         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
4257         (gammal_positive): Fix spacing.
4258         (__ieee754_gammal_r): Likewise.
4259
4260 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4261
4262         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
4263         (_Float128): Define as long double, always.
4264         (L): Apply long double type suffix, always.
4265
4266         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
4267         _Float128, excepting comments.
4268
4269         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
4270         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
4271         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4272         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
4273         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
4274         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4275         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
4276         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4277         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4278         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
4279         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
4280         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4281         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4282         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
4283         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4284         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
4285         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
4286         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4287         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4288         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
4289         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4290         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4291         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
4292         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4293         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4294         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4295         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4296         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4297         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4298         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4299         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
4300         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4301         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4302         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4303         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4304         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4305         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4306         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4307         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4308         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4309         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4310         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4311         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4312         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4313         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4314         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4315         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4316         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4317         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4318         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4319         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4320         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4321         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4322         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4323         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4324         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4325         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4326         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
4327         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4328         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4329         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
4330         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4331         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4332         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4333         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4334         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
4335         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4336         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4337
4338         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
4339         _Float128, and include math_private.h.
4340         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4341
4342         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
4343         long double semantics.
4344         (_Float128): Likewise.
4345         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
4346         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4347         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4348         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4349
4350 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4351
4352         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
4353         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
4354         * sysdeps/s390/configure: Regenerated.
4355         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
4356         instruction for raising over-/underflow if z196 zarch is supported
4357         by default.
4358         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
4359
4360 2016-08-30  Svante Signell  <svante.signell@gmail.com>
4361
4362         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
4363         it point to a dumb buffer for RPC to fill it.
4364
4365 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4366
4367         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
4368         instead of if/else.
4369         (do_sin_slow): Likewise.
4370         (do_sincos_1): Use fabs instead of if/else.
4371         (do_sincos_2): Likewise.
4372         (__sin): Likewise.
4373         (__cos): Likewise.
4374         (slow2): Likewise.
4375         (sloww): Likewise.
4376         (sloww1): Likewise.  Drop argument M.
4377         (sloww2): Use fabs instead of if/else.
4378         (bsloww): Likewise.
4379         (bsloww1): Likewise.
4380         (bsloww2): Likewise.
4381
4382         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
4383         fall through comment.
4384         (do_sincos_1): Likewise.
4385
4386         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
4387         Consolidate switch cases 0 and 2.
4388
4389 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4390
4391         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
4392         (libm-calls): Remove the above.
4393
4394         * math/s_cexp_template.c: Update using type-generic macros.
4395         * math/s_clog10_template.c: Likewise.
4396         * math/s_cpow_template.c: Likewise.
4397         * math/s_clog_template.c: Likewise.
4398         * math/s_cproj_template.c: Likewise.
4399         * math/s_csqrt_template.c: Likewise.
4400
4401         * math/s_cexp.c: Removed.
4402         * math/s_cexpf.c: Removed.
4403         * math/s_cexpl.c: Removed.
4404         * math/s_clog10.c: Removed.
4405         * math/s_clog10f.c: Removed.
4406         * math/s_clog10l.c: Removed.
4407         * math/s_cpow.c: Removed.
4408         * math/s_cpowf.c: Removed.
4409         * math/s_cpowl.c: Removed.
4410         * math/s_clog.c: Removed.
4411         * math/s_clogf.c: Removed.
4412         * math/s_clogl.c: Removed.
4413         * math/s_cproj.c: Removed.
4414         * math/s_cprojf.c: Removed.
4415         * math/s_cprojl.c: Removed.
4416         * math/s_csqrt.c: Removed.
4417         * math/s_csqrtf.c: Removed.
4418         * math/s_csqrtl.c: Removed.
4419
4420         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
4421         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
4422         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
4423         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
4424         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
4425         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
4426
4427         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
4428         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
4429         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
4430         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
4431         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
4432         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
4433         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
4434         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
4435         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
4436         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
4437         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
4438
4439         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
4440         version.
4441
4442         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
4443         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
4444         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
4445         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
4446
4447 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4448
4449         * s_cexp_template.c: Copy of s_cexp.c.
4450         * s_clog_template.c: Copy of s_clog.c.
4451         * s_clog10_template.c: Copy of s_clog10.c.
4452         * s_cpow_template.c: Copy of s_cpow.c.
4453         * s_cproj_template.c: Copy of s_cproj.c.
4454         * s_csqrt_template.c: Copy of s_csqrt.c.
4455
4456 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4457
4458         [BZ #20517]
4459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
4460         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
4461         exported.
4462
4463 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
4464
4465         * math/fetestexceptflag.c: New file.
4466         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
4467         Stefan Liebler.
4468         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
4469         (fetestexceptflag): New function declaration.
4470         * manual/arith.texi (fetestexceptflag): Document function.
4471         * math/Versions (fetestexceptflag): New libm symbol at version
4472         GLIBC_2.25.
4473         * math/Makefile (libm-support): Add fetestexceptflag.
4474         (tests): Add test-fetestexceptflag.
4475         * math/test-fetestexceptflag.c: New file.
4476         * sysdeps/nacl/libm.abilist: Update.
4477         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4478         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4479         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4480         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4481         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4482         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4483         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4484         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4485         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4486         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4487         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4488         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
4490         Likewise.
4491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
4492         Likewise.
4493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
4494         Likewise.
4495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
4496         Likewise.
4497         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4498         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4499         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4500         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4501         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4502         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
4503         Likewise.
4504         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
4505         Likewise.
4506         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4507         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4508         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4509
4510 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4511
4512         [BZ #20432]
4513         Avoid strong references to malloc-internal symbols when linking
4514         statically, to support statically interposed mallocs.
4515         * include/libc-symbols.h (call_function_static_weak): New macro.
4516         * malloc/Makefile (tests): Add tst-interpose-nothread,
4517         tst-interpose-thread, tst-interpose-static-nothread,
4518         tst-interpose-static-thread.
4519         (tests-static): Add tst-interpose-static-nothread,
4520         tst-interpose-static-thread.
4521         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
4522         tst-interpose-aux-thread.o.
4523         (test-extras): Add tst-interpose-aux-nothread,
4524         tst-interpose-aux-thread.
4525         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
4526         tst-interpose-aux-nothread.o.
4527         (tst-interpose-thread, tst-interpose-static-thread): Link with
4528         tst-interpose-aux-thread.o and libthread.
4529         * malloc/tst-interpose-aux-nothread.c: New file.
4530         * malloc/tst-interpose-aux-thread.c: Likewise.
4531         * malloc/tst-interpose-aux.c: Likewise.
4532         * malloc/tst-interpose-aux.h: Likewise.
4533         * malloc/tst-interpose-nothread.c: Likewise.
4534         * malloc/tst-interpose-skeleton.c: Likewise.
4535         * malloc/tst-interpose-static-nothread.c: Likewise.
4536         * malloc/tst-interpose-static-thread.c: Likewise.
4537         * malloc/tst-interpose-thread.c: Likewise.
4538         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
4539         * sysdeps/mach/hurd/fork.c (__fork): Only call
4540         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
4541         __malloc_fork_unlock_child if defined.
4542         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
4543
4544 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4545
4546         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
4547         timespec C99 designated initialization.
4548
4549 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4550
4551         [BZ #19946]
4552         Avoid expected SIGALRM signals.
4553         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
4554         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
4555         (xpthread_create, xpthread_detach, xpthread_join)
4556         (delayed_exit_thread, delayed_exit): New functions.
4557         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
4558         (tf): Use xpthread_cond_wait.
4559         (do_test): Likewise.  Replace alarm with delayed_exit.
4560         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4561         (do_test): Call delayed_exit.  Report failure.
4562         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4563         (do_test): Call delayed_exit.
4564         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4565         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
4566         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4567         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
4568         error.
4569         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
4570         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
4571         error.
4572         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
4573         (do_test): Call delayed_exit.
4574         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
4575         (do_test): Call delayed_exit.
4576         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
4577         (do_test): Call delayed_exit instead of alarm.  Use
4578         xpthread_mutex_lock.
4579         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
4580         (do_test): Call delayed_exit instead of alarm.  Use
4581         xpthread_mutex_lock.
4582         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
4583         (do_test): Call delayed_exit instead of alarm.
4584         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
4585         (do_test): Call delayed_exit instead of alarm.  Use
4586         xpthread_spin_lock.
4587         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
4588         (do_test): Call delayed_exit instead of alarm.  Use
4589         xpthread_join.
4590
4591 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
4594         adjust CFA when allocating register save area on re-aligned
4595         stack.
4596
4597 2016-08-26  Florian Weimer  <fweimer@redhat.com>
4598
4599         * string/tst-cmp.c: New test.
4600         * string/Makefile (tests): Add it.
4601
4602 2016-08-25  Mark Wielaard  <mark@klomp.org>
4603
4604         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
4605         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
4606         (check_tree_recurse): Use newly defined accessors.
4607         (check_tree): Likewise.
4608         (maybe_split_for_insert): Likewise.
4609         (__tfind): Likewise.
4610         (__tdelete): Likewise.
4611         (trecurse): Likewise.
4612         (tdestroy_recurse): Likewise.
4613         (__tsearch): Likewise. And add asserts for malloc alignment.
4614         (__twalk): Cast root to node in case CHECK_TREE is defined.
4615
4616 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4617
4618         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
4619
4620 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4621
4622         * math/Makefile (libm-gen-calls): Add
4623         catan, catanh, ctan, ctanh.
4624         (libm-calls): Remove the above.
4625
4626         * math/s_catan_template.c: Update using type-generic macros.
4627         * math/s_catanh_template.c: Likewise.
4628         * math/s_ctan_template.c: Likewise.
4629         * math/s_ctanh_template.c: Likewise.
4630
4631         * math/s_catanf.c: Removed.
4632         * math/s_catan.c: Removed.
4633         * math/s_catanl.c: Removed.
4634         * math/s_catanhf.c: Removed.
4635         * math/s_catanh.c: Removed.
4636         * math/s_catanhl.c: Removed.
4637         * math/s_ctanf.c: Removed.
4638         * math/s_ctan.c: Removed.
4639         * math/s_ctanl.c: Removed.
4640         * math/s_ctanhf.c: Removed.
4641         * math/s_ctanh.c: Removed.
4642         * math/s_ctanhl.c: Removed.
4643
4644         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
4645         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
4646         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
4647         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
4648         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
4649         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
4650
4651         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
4652         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
4653         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
4654         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
4655
4656 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4657
4658         * s_catan_template.c: Copy of s_catan.c.
4659         * s_catanh_template.c: Copy of s_catanh.c.
4660         * s_ctan_template.c: Copy of s_ctan.c.
4661         * s_ctanh_template.c: Copy of s_ctanh.c.
4662
4663 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4664
4665         * math/Makefile (gen-libm-calls): Move
4666         casin, casinh, csin, csinh here.
4667         (libm-calls): Remove the above.
4668
4669         * math/s_casin_template.c: Update using type-generic macros.
4670         * math/s_casinh_template.c: Likewise.
4671         * math/s_csin_template.c: Likewise.
4672         * math/s_csinh_template.c: Likewise.
4673         * math/k_casinh_template.c: Likewise.
4674
4675         * math/s_casinf.c: Removed.
4676         * math/s_casin.c: Removed.
4677         * math/s_casinl.c: Removed.
4678         * math/s_casinh.c: Removed.
4679         * math/s_casinhf.c: Removed.
4680         * math/s_casinhl.c: Removed.
4681         * math/s_csin.c: Removed.
4682         * math/s_csinf.c: Removed.
4683         * math/s_csinl.c: Removed.
4684         * math/s_csinh.c: Removed.
4685         * math/s_csinhf.c: Removed.
4686         * math/s_csinhl.c: Removed.
4687         * math/k_casinh.c: Removed.
4688         * math/k_casinhf.c: Removed.
4689         * math/k_casinhl.c: Removed.
4690
4691         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
4692         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
4693         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
4694         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
4695
4696         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
4697         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
4698         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
4699         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
4700         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
4701         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
4702         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
4703         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
4704
4705         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
4706         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
4707         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
4708         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
4709
4710         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
4711         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
4712         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
4713         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
4714
4715 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4716
4717         * s_casin_template.c: Copy of s_casin.c.
4718         * s_casinh_template.c: Copy of s_casinh.c.
4719         * s_csin_template.c: Copy of s_csin.c.
4720         * s_csinh_template.c: Copy of s_csinh.c.
4721         * k_casinh_template.c: Copy of k_casinh.c.
4722
4723 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4724
4725         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
4726
4727 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4728
4729         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
4730         (mul_split) Remove, rename as mul_splitl, remove
4731         redundant float.h include, and include via mul_splitl.h
4732
4733         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
4734         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4735         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4736         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
4737         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
4738
4739         * math/mul_splitl.h: New file.
4740
4741         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
4742         Move into mul_split.h, and remove redundant float.h include.
4743
4744         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
4745         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4746         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4747         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
4748
4749         * math/mul_split.h: New file.
4750
4751 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4752
4753         * math/Makefile (libm-gen-calls): Move
4754         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
4755         (libm-calls): Remove above.
4756
4757         * math/s_cacos_template.c: Update using type-generic macros.
4758         * math/s_cacosh_template.c: Likewise.
4759         * math/s_ccos_template.c: Likewise.
4760         * math/s_ccosh_template.c: Likwise.
4761
4762         * math/s_cacosf.c: Removed.
4763         * math/s_cacos.c: Removed.
4764         * math/s_cacosl.c: Removed.
4765         * math/s_cacoshf.c: Removed.
4766         * math/s_cacosh.c: Removed.
4767         * math/s_cacoshl.c: Removed.
4768         * math/s_ccosf.c: Removed.
4769         * math/s_ccos.c: Removed.
4770         * math/s_ccosl.c: Removed.
4771         * math/s_ccoshf.c: Removed.
4772         * math/s_ccosh.c: Removed.
4773         * math/s_ccoshl.c: Removed.
4774
4775         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
4776         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
4777         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
4778         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
4779         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
4780         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
4781
4782         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
4783         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
4784         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
4785         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
4786
4787         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
4788         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
4789         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
4790         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
4791
4792 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4793
4794         * s_cacos_template.c: Copy of s_cacos.c.
4795         * s_cacosh_template.c: Copy of s_cacosh.c.
4796         * s_ccos_template.c: Copy of s_ccos.c.
4797         * s_ccosh_template.c: Copy of s_ccosh.c.
4798
4799 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4800
4801         * stdlib/tst-strtod-round-skeleton.c:
4802         Refactored from tst-strtod-round.c.
4803
4804         (L_): New macro to apply literal modifier.
4805         (FNPFX): New macro to select str or wcs prefix.
4806         (CHAR): New macro to choose wchar_t or char.
4807         (STRM): New macro to choose printf for tested character type.
4808
4809         (STRTO): New macro to choose appropriate string -> real function.
4810         (FNPFXS): Stringitized version of FNPFX.
4811         (STR): Support for above macro.
4812         (STRX): Likewise.
4813
4814         (TEST): Update with above macros.
4815         (test): Likewise.
4816         (GEN_ONE_TEST): Likewise.
4817         (test_in_one_mode): Likewise.
4818
4819         * stdlib/tst-strtod-round.c: New file.
4820         * wcsmbs/tst-wcstod-round.c: New file.
4821
4822         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
4823         (tst-wcstod-round): Add libm depencency for fesetround.
4824
4825 2016-08-19  Zack Weinberg  <zackw@panix.com>
4826
4827         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
4828
4829 2016-08-18  Torvald Riegel  <triegel@redhat.com>
4830
4831         [BZ #20477]
4832         * resolv/res_hconf.c (do_init): Use atomic access.
4833         * resolv/res_hconf.h: Add comments.
4834         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
4835         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
4836         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4837
4838 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4839
4840         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
4841         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
4842         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
4843         Likewise.
4844
4845 2016-08-18  Florian Weimer  <fweimer@redhat.com>
4846
4847         [BZ #16907]
4848         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
4849         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
4850         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
4851         (__attribute__): Remove definition.
4852
4853 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4854
4855         * sysdeps/ieee754/ldbl-128/e_asinl.c:
4856         Remove unused sqrtl declaration.
4857
4858 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4859
4860         * math/Makefile: (gen-libm-templates.stmp): New rule.
4861         (libm-calls): Move carg conj cimag and cabs into ...
4862         (gen-libm-calls): New variable.
4863         (generated): Inform Make objects from gen-libm-calls
4864         may be generated.
4865
4866         * sysdeps/generic/math-type-macros.h: New file.
4867         * sysdeps/generic/math-type-macros-float.h: Likewise.
4868         * sysdeps/generic/math-type-macros-double.h: Likewise.
4869         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
4870         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
4871         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
4872
4873         * math/cabs.c: Refactor into
4874         * math/cabs_template.c: new file.
4875         * math/cabsf.c: Removed.
4876         * math/cabsl.c: Removed.
4877         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
4878         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
4879
4880         * math/carg.c: Refactor into
4881         * math/carg_template.c: new file.
4882         * math/cargf.c: Removed.
4883         * math/cargl.c: Removed.
4884         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
4885         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
4886
4887         * math/conj.c: Refactor into
4888         * math/conj_template.c: new file.
4889         * math/conjf.c: Removed.
4890         * math/conjl.c: Removed.
4891         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
4892         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
4893
4894         * math/cimag.c: Refactor into
4895         * math/cimag_template.c: new file.
4896         * math/cimagf.c: Removed.
4897         * math/cimagl.c: Removed.
4898         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
4899         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
4900
4901         * math/cimag.c: Refactor into
4902         * math/cimag_template.c: new file.
4903         * math/cimagf.c: Removed.
4904         * math/cimagl.c: Removed.
4905         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
4906         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
4907
4908 2016-08-17  Florian Weimer  <fweimer@redhat.com>
4909
4910         Reduce time to expected nptl/tst-once5 failure.
4911         * nptl/tst-once5.cc (TIMEOUT): Define.
4912
4913 2016-08-17  Florian Weimer  <fweimer@redhat.com>
4914
4915         [BZ #20452]
4916         Avoid additional copies of objects in libc.a in static libraries.
4917         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
4918         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
4919         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
4920         rt-sysdep.
4921         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
4922         Add nptl-sysdep.
4923         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
4924         Add ptw-sysdep.
4925         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
4926         rt-sysdep.
4927         * sysdeps/unix/sysv/linux/alpha/Makefile
4928         (libpthread-shared-only-routines): Add ptw-sysdep,
4929         ptw-sigprocmask, ptw-rt_sigaction.
4930         * sysdeps/unix/sysv/linux/ia64/Makefile
4931         (librt-shared-only-routines): Add rt-sysdep.
4932         * sysdeps/unix/sysv/linux/i386/Makefile
4933         (libpthread-shared-only-routines): Add libc-do-syscall.
4934         * sysdeps/unix/sysv/linux/microblaze/Makefile
4935         (libpthread-shared-only-routines): Add sysdep.
4936         * sysdeps/unix/sysv/linux/powerpc/Makefile
4937         (librt-shared-only-routines): Add rt-sysdep.
4938         (libpthread-shared-only-routines): Add sysdep.
4939         * sysdeps/unix/sysv/linux/s390/Makefile
4940         (librt-shared-only-routines): Add rt-sysdep.
4941         * sysdeps/unix/sysv/linux/sparc/Makefile
4942         (librt-shared-only-routines): Add rt-sysdep.
4943         (libpthread-shared-only-routines): Add sysdep.
4944         * sysdeps/unix/sysv/linux/tile/Makefile
4945         (libpthread-shared-only-routines): Likewise.
4946
4947 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
4948
4949         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
4950         Mask implicit bit out of unpacked value.
4951         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
4952         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
4953         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
4954
4955         * sysdeps/sparc/fpu/fesetexcept.c: New file.
4956
4957         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
4958
4959         * sysdeps/s390/fpu/fesetexcept.c: New file.
4960
4961         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
4962         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
4963         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
4964
4965         * sysdeps/mips/fpu/fesetexcept.c: New file.
4966
4967         * sysdeps/m68k/fpu/fesetexcept.c: New file.
4968
4969         * sysdeps/ia64/fpu/fesetexcept.c: New file.
4970
4971         * sysdeps/hppa/fpu/fesetexcept.c: New file.
4972
4973         * sysdeps/arm/fesetexcept.c: New file.
4974
4975         * sysdeps/alpha/fpu/fesetexcept.c: New file.
4976
4977         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
4978
4979         * math/fesetexcept.c: New file.
4980         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
4981         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
4982         * math/fenv.h: Define
4983         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
4984         <bits/libc-header-start.h> instead of including <features.h>.
4985         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
4986         declaration.
4987         * manual/arith.texi (fesetexcept): Document function.
4988         * math/Versions (fesetexcept): New libm symbol at version
4989         GLIBC_2.25.
4990         * math/Makefile (libm-support): Add fesetexcept.
4991         (tests): Add test-fesetexcept and test-fesetexcept-traps.
4992         * math/test-fesetexcept.c: New file.
4993         * math/test-fesetexcept-traps.c: Likewise.
4994         * sysdeps/nacl/libm.abilist: Update.
4995         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4996         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4997         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4998         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4999         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5000         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5001         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5002         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5003         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5004         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5005         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5006         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
5008         Likewise.
5009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5010         Likewise.
5011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
5012         Likewise.
5013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
5014         Likewise.
5015         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5016         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5017         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5018         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5019         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5020         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5021         Likewise.
5022         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5023         Likewise.
5024         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5025         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5026         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5027
5028 2016-08-16  Florian Weimer  <fweimer@redhat.com>
5029
5030         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
5031         New.
5032         (do_test): Apply default_stack_size_in_mb if not set.
5033         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
5034
5035 2016-08-15  Andreas Schwab  <schwab@suse.de>
5036
5037         [BZ #20435]
5038         CVE-2016-6323
5039         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
5040         as .cantunwind.
5041
5042 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
5043
5044         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
5045         comment from fraiseexcpt.c.
5046
5047         * math/test-fexcept.c (feraiseexcept_exact): New function.
5048         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
5049         (test_except): Likewise.
5050
5051 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
5052
5053         [BZ #20455]
5054         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
5055         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
5056         to be restored.
5057
5058         * math/test-fexcept-traps.c: New file.
5059         * math/test-fexcept.c: Likewise.
5060         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
5061         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
5062         macro.
5063         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
5064         (EXCEPTION_SET_FORCES_TRAP): Likewise.
5065
5066 2016-08-09  Torvald Riegel  <triegel@redhat.com>
5067
5068         * include/atomic.h (atomic_fetch_and_relaxed,
5069         atomic_fetch_and_release, atomic_fetch_or_release,
5070         atomic_fetch_xor_release): New.
5071
5072 2016-08-06  Christian Seiler  <christian@iwakd.de>
5073
5074         [BZ #20444]
5075         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
5076         MACH_PORT_NULL.
5077
5078 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5079
5080         * math/s_fdim.c: Avoid alias renamed.
5081         * math/s_fdimf.c: Likewise.
5082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5083         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5084         Add s_fdimf-vis3, s_fdim-vis3.
5085         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5086         (CFLAGS-s_fdim-vis3.c): Likewise.
5087         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
5088         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
5089
5090 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5091
5092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5093         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5094         Remove s_fdimf-vis3, s_fdim-vis3.
5095         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
5096         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
5097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
5098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
5099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
5100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
5101         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
5102         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
5103         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
5104         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
5105
5106 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
5107
5108         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
5109         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
5110         -Wa,-Av9a -mvis.
5111
5112 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5113
5114         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
5115         LIT() to individual constants in simple expressions
5116         after splitting on spaces.
5117         (_apply_lit): Rename replaced version, and use it to
5118         apply to what appears to be a token.
5119
5120         * math/libm-test.inc: Fix many, many issues with
5121         spacing.
5122
5123 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
5124
5125         * math/math.h: Move comment about <bits/mathdef.h> definitions
5126         above inclusion of <bits/mathdef.h>.  Do not mention
5127         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
5128
5129 2016-08-05  Torvald Riegel  <triegel@redhat.com>
5130
5131         * include/atomic.h (atomic_exchange_relaxed): New.
5132
5133 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
5134
5135         * math/e_scalb.c: Do not include <fenv.h>.
5136         (invalid_fn): Do calculation resulting in NaN instead of raising
5137         FE_INVALID and returning a NaN explicitly.
5138         * math/e_scalbf.c: Do not include <fenv.h>.
5139         (invalid_fn): Do calculation resulting in NaN instead of raising
5140         FE_INVALID and returning a NaN explicitly.
5141         * math/e_scalbl.c: Do not include <fenv.h>.
5142         (invalid_fn): Do calculation resulting in NaN instead of raising
5143         FE_INVALID and returning a NaN explicitly.
5144
5145 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
5146
5147         * po/de.po: Updated from Translation Project.
5148         * po/fi.po: Likewise.
5149         * po/sv.po: Likewise.
5150
5151 2016-08-04  Florian Weimer  <fweimer@redhat.com>
5152
5153         [BZ #20452]
5154         Use sysdep.o from libc.a in static libraries.
5155         * sysdeps/unix/sysv/linux/i386/Makefile
5156         (libpthread-shared-only-routines): Add sysdep.
5157         (librt-shared-only-routines): Likewise.
5158
5159 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5160
5161         * math/tgmath.h (nextdown): Define if
5162         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
5163         (nextup): Likewise.
5164
5165         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
5166         macro.
5167         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5168         Document.
5169         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
5170         Document macro.
5171         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
5172         (exp10f): Likewise.
5173         (exp10l): Likewise.
5174         * math/bits/mathcalls.h (exp10): Declare if
5175         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5176
5177         * manual/arith.texi (nextup): Fix typo in last change.
5178
5179 2016-08-03  Zack Weinberg  <zackw@panix.com>
5180
5181         [BZ #19239]
5182         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
5183         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
5184         define major, minor, and makedev to issue deprecation warnings on use.
5185         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
5186         previously-activated deprecation warnings for these macros and prevent
5187         subsequent inclusions of this header from having any effect.
5188         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
5189         including <sys/sysmacros.h>, and undefine it again afterward.
5190
5191 2016-08-03  Zack Weinberg  <zackw@panix.com>
5192
5193         * sysdeps/generic/sys/sysmacros.h: Delete file.
5194         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
5195         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
5196         * bits/sysmacros.h: ... here; this encoding is now the generic
5197         encoding.  Now defines only the following macros:
5198         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
5199         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
5200         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
5201
5202         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
5203         bits/sysmacros.h and the above new macros to generate the
5204         public implementations of major, minor, and makedev.
5205         * misc/tst-makedev.c: New test.
5206         * include/sys/sysmacros.h: New wrapper.
5207
5208         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
5209         (routines): Add makedev.
5210         (tests): Add tst-makedev.
5211         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
5212         gnu_dev_makedev.
5213         * posix/Makefile (headers): Remove sys/sysmacros.h.
5214         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
5215
5216         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
5217         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
5218         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
5219         * sysdeps/unix/sysv/linux/alpha/libc.abilist
5220         * sysdeps/unix/sysv/linux/arm/libc.abilist
5221         * sysdeps/unix/sysv/linux/hppa/libc.abilist
5222         * sysdeps/unix/sysv/linux/i386/libc.abilist
5223         * sysdeps/unix/sysv/linux/ia64/libc.abilist
5224         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
5225         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
5226         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
5227         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5228         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5229         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5230         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5231         * sysdeps/unix/sysv/linux/nios2/libc.abilist
5232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5236         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
5237         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5238         * sysdeps/unix/sysv/linux/sh/libc.abilist
5239         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
5240         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
5241         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
5242         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
5243         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
5244         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
5245         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
5246         Add GLIBC_2.25.
5247
5248         * include/features.h (__glibc_clang_prereq): New macro.
5249         * misc/sys/cdefs.h (__glibc_clang_has_extension)
5250         (__attribute_deprecated_msg__): New macros.
5251
5252 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5253
5254         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
5255         macro.
5256         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
5257         * manual/arith.texi (issignaling): Document as ISO from TS
5258         18661-1:2014.
5259         (nextup): Likewise.
5260         (nextupf): Likewise.
5261         (nextupl): Likewise.
5262         (nextdown): Likewise.
5263         (nextdownf): Likewise.
5264         (nextdownl): Likewise.
5265         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
5266         macro.
5267         * math/math.h: Define
5268         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5269         <bits/libc-header-start.h> instead of including <features.h>.
5270         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
5271         [__USE_GNU].
5272         * math/bits/mathcalls.h (nextdown): Declare if
5273         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
5274         (nextup): Likewise.
5275         (__issignaling): Likewise.
5276
5277 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5278
5279         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
5280         check, and remove __glibc_likely hint
5281         from FP_INFINITE check.
5282         * s_csinhf.c (__csinhf): Likewise.
5283
5284         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
5285         hint from FP_INFINITE check.
5286         * s_csinhl.c (__csinhl): Likewise.
5287
5288 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5289
5290         * math/Makefile (libm-calls): Insert F placeholder into
5291         object names.  Move w_lgamma_compat* routines into
5292         (libm-compat-calls): New variable.
5293         (libm-compat-calls-ldouble-yes): New variable.
5294         (calls): Insert F placeholder.
5295         (generated): Redefine using new type-foreach macro call.
5296         (routines): Likewise.
5297
5298         (types): New variable to hold a list of symbolic names
5299         for each type supported by the target machine.
5300         (libm-routines): Redefine using new types variable.
5301         (type-foreach): macro to replace fooF with the
5302         appropriately suffixed foo for each types.
5303
5304         (type-ldouble-suffix): New variable.
5305         (type-ldouble-routines): Likewise.
5306         (type-ldouble-yes): Likewise.
5307         (type-double-suffix): Likewise.
5308         (type-double-routines): Likewise.
5309         (type-float-suffix): Likewise.
5310         (type-float-routines): Likewise.
5311
5312         (dbl-only-routines): Remove.
5313         (long-c-yes): Likewise.
5314         (long-m-routines): Likewise.
5315         (long-m-support): Likewise.
5316         (long-m-yes): Likewise.
5317         (test-longdouble-yes): Likewise.
5318
5319         (test-float.o): Simplify by increasing the scope of the
5320         recipe which adds libm-test.stmp to the vector types.
5321         (test-ifloat.o): Likewise.
5322         (test-float-finite.o): Likewise.
5323         (test-double.o): Likewise
5324         (test-idouble.o): Likewise.
5325         (test-double-finite.o): Likewise.
5326         (test-ldouble.o): Likewise
5327         (test-ildoubl.o): Likewise.
5328         (test-ldouble-finite.o): Likewise.
5329
5330         (libm-tests): Redefine type tests using foreach and the
5331         list of types in types.
5332
5333         (CPPFLAGS-test-ildoubl.c): Rename to
5334         (CPPFLAGS-test-ildouble.c): New variable
5335
5336         * math/test-ildoubl.c: Rename to
5337         * math/test-ildouble.c: New file.
5338
5339 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5340
5341         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
5342         Use fabsl instead of fabs.
5343         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
5344         Likewise.
5345         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
5346         Add long double suffix to constant to ensure proper
5347         promotion to long double.
5348
5349 2016-08-03  Tom Tromey  <tom@tromey.com>
5350
5351         [BZ #20311]
5352         * nptl_db/Makefile (headers): Add proc_service.h.
5353         * nptl_db/proc_service.h: Add include guard.  Use
5354         __BEGIN/__END_DECLS.
5355         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
5356         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
5357         arguments.
5358
5359
5360 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5361
5362         [BZ #17730]
5363         Avoid using memalign for TCB allocations.
5364         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
5365         (_dl_allocate_tls_storage): Use malloc and manual alignment.
5366         Avoid alignment gap in the TLS_DTV_AT_TP case.
5367         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
5368         determine the pointer to free.
5369         * nptl/tst-tls3-malloc.c: New test.
5370         * nptl/Makefile (tests): Add it.
5371         (tst-tls3-malloc): Link with libdl, libpthread.
5372         (LDFLAGS-tst-tls3-malloc): Set.
5373         (tst-tls3-malloc.out): Depend on DSO used in test.
5374
5375 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5376
5377         [BZ #17730]
5378         Avoid using memalign for TLS allocations.
5379         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
5380         is_static member with to_free member.
5381         (union dtv): Use struct dtv_pointer.
5382         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
5383         dtv_pointer instead of is_static.
5384         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5385         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
5386         instead of val.
5387         (allocate_dtv_entry): New function.
5388         (allocate_and_init): Return struct dtv_pointer.  Call
5389         allocate_dtv_entry instead of __libc_memalign.
5390         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
5391         instead of val.
5392         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
5393         instead of is_static.  Adjust call to allocate_and_init.
5394         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
5395         struct dtv_pointer instead of val.
5396
5397 2016-08-03  Florian Weimer  <fweimer@redhat.com>
5398
5399         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
5400         (MALLOC_ALIGN_MASK): Move ...
5401         * malloc/malloc-internal.h: ... to here.
5402         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
5403
5404 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
5405
5406         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
5407         (UDP_ENCAP_GTP1U): Likewise.
5408
5409         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
5410         (PF_MAX): Update value.
5411         (AF_QIPCRTR): New macro.
5412
5413 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5414
5415         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
5416         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5417         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
5418         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
5419         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5420         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5421         s_truncf-vis3, s_trunc-vis3.
5422         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
5423         (CFLAGS-s_ceil-vis3.c): Likewise.
5424         (CFLAGS-s_floorf-vis3.c): Likewise.
5425         (CFLAGS-s_floor-vis3.c): Likewise.
5426         (CFLAGS-s_truncf-vis3.c): Likewise.
5427         (CFLAGS-s_trunc-vis3.c): Likewise.
5428         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
5429         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
5430         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
5431         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
5432         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
5433         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
5434         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
5435         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
5436         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
5437         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
5438         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
5439         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
5440
5441 2016-08-02  David S. Miller  <davem@davemloft.net>
5442
5443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5444         (__nearbyint_vis3): Don't check for sNaN before float register is
5445         loaded with the incoming argument.
5446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5447         (__nearbyintf_vis3): Likewise.
5448         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
5449         Likewise.
5450         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
5451         Likewise.
5452
5453         * string/test-strncmp.c (do_test_limit): Make sure the test data
5454         stream is aligned as required for the type "CHAR".
5455         (do_test): Likewise.
5456
5457 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
5458
5459         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
5460         by beq instructions jumping to the end of the function.
5461         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
5462         clobber list. Use "i" constraint instead of "X".
5463         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
5464         of "X".
5465
5466 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
5467
5468         * bits/libc-header-start.h: New file.
5469         * Makefile (headers): Add bits/libc-header-start.h.
5470         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
5471         (__GLIBC_USE): New macro.
5472         * libio/stdio.h: Define
5473         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5474         <bits/libc-header-start.h> instead of including <features.h>.
5475         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
5476         (open_memstream): Likewise.
5477         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
5478         (__asprintf): Likewise.
5479         (asprintf): Likewise.
5480         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
5481         (getdelim): Likewise.
5482         (getline): Likewise.
5483         * string/string.h: Define
5484         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5485         <bits/libc-header-start.h> instead of including <features.h>.
5486         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
5487         (strndup): Likewise.
5488         * wcsmbs/wchar.h: Define
5489         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
5490         <bits/libc-header-start.h> instead of including <features.h>.
5491         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
5492         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
5493
5494 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5495
5496         Support linking against compatibility symbols, for use in tests.
5497         * include/libc-symbols.h (symbol_version_reference): New macro.
5498         (symbol_version): Use it.
5499         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
5500         (compat_symbol): Use compat_symbol_reference.
5501         (compat_symbol_1, compat_symbol_2): Remove.
5502         (compat_symbol_reference, compat_symbol_reference_1)
5503         (compat_symbol_reference_2): New macro.  Use
5504         symbol_version_reference.
5505
5506 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5507
5508         [BZ #19469]
5509         * malloc/Makefile (CPPFLAGS): Compile tests with
5510         -DTEST_NO_MALLOPT.
5511         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
5512
5513 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
5514
5515         [BZ #20033]
5516         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
5517         finite version.
5518         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
5519         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
5520         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
5521         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
5522         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
5523         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
5524         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
5525         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
5526         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
5527         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
5528         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
5529         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
5530         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
5531         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
5532         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
5533         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
5534         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
5535         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
5536         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
5537         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
5538         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
5539         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
5540         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
5541         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
5542         in zero power.
5543
5544 2016-08-02  Florian Weimer  <fweimer@redhat.com>
5545
5546         [BZ #20370]
5547         * malloc/arena.c (get_free_list): Update comment.  Assert that
5548         arenas on the free list have no attached threads.
5549         (remove_from_free_list): New function.
5550         (reused_arena): Call it.
5551
5552 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
5553
5554         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
5555         when it is a NaN.
5556         [_IEEE_FP_INEXACT] Remove.
5557         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
5558         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
5559         when it is a NaN.
5560         [_IEEE_FP_INEXACT] Remove.
5561         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
5562         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
5563         when it is a NaN.
5564         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
5565         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
5566         when its absolute value is greater than 0x1.0p52.
5567         [_IEEE_FP_INEXACT] Remove.
5568         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
5569         when its absolute value is greater than 0x1.0p23.
5570         [_IEEE_FP_INEXACT] Remove.
5571
5572 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
5573
5574         * version.h (RELEASE): Set to "development"
5575         (VERSION): Set to 2.24.90.
5576         * NEWS: Add 2.25 section.
5577
5578         * version.h (RELEASE): Set to "stable"
5579         (VERSION): Set to 2.24.
5580         * include/features.h (__GLIBC_MINOR__): Set to 24.
5581
5582         * NEWS: Add 2.24 fixed bugs.
5583         * po/libc.pot: Regenerate.
5584
5585 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
5586
5587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
5588         [$(subdir) = math] (libm-sysdep_routines): Remove.
5589         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
5590         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
5591         s_truncf-vis3, s_trunc-vis3.
5592         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
5593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
5594         file.
5595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
5596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
5597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
5601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
5602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
5604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
5605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
5606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
5607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
5608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
5609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
5610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
5611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
5612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
5613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
5614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
5615         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
5616         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
5617         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
5618         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5619         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
5620         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
5621         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5622         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
5623         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
5624         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5625         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
5626         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
5627         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5628         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
5629         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
5630         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
5631         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
5632         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
5633         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
5634         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
5635         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
5636         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
5637         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
5638
5639 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
5640
5641         [BZ #20384]
5642         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
5643         test-double-libmvec-sincos-avx-main.o,
5644         test-double-libmvec-sincos-avx2-main.o,
5645         test-double-libmvec-sincos-main.o,
5646         test-float-libmvec-sincosf-avx-main.o,
5647         test-float-libmvec-sincosf-avx2-main.o and
5648         test-float-libmvec-sincosf-main.o.
5649         test-float-libmvec-sincosf-avx512-main.o.
5650         ($(objpfx)test-double-libmvec-sincos): Also link with
5651         $(objpfx)test-double-libmvec-sincos-main.o.
5652         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
5653         $(objpfx)test-double-libmvec-sincos-avx-main.o.
5654         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
5655         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
5656         ($(objpfx)test-float-libmvec-sincosf): Also link with
5657         $(objpfx)test-float-libmvec-sincosf-main.o.
5658         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
5659         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
5660         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
5661         test-double-libmvec-sincos-avx512-main.o and
5662         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
5663         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
5664         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
5665         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
5666         (CFLAGS-test-double-libmvec-sincos.c): Removed.
5667         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
5668         (CFLAGS-test-double-libmvec-sincos-main.c): New.
5669         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
5670         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
5671         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
5672         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
5673         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
5674         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
5675         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
5676         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
5677         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
5678         -DREQUIRE_AVX2.
5679         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
5680         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
5681         -DREQUIRE_AVX512F.
5682         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
5683         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
5684         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
5685         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
5686         file.
5687         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
5688         Likewise.
5689         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
5690         Likewise.
5691         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
5692         Likewise.
5693         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
5694         Likewise.
5695         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
5696         Likewise.
5697         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
5698         Likewise.
5699         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
5700         Likewise.
5701
5702 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
5703
5704         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
5705
5706 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
5707
5708         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
5709         and typo in a comment about AT_HWCAP entry.
5710
5711 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5712
5713         * sysdeps/aarch64/libm-test-ulps: Updated.
5714
5715 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
5716
5717         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
5718         of r13 as it is not restored in mvcle case.
5719
5720 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
5721
5722         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
5723         Rename "ret" to "__ret".
5724         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
5725         inline_syscall5, inline_syscall6): Likewise.
5726
5727 2016-07-19   Will Newton  <will.newton@gmail.com>
5728
5729         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
5730         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
5731         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
5732         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
5733         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
5734
5735 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
5736
5737         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
5738         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
5739         -mfpmath=387 with $(rtld-CFLAGS).
5740         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
5741         $(rtld-CFLAGS).
5742
5743 2016-07-18   Ross Burton  <ross.burton@intel.com>
5744              Khem Raj  <raj.khem@gmail.com>
5745
5746         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
5747         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
5748         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
5749         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
5750         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
5751         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
5752         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
5753         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
5754         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
5755         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
5756         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
5757         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
5758         R_METAG_TLS_DTPOFF): New.
5759
5760 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5761             Matt Clay  <mclay@lycos.com>
5762
5763         [BZ #20357]
5764         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
5765         to call __mpsin/__mpcos and to negate values.
5766         * math/auto-libm-test-in: Add test.
5767         * math/auto-libm-test-out: Regenerate.
5768
5769 2016-07-18  Zack Weinberg  <zackw@panix.com>
5770
5771         * grp/Makefile: Don't install the internal header grp-merge.h.
5772
5773 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5774
5775         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5776
5777 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5778
5779         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
5780
5781 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5782
5783         [BZ #15368]
5784         * sysdeps/unix/sysv/linux/nptl-signals.h
5785         (__nptl_clear_internal_signals): New function.
5786         (__libc_signal_block_all): Likewise.
5787         (__libc_signal_block_app): Likewise.
5788         (__libc_signal_restore_set): Likewise.
5789         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
5790         implementation.
5791         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
5792         the cached pid/tid value in pthread structure.
5793
5794 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5795
5796         [BZ #20347]
5797         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
5798
5799 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5800
5801         [BZ #20348]
5802         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
5803         preadv64, pwrite64 and pwritev64.
5804
5805 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5806
5807         [BZ #20350]
5808         * posix/tst-preadwrite.c: Renamed to ...
5809         * posix/tst-preadwrite-common.c: This.
5810         (PREAD): Removed.
5811         (PWRITE): Likewise.
5812         (STRINGIFY): Likewise.
5813         (STRINGIFY2): Likewise.
5814         (do_prepare): Make it static and remove function arguments.
5815         (do_test): Likewise.
5816         (PREPARE): Updated.
5817         (TEST_FUNCTION): New.
5818         (name): Make it static.
5819         (fd): Likewise.
5820         (do_prepare): Use create_temp_file.
5821         (do_test): Renamed to ...
5822         (do_test_with_offset): This.  Make it static and accept offset.
5823         Properly check return value of PWRITE and PREAD.  Return bytes
5824         read.  Don't close fd nor unlink name.
5825         * posix/tst-preadwrite.c: Rewrite.
5826         * posix/tst-preadwrite64.c: Likewise.
5827
5828 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5829
5830         [BZ #20309]
5831         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
5832         -mtls-dialect=gnu2 works.
5833         * configure: Regenerated.
5834         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
5835         (tests): Add tst-gnu2-tls1.
5836         (modules-names): Add tst-gnu2-tls1mod.
5837         ($(objpfx)tst-gnu2-tls1): New.
5838         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
5839         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
5840         * elf/tst-gnu2-tls1.c: New file.
5841         * elf/tst-gnu2-tls1mod.c: Likewise.
5842         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
5843         bytes for push in the PLT entry to align the stack.
5844
5845 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
5846
5847         [BZ #20349]
5848         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
5849
5850 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5851
5852         [BZ #18707]
5853         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
5854         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
5855
5856 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5857
5858         * sysdeps/unix/sysv/linux/sysdep.h
5859         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
5860         guards.
5861         * misc/tst-preadvwritev-common.c: New file.
5862         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
5863         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
5864         a check for files larger than 2GB.
5865
5866         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5867         (__ASSUME_OFF_DIFF_OFF64): Remove define.
5868         * sysdeps/unix/sysv/linux/pread.c
5869         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
5870         __OFF_T_MATCHES_OFF64_T.
5871         * sysdeps/unix/sysv/linux/pread64.c
5872         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
5873         * sysdeps/unix/sysv/linux/preadv.c
5874         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
5875         * sysdeps/unix/sysv/linux/preadv64.c
5876         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
5877         * sysdeps/unix/sysv/linux/pwrite.c
5878         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
5879         * sysdeps/unix/sysv/linux/pwrite64.c
5880         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
5881         * sysdeps/unix/sysv/linux/pwritev.c
5882         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
5883         * sysdeps/unix/sysv/linux/pwritev64.c
5884         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
5885
5886 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
5887
5888         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5889         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
5890
5891 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
5892
5893         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
5894
5895 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
5896
5897         [BZ #20240]
5898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5899         (CFLAGS-s_modf-ppc32.c): New variable.
5900         (CFLAGS-s_modff-ppc32.c): Likewise.
5901         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5902         (CFLAGS-s_modf-ppc64.c): Likewise.
5903         (CFLAGS-s_modff-ppc64.c): Likewise.
5904
5905 2016-07-07  Andreas Schwab  <schwab@suse.de>
5906
5907         [BZ #20263]
5908         * nptl/tst-robust10.c: New test.
5909         * nptl/Makefile (tests): Add tst-robust10.
5910
5911 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
5912
5913         [BZ #20263]
5914         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
5915
5916 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
5917
5918         * sysdeps/s390/linkmap.h (struct link_map_machine):
5919         Remove member gotplt and add member jmprel.
5920         * sysdeps/s390/s390-32/dl-machine.h
5921         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
5922         instead of gotplt with &got[3].
5923         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
5924         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5925
5926 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
5927
5928         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
5929
5930 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5931
5932         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
5933         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
5934         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
5935         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
5936         * libio/vtables.c (_IO_vtable_check)
5937         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
5938         * libio/libioP.h (IO_set_accept_foreign_vtables)
5939         [!PTR_MANGLE]: Do not call PTR_MANGLE.
5940
5941 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5942
5943         [BZ #20314]
5944         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
5945         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
5946         $(common-objpfx)cmath.
5947         ($(common-objpfx)cstdlib): New target.
5948         ($(common-objpfx)cmath): Likewise.
5949
5950 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
5951
5952         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
5953
5954 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5955
5956         [BZ #20327]
5957         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
5958         are not part of the string.
5959
5960 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5961
5962         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
5963         * nptl/tst-cancel4-common.h (fifoname): New variable.
5964         (fifofd): Likewise.
5965         (cl_fifo): New function.
5966         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
5967         SIGINT.
5968         (tf_open): Add early cancel test.
5969
5970 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5971
5972         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
5973
5974 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
5975
5976         * sysdeps/generic/ldsodefs.h
5977         (dl_symbol_visibility_binds_local_p): New inline function.
5978         * elf/dl-addr.c (determine_info): Treat hidden and internal
5979         symbols as local.
5980         * elf/dl-lookup.c (do_lookup_x): Likewise.
5981         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
5982
5983 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
5984
5985         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
5986         invalid exception for a sNaN input.
5987         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
5988         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
5989         (__nearbyint_vis3): Likewise
5990         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
5991         (__nearbyintf_vis3): Likewise
5992         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
5993         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
5994         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
5995         Likewise.
5996         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
5997         Likewise.
5998
5999 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
6000
6001         [BZ #20139]
6002         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
6003         (HAVE_AVX512DQ_ASM_SUPPORT): This.
6004         * sysdeps/x86_64/configure.ac: Require assembler from binutils
6005         2.24 or above.
6006         (HAVE_AVX512_ASM_SUPPORT): Removed.
6007         (HAVE_AVX512DQ_ASM_SUPPORT): New.
6008         * sysdeps/x86_64/configure: Regenerated.
6009         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
6010         check unconditional.
6011         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
6012         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6013         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6014         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
6015         Likewise.
6016         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
6017         Likewise.
6018         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
6019         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
6020         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6021         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6022         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
6023         Likewise.
6024         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
6025         Likewise.
6026         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6027         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6028         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
6029         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
6030         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
6031         Likewise.
6032         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
6033         Likewise.
6034         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
6035         Likewise.
6036         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
6037         Likewise.
6038         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
6039         Likewise.
6040         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
6041         Likewise.
6042         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
6043         Likewise.
6044         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
6045         Likewise.
6046         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
6047         Likewise.
6048         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
6049         Likewise.
6050         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
6051         Likewise.
6052
6053 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
6054
6055         [BZ #20024]
6056         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
6057         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
6058         of this implementation of vector function.
6059         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
6060         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
6061         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6062         Likewise.
6063         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
6064         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
6065         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
6066         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
6067         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
6068         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
6069         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6070         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
6071         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
6072         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
6073         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
6074         for testing vector sincos with fixed ABI.
6075         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
6076         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
6077         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
6078         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
6079         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
6080         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
6081         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
6082         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
6083         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
6084         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
6085         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
6086         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
6087         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
6088         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
6089         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
6090         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6091
6092 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6093
6094         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
6095
6096 2016-06-30  Anton Blanchard  <anton@samba.org>
6097
6098         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6099         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
6100         s_sinf-ppc64.
6101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
6102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
6103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
6104         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
6105
6106 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6107
6108         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6109         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
6110         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
6111         e_expf-ppc64.
6112         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
6113         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
6114         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
6115         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
6116
6117 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
6118
6119         [BZ #20277]
6120         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
6121         when SHARED is defined.
6122
6123 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6124
6125         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
6126         (index_arch_Prefer_ERMS): Likewise.
6127         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
6128         __memcpy_erms for Prefer_ERMS.
6129         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6130         (__memmove_erms): Enabled for libc.a.
6131         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
6132         __memmove_erms or Prefer_ERMS.
6133         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
6134         __mempcpy_erms for Prefer_ERMS.
6135         * sysdeps/x86_64/multiarch/memset.S (memset): Return
6136         __memset_erms for Prefer_ERMS.
6137
6138 2016-06-30  Andreas Schwab  <schwab@suse.de>
6139
6140         [BZ #20262]
6141         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
6142         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
6143         of memory.
6144
6145 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6146
6147         [BZ #18645]
6148         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
6149         (test-extras): Add tst-cleanupx4aux.
6150         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
6151         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
6152         tst-cleanupx4aux.o.
6153         * nptl/tst-cleanupx4aux.c: New file.
6154
6155 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
6156
6157         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
6158
6159 2016-06-29  Andreas Schwab  <schwab@suse.de>
6160
6161         [BZ #20260]
6162         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
6163         address before the beginning of the string as an integer to avoid
6164         array-bounds warning.
6165
6166 2016-06-28  Richard Henderson  <rth@redhat.com>
6167
6168         * elf/elf.h (EM_BPF): New.
6169         (EM_NUM): Update.
6170         (R_BPF_NONE, R_BPF_MAP_FD): New.
6171
6172         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
6173         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
6174         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
6175         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
6176         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
6177         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
6178         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
6179         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
6180         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
6181         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
6182         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
6183         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
6184         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
6185         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
6186         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
6187         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
6188         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
6189         (EM_NUM): Update.
6190
6191 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
6192
6193         [BZ #18960]
6194         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
6195         Set _nl_current_LC_CATEGORY_used to two instead of one.
6196
6197 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
6198
6199         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
6200         (do_test): ... this.
6201         (TEST_FUNCTION): New macro.
6202          Include test-skeleton.c.
6203         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
6204         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
6205
6206 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
6207
6208         [BZ #15479]
6209         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
6210         floating-point environment rather than just control word.
6211         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
6212         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
6213         floating-point environment, with "invalid" exceptions merged in,
6214         rather than just control word.
6215         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
6216         * math/libm-test.inc (trunc_test_data): Do not allow spurious
6217         "inexact" exceptions.
6218
6219         [BZ #15479]
6220         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
6221         floating-point environment rather than just control word.
6222         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
6223         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
6224         floating-point environment, with "invalid" exceptions merged in,
6225         rather than just control word.
6226         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
6227         * math/libm-test.inc (floor_test_data): Do not allow spurious
6228         "inexact" exceptions.
6229
6230         [BZ #15479]
6231         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
6232         floating-point environment rather than just control word.
6233         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6234         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
6235         floating-point environment, with "invalid" exceptions merged in,
6236         rather than just control word.
6237         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
6238         * math/libm-test.inc (ceil_test_data): Do not allow spurious
6239         "inexact" exceptions.
6240
6241 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
6242
6243         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
6244         __libc_vfork.
6245         (__vfork) [IS_IN (libc)]: Remove alias.
6246         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
6247         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6248         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6249
6250 2016-06-24  Torvald Riegel  <triegel@redhat.com>
6251
6252         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
6253         of atomic_compare_and_exchange_bool_rel.
6254         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6255         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
6256         catomic_compare_and_exchange_bool_rel): Remove.
6257         * sysdeps/aarch64/atomic-machine.h
6258         (atomic_compare_and_exchange_bool_rel): Likewise.
6259         * sysdeps/alpha/atomic-machine.h
6260         (atomic_compare_and_exchange_bool_rel): Likewise.
6261         * sysdeps/arm/atomic-machine.h
6262         (atomic_compare_and_exchange_bool_rel): Likewise.
6263         * sysdeps/mips/atomic-machine.h
6264         (atomic_compare_and_exchange_bool_rel): Likewise.
6265         * sysdeps/microblaze/atomic-machine.h
6266         ( __arch_compare_and_exchange_bool_8_rel,
6267         __arch_compare_and_exchange_bool_16_rel): Likewise.
6268         * sysdeps/powerpc/atomic-machine.h
6269         ( __arch_compare_and_exchange_bool_8_rel,
6270         __arch_compare_and_exchange_bool_16_rel): Likewise.
6271         * sysdeps/powerpc/powerpc32/atomic-machine.h
6272         ( __arch_compare_and_exchange_bool_32_rel,
6273         __arch_compare_and_exchange_bool_64_rel): Likewise.
6274         * sysdeps/powerpc/powerpc64/atomic-machine.h
6275         ( __arch_compare_and_exchange_bool_32_rel,
6276         __arch_compare_and_exchange_bool_64_rel): Likewise.
6277         * sysdeps/tile/atomic-machine.h
6278         (atomic_compare_and_exchange_bool_rel): Likewise.
6279
6280 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
6281
6282         [BZ #20296]
6283         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
6284         when either argument is a NaN.
6285         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
6286         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
6287
6288         * math/libm-test.inc (snan_value_ld): New macro.
6289         (isgreater_test_data): Add sNaN tests.
6290         (isgreaterequal_test_data): Likewise.
6291         (isless_test_data): Likewise.
6292         (islessequal_test_data): Likewise.
6293         (islessgreater_test_data): Likewise.
6294         (isunordered_test_data): Likewise.
6295         (nextafter_test_data): Likewise.
6296         (nexttoward_test_data): Likewise.
6297         (remainder_test_data): Likewise.
6298         (remquo_test_data): Likewise.
6299         (significand_test_data): Likewise.
6300         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
6301
6302 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6303
6304         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
6305         environment macros are defined.
6306         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
6307
6308 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6309
6310         [BZ #20191]
6311         Implement vtable verification in libio.
6312         * Makerules (shlib.lds): Place __libc_IO_vtables section.
6313         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
6314         * debug/vdprintf_chk.c (__vdprintf_chk): Call
6315         _IO_new_file_init_internal instead of _IO_file_init.
6316         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
6317         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
6318         * libio/Makefile (routines): Add vtables.
6319         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
6320         (_IO_init): Remove, not for internal use.
6321         (_IO_init_internal): Declare, internal replacement for _IO_init.
6322         (_IO_file_init): Remove, not for internal use.
6323         (_IO_new_file_init): Remove, not for internal use.
6324         (_IO_new_file_init_internal): Declare, internal replacement for
6325         _IO_new_file_init.
6326         (_IO_old_file_init): Remove, not for internal use.
6327         (_IO_old_file_init_internal): Declare, internal replacement for
6328         _IO_old_file_init.
6329         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
6330         internal use.
6331         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
6332         Declare.
6333         (libio_vtable): New macro.
6334         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
6335         functions.
6336         * libio/fileops.c (_IO_new_file_init_internal): Rename from
6337         _IO_new_file_init.
6338         (_IO_new_file_init): New externally visible wrapper which disables
6339         vtable verification.
6340         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
6341         Define as vtables.
6342         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
6343         (_IO_init): New externally visible wrapper which disables
6344         vtable verification.
6345         * libio/iofdopen.c (_IO_new_fdopen): Call
6346         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
6347         comment.
6348         * libio/iofopen.c (__fopen_internal): Call
6349         _IO_new_file_init_internal instead of _IO_file_init.
6350         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
6351         Define as vtables.
6352         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
6353         _IO_new_file_init_internal instead of _IO_file_init.
6354         * libio/iopopen.c (_IO_new_popen): Likewise.
6355         (_IO_proc_jumps): Define as vtable.
6356         * libio/iovdprintf.c (_IO_vdprintf): Call
6357         _IO_new_file_init_internal instead of _IO_file_init.
6358         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
6359         (__open_memstream): Call _IO_init_internal instead of _IO_init.
6360         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
6361         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
6362         _IO_old_file_init.
6363         (_IO_old_file_init): New externally visible wrapper which disables
6364         vtable verification.
6365         (_IO_old_file_jumps): Define as vtable.
6366         * libio/oldiofdopen.c (_IO_old_fdopen): Call
6367         _IO_old_file_init_internal instead of _IO_old_file_init.
6368         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6369         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6370         (_IO_old_proc_jumps): Define as vtable.
6371         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
6372         Define as vtables.
6373         * libio/vtables.c: New file.
6374         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
6375         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
6376         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
6377         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
6378         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
6379         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
6380         instead of _IO_init.
6381
6382 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6383
6384         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
6385
6386 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6387
6388         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
6389         potentially unused.
6390
6391 2016-06-22  Florian Weimer  <fweimer@redhat.com>
6392
6393         * test-skeleton.c (write_message): New function.
6394         * malloc/tst-mallocfork2.c (write_message): Remove.
6395         * debug/tst-longjmp_chk2.c (write_indented): New function.
6396         (write_message): Remove.
6397         (stackoverflow_handler): Call write_indented.
6398
6399 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
6400
6401         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
6402         "inexact" exceptions after fnstenv.
6403         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
6404         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6405         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
6406
6407 2015-06-22  Zack Weinberg  <zackw@panix.com>
6408
6409         * sysdeps/generic/bits/hwcap.h: Moved to ...
6410         * bits/hwcap.h: Here.
6411
6412 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
6413
6414         * sysdeps/aarch64/memcpy.S (memcpy):
6415         Further tuning for performance.
6416
6417 2016-06-21  Florian Weimer  <fweimer@redhat.com>
6418
6419         [BZ #20284]
6420         * malloc/arena.c (reused_arena): Do not return NULL if we start
6421         out with a non-corrupted arena.
6422
6423 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6424
6425         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
6426         * misc/tst-preadvwritev.c: New file.
6427         * misc/tst-preadvwritev64.c: Likewise.
6428         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
6429         usage.
6430         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
6431         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
6432         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
6433         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
6434
6435 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
6436
6437         [BZ #19654]
6438         * sysdeps/x86_64/fpu/Makefile: Added new tests.
6439         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
6440         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
6441         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
6442         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
6443         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
6444         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
6445         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
6446         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
6447         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
6448         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
6449         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
6450         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
6451         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
6452         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
6453         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
6454         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
6455         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
6456         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
6457         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
6458         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
6459         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
6460         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
6461         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
6462         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
6463         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
6464
6465 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6466
6467         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
6468         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
6469
6470 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6471
6472         * sysdeps/aarch64/memcpy.S (memcpy):
6473         Rewrite of optimized memcpy and memmove.
6474         * sysdeps/aarch64/memmove.S (memmove): Remove
6475         memmove code (merged into memcpy.S).
6476
6477 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6478
6479         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
6480         * sysdeps/generic/dl-dtv.h: New file.
6481         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6482         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
6483         (dtv_t): Remove.
6484         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6485         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
6486         (dtv_t): Remove.
6487         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6488         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
6489         (dtv_t): Remove.
6490         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6491         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
6492         (dtv_t): Remove.
6493         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6494         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
6495         (dtv_t): Remove.
6496         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6497         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
6498         (dtv_t): Remove.
6499         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6500         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
6501         (dtv_t): Remove.
6502         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
6503         (dtv_t): Remove.
6504         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6505         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
6506         (dtv_t): Remove.
6507         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6508         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
6509         (dtv_t): Remove.
6510         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6511         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
6512         (dtv_t): Remove.
6513         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6514         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
6515         (dtv_t): Remove.
6516         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6517         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
6518         (dtv_t): Remove.
6519         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6520         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
6521         (dtv_t): Remove.
6522         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6523         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
6524         (dtv_t): Remove.
6525         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
6526         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
6527         (dtv_t): Remove.
6528
6529 2016-06-20  Florian Weimer  <fweimer@redhat.com>
6530
6531         Revert symbol poisoning of  __malloc_initialize_hook.
6532         * include/stdc-predef.h (__malloc_initialize_hook): Remove
6533         poisoning.
6534         * malloc/Makefile: Remove un-poisoning.
6535         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
6536         instead of old__malloc_initialize_hook.
6537         * malloc/malloc-hooks.h: Likewise.
6538         * malloc/malloc.c: Likewise.
6539         * malloc/mcheck-init.c: Likewise.
6540
6541 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
6542
6543         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
6544
6545 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
6546
6547         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
6548         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
6549         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
6550         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
6551
6552 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6553
6554         * NEWS: Mention addition of nextup and nextdown.
6555         * manual/arith.texi: Document nextup and nextdown.
6556         * manual/libm-err-tab.pl: Add nextup and nextdown.
6557         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
6558         * math/Versions (libm): Add GLIBC_2.24.
6559         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
6560         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
6561         Add new test.
6562         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
6563         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
6564         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
6565         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
6566         (nextup_test_data): Likewise.
6567         (nextdown_test_data): Likewise.
6568         * math/s_nextdown.c: New file.
6569         * math/s_nextdownf.c: Likewise.
6570         * math/s_nextdownl.c: Likewise.
6571         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
6572         F(nextup): New function.
6573         F(nextdown): Likewise.
6574         * math/tgmath.h: Add nextup and nextdown.
6575         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
6576         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
6577         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
6578         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
6579         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
6580         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
6581         Add nextup and nextdown.
6582         (CFLAGS-nldbl-nextup.c): New variable.
6583         (CFLAGS-nldbl-nextdown.c): Likewise.
6584         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
6585         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
6586         * sysdeps/nacl/libm.abilist: Update.
6587         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6588         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6589         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6590         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6591         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6592         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6593         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6594         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6595         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6596         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6597         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6598         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6601         Likewise.
6602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6604         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6605         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6606         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6607         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6608         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
6610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
6611         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6612         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6613         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
6614         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6615
6616 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6617
6618         * manual/pattern.texi: Fix typos & grammar errors.
6619
6620 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6621
6622         * manual/search.texi: Fix typos & grammar errors.
6623
6624 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6625
6626         * manual/message.texi: Fix typos & grammar errors.
6627
6628 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
6629
6630         * manual/contrib.texi: Fix spelling typos.
6631         * manual/crypt.texi: Likewise.
6632         * manual/filesys.texi: Likewise.
6633         * manual/locale.texi: Likewise.
6634         * manual/message.texi: Likewise.
6635         * manual/nss.texi: Likewise.
6636         * manual/string.texi: Likewise.
6637
6638 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6639
6640         * manual/locale.texi: Fix typos & grammar errors.
6641
6642 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6643
6644         * manual/charset.texi: Fix typos & grammar errors.
6645
6646 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6647
6648         * manual/string.texi: Fix typos.
6649
6650 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6651
6652         * manual/ctype.texi: Fix typos.
6653
6654 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6655
6656         * manual/memory.texi: Fix various typos & grammar errors.
6657
6658 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
6659
6660         [BZ #20255]
6661         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
6662         * math/libm-test.inc (fdim_test_data): Add another test.
6663
6664         [BZ #6796]
6665         [BZ #20255]
6666         [BZ #20256]
6667         * math/s_fdim.c: Include <math_private.h>.
6668         (__fdim): Use math_narrow_eval on result.
6669         * math/s_fdimf.c: Include <math_private.h>.
6670         (__fdimf): Use math_narrow_eval on result.
6671         * sysdeps/i386/fpu/s_fdim.S: Remove file.
6672         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
6673         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
6674         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
6675         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
6676         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
6677         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
6678         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
6679         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
6680         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
6681         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
6682         * math/libm-test.inc (fdim_test_data): Expect errno setting on
6683         overflow.  Add sNaN tests.
6684
6685         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
6686         fpclassify.
6687         * math/s_fdimf.c (__fdimf): Likewise.
6688         * math/s_fdiml.c (__fdiml): Likewise.
6689
6690 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6691
6692         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
6693         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
6694         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6695         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
6696         ifunc'ed strcasecmp/strncasecmp.
6697         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
6698         [EALIGN]: Removed.
6699         [END]: Likewise.
6700         [__strcasecmp]: Define instead of the above to control symbol name.
6701         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
6702         for __strcasecmp_power8.
6703         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
6704         for __strncasecmp_power8.
6705         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
6706         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
6707         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
6708         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
6709         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
6710         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
6711
6712 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
6713
6714         [BZ #20252]
6715         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
6716         arguments when second argument is a NaN.
6717         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
6718         qNaN tests.
6719
6720         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
6721         (conj_test_data): Likewise.
6722         (copysign_test_data): Likewise.
6723         (creal_test_data): Likewise.
6724         (fma_test_data): Likewise.
6725         (fmod_test_data): Likewise.
6726
6727         [BZ #20250]
6728         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
6729         itself.
6730         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
6731         zero input to itself.
6732         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
6733         Likewise.
6734         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
6735         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
6736         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
6737         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
6738         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
6739
6740 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6741
6742         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
6743         * nptl/tst-cancel4-common.c: New file.
6744         * nptl/tst-cancel4-common.h: Likewise.
6745         * nptl/tst-cancel4.c: Move common definitions to
6746         tst-cancel4-common.{c,h} file.
6747         * nptl/tst-cancel4_1.c: New test.
6748         * nptl/tst-cancel4_2.c: New test.
6749
6750 2016-06-13  Florian Weimer  <fweimer@redhat.com>
6751
6752         [BZ #20248]
6753         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
6754         (write_message): New function.
6755         (stackoverflow_handler): Call it instead of printf, to avoid
6756         excessive stack usage by printf.
6757         (do_test): Restore SIGSEGV, SIGBUS default handlers.
6758
6759 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6760
6761         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
6762         (prio_inherit_missing): Remove define.
6763         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6764         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6765         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
6766         Likewise.
6767         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6768         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6769         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6770         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6771         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6772         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6773
6774 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
6775
6776         [BZ #19670]
6777         [BZ #19672]
6778
6779         * io/test-lfs.c (do_prepare): Use xmalloc.
6780         * io/tst-fcntl.c (do_prepare): Likewise.
6781         * libio/tst-fopenloc.c (do_bz17916): Likewise.
6782         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
6783         * login/tst-utmp.c (do_prepare): Likewise.
6784         * posix/tst-exec.c (do_prepare): Likewise.
6785         * posix/tst-pathconf.c (prepare): Likewise.
6786         * posix/tst-spawn.c (do_prepare): Likewise.
6787         * posix/tst-truncate.c (do_prepare): Likewise.
6788         * rt/tst-aio.c (do_prepare): Likewise.
6789         * rt/tst-aio64.c (do_prepare): Likewise.
6790
6791 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6792
6793         [BZ #20237]
6794         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
6795         (get*ent): Set entidx to NULL during initialization.  If entidx is
6796         NULL, start iteration from the beginning.
6797
6798 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6799
6800         * malloc/malloc.c (musable): Return correct size for dumped fake
6801         mmapped chunk.
6802
6803 2016-06-11  Florian Weimer  <fweimer@redhat.com>
6804
6805         [BZ #20222]
6806         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
6807         (_IO_cookie_write): Likewise.
6808         (_IO_cookie_seek): Likewise.
6809         (_IO_cookie_close): Likewise.
6810         (_IO_old_cookie_seek): Likewise.
6811         (set_callbacks): New function.
6812         (_IO_cookie_init): Call set_callbacks to copy callbacks.
6813
6814 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
6815
6816         * locale/programs/localedef.c (oldstyle_tables): Remove.
6817         * locale/programs/localedef.h (oldstyle_tables): Likewise.
6818
6819 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
6820
6821         [BZ #20240]
6822         * math/Makefile (CFLAGS-s_modf.c): New variable.
6823         (CFLAGS-s_modff.c): Likewise.
6824         (CFLAGS-s_modfl.c): Likewise.
6825         * math/libm-test.inc (modf_test_data): Add sNaN tests.
6826
6827 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
6828
6829         [BZ #20215]
6830         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
6831         [!__GNUC_PREREQ (3,2)]: Likewise.
6832
6833 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
6834
6835         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
6836         (msghdr.msg_controllen): Likewise.
6837         (cmsghdr.cmsg_len): Likewise.
6838         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
6839         ptw-oldsendmsg.
6840         (CFLAGS-oldrecvmsg.c): Remove rule.
6841         (CFLAGS-oldsendmsg.c): Likewise.
6842         (CFLAGS-recvmsg.c): Add rule.
6843         (CFLAGS-sendmsg.c): Likewise.
6844         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
6845         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
6846         (CFLAGS-recvmsg.c): Remove rule.
6847         (CFLAGS-sendmsg.c): Likewise.
6848         (CFLAGS-oldrecvmsg.c): Likewise.
6849         (CFLAGS-oldsendmsg.c): Likewise.
6850         (CFLAGS-recvmmsg.c): Likewise.
6851         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
6852         to kernel defined interfaces.
6853         (msghdr.msg_controllen): Likewise.
6854         (cmsghdr.cmsg_len): Likewise.
6855         (msghdr.__glibc_reserved1): Remove member.
6856         (msghdr.__glibc_reserved2): Likewise.
6857         (cmsghdr.__glibc_reserved1): Likewise.
6858         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
6859         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
6860         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
6861         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
6862         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
6863         version.
6864         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
6865         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
6866         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
6867         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
6868         Remove recvmsg and sendmsg.
6869         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
6870         Likewise.
6871         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
6872         Likewise.
6873         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
6874         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
6875         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
6876         Likewise.
6877         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
6878         Likewise.
6879         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
6880         [libc] (GLIBC_2.24): Likewise.
6881         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
6882         Likewise.
6883         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
6884         Likewise.
6885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
6886         [libc] (GLIBC_2.24): Likewise.
6887         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
6888         Likewise.
6889         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
6890         Likewise.
6891         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
6892         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
6893         Likewise.
6894         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
6895         Likewise.
6896         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
6897         Likewise.
6898         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
6899         Likewise.
6900         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
6901         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
6902         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
6903         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
6904         version for {recv,send,recm,sendm}msg.
6905         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6906         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6907         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6908         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6909         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6910         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6911         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6912         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6913         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6914         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6915         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6916         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6918         Likewise.
6919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6920         Likewise.
6921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6923         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6924         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6925         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6926         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6927         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6928         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6929         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6933         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6934
6935 2016-06-10  Florian Weimer  <fweimer@redhat.com>
6936
6937         [BZ #19564]
6938         Remove __malloc_initialize_hook from the API.
6939         * malloc/malloc.h (__malloc_initialize_hook): Remove.
6940         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
6941         #pragma GCC poison.
6942         * malloc/malloc-hooks.h: New file.
6943         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
6944         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
6945         (old__malloc_initialize_hook): Rename from
6946         __malloc_initialize_hook to evade poisoning.  Turn into compat
6947         symbol.
6948         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
6949         __malloc_initialize_hook.
6950         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
6951         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
6952         * manual/memory.texi (Hooks for Malloc): Remove
6953         __malloc_initialize_hook.  Adjust hook example.
6954
6955 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
6956
6957         [BZ #20235]
6958         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
6959         itself.
6960         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6961         * math/libm-test.inc (log2_test_data): Add sNaN tests.
6962
6963         [BZ #20234]
6964         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
6965         infinity or NaN input to itself.
6966
6967         [BZ #20233]
6968         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
6969         to itself.
6970
6971         [BZ #20232]
6972         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
6973         itself.
6974
6975 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
6976
6977         * sysdeps/x86_64/start.S (_start): Always indirect branch to
6978         __libc_start_main via GOT.
6979
6980 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
6981
6982         * sysdeps/x86_64/memcopy.h: New file.
6983         * sysdeps/x86_64/wordcopy.c: Likewise.
6984
6985 2016-06-09  Florian Weimer  <fweimer@redhat.com>
6986
6987         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
6988         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
6989         <cstdlib>.
6990         (optimization_barrier): New.
6991         (do_test): Use it.  Call quick_exit in the global namespace.
6992         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
6993         instead of <cstdlib>, <thread>.
6994         (optimization_barrier): New.
6995         (non_main_thread): Adjust declaration.  Call optimization_barrier.
6996         Call quick_exit in the global namespace.
6997         (do_test): Call optimization_barrier.  Use pthread_create,
6998         pthread_join instead of std::thread.
6999
7000 2016-06-09  Andreas Schwab  <schwab@suse.de>
7001
7002         [BZ #19755]
7003         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
7004         new entries in auto-propagate mode.
7005         * nscd/grpcache.c (cache_addgr): Likewise.
7006
7007 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
7008
7009         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
7010         New functions.
7011         (add_temp_file): Use them.
7012
7013 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
7014
7015         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
7016
7017 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
7018
7019         [BZ #20229]
7020         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
7021         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7022         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
7023
7024         [BZ #20228]
7025         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
7026         itself.
7027         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
7028         * math/libm-test.inc (log10_test_data): Add sNaN tests.
7029
7030         [BZ #20227]
7031         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
7032         itself.
7033         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
7034         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7035         * math/libm-test.inc (log_test_data): Add sNaN tests.
7036
7037         [BZ #20226]
7038         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
7039         itself.
7040         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
7041         * math/libm-test.inc (exp_test_data): Add sNaN tests.
7042         (exp10_test_data): Likewise.
7043         (expm1_test_data): Likewise.
7044
7045         [BZ #20225]
7046         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
7047         itself.
7048         * math/s_ldexpf.c (__ldexpf): Likewise.
7049         * math/s_ldexpl.c (__ldexpl): Likewise.
7050         * math/w_scalbln.c (__w_scalbln): Likewise.
7051         * math/w_scalblnf.c (__w_scalblnf): Likewise.
7052         * math/w_scalblnl.c (__w_scalblnl): Likewise.
7053         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
7054         (scalbln_test_data): Likewise.
7055
7056         [BZ #20224]
7057         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
7058         argument to itself.
7059         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
7060
7061 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7062
7063         [BZ #19776]
7064         * sysdeps/x86_64/memcpy.S: Make it dummy.
7065         * sysdeps/x86_64/mempcpy.S: Likewise.
7066         * sysdeps/x86_64/memmove.S: New file.
7067         * sysdeps/x86_64/memmove_chk.S: Likewise.
7068         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
7069         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
7070         * sysdeps/x86_64/memmove.c: Removed.
7071         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
7072         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
7073         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
7074         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
7075         Likewise.
7076         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
7077         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
7078         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7079         memcpy-sse2-unaligned, memmove-avx-unaligned,
7080         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
7081         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7082         (__libc_ifunc_impl_list): Replace
7083         __memmove_chk_avx512_unaligned_2 with
7084         __memmove_chk_avx512_unaligned.  Remove
7085         __memmove_chk_avx_unaligned_2.  Replace
7086         __memmove_chk_sse2_unaligned_2 with
7087         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
7088         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
7089         with __memmove_avx512_unaligned.  Replace
7090         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
7091         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
7092         with __memcpy_chk_avx512_unaligned.  Remove
7093         __memcpy_chk_avx_unaligned_2.  Replace
7094         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
7095         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
7096         Replace __memcpy_avx512_unaligned_2 with
7097         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
7098         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
7099         with __mempcpy_chk_avx512_unaligned.  Remove
7100         __mempcpy_chk_avx_unaligned_2.  Replace
7101         __mempcpy_chk_sse2_unaligned_2 with
7102         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
7103         Replace __mempcpy_avx512_unaligned_2 with
7104         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
7105         Replace __mempcpy_sse2_unaligned_2 with
7106         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
7107         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
7108         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
7109         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
7110         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
7111         (ENTRY): Removed.
7112         (END): Likewise.
7113         (ENTRY_CHK): Likewise.
7114         (libc_hidden_builtin_def): Likewise.
7115         Don't include ../memcpy.S.
7116         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
7117         __memcpy_chk_avx512_unaligned_erms and
7118         __memcpy_chk_avx512_unaligned.  Use
7119         __memcpy_chk_avx_unaligned_erms and
7120         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7121         Default to __memcpy_chk_sse2_unaligned.
7122         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7123         Change function suffix from unaligned_2 to unaligned.
7124         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
7125         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
7126         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
7127         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
7128         (ENTRY): Removed.
7129         (END): Likewise.
7130         (ENTRY_CHK): Likewise.
7131         (libc_hidden_builtin_def): Likewise.
7132         Don't include ../mempcpy.S.
7133         (mempcpy): New.  Add a weak alias.
7134         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
7135         __mempcpy_chk_avx512_unaligned_erms and
7136         __mempcpy_chk_avx512_unaligned.  Use
7137         __mempcpy_chk_avx_unaligned_erms and
7138         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
7139         Default to __mempcpy_chk_sse2_unaligned.
7140
7141 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
7142
7143         [BZ #19881]
7144         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
7145         into ...
7146         * sysdeps/x86_64/memset.S: This.
7147         (__bzero): Removed.
7148         (__memset_tail): Likewise.
7149         (__memset_chk): Likewise.
7150         (memset): Likewise.
7151         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
7152         defined.
7153         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
7154         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
7155         (__memset_zero_constant_len_parameter): Check SHARED instead of
7156         PIC.
7157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7158         memset-avx2 and memset-sse2-unaligned-erms.
7159         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7160         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
7161         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
7162         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7163         (__bzero): Enabled.
7164         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
7165         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
7166         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
7167         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
7168         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
7169         (memset): Removed.
7170         (__memset_chk): Likewise.
7171         (MEMSET_SYMBOL): New.
7172         (libc_hidden_builtin_def): Replace __memset_sse2 with
7173         __memset_sse2_unaligned.
7174         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
7175         __memset_chk_sse2 and __memset_chk_avx2 with
7176         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
7177         Use __memset_chk_sse2_unaligned_erms or
7178         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
7179         __memset_chk_avx512_unaligned_erms and
7180         __memset_chk_avx512_unaligned.
7181
7182 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7183
7184         * math/gen-auto-libm-test.c (fp_format_desc): remove
7185         suffix member.
7186         (output_generic_value): Remove usage of suffix member,
7187         and the resulting unuse of the fp_format argument.
7188         (output_for_one_input_case): Remove unused fp_format
7189         parameter.
7190
7191         * math/auto-libm-test-out: Regenerate.
7192
7193         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
7194         usage with TEST_COND_ibm128.
7195         (TEST_COND_flt_32): Remove.
7196         (TEST_COND_dbl_64): Remove.
7197         (TEST_COND_ldbl_96_intel): Remove.
7198         (TEST_COND_ldbl_96_m68k): Remove.
7199         (TEST_COND_ldbl_128): Remove.
7200
7201 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7202
7203         * auto-libm-test-in:
7204         Replace flt-32 usage with binary32.
7205         Replace dbl-64 usage with binary64.
7206         Replace ldbl-intel-96 usage with intel96.
7207         Replace ldbl-m68k-96 usage with m68k96.
7208         Replace ldbl-128ibm usage with ibm128.
7209         Replace ldbl-128 usage with binary128.
7210
7211         * auto-libm-test-out: Regenerate.
7212
7213 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7214
7215         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
7216         (parse_ulps): Dynamically generate type name matching
7217         string from all_floats.
7218         (get_ulps): Generate the ulps as an array instead.
7219         (output_ulps): Dynamically compose the type based
7220         on the number of supported formats, and print
7221         the indices as type specific helper macros.
7222
7223         * math/libm-test.inc: Remove comment about CHOOSE.
7224         (ulp_data): Generate the type in libm-test-ulps.h.
7225         (ULP_IDX): New macro.
7226         (find_ulps): Update usage of max_ulp.
7227
7228         * math/test-double-vlen2.h (CHOOSE): Remove.
7229         * math/test-double-vlen4.h (CHOOSE): Likewise.
7230         * math/test-double-vlen8.h (CHOOSE): Likewise.
7231         * math/test-float.c (CHOOSE): Likewise.
7232         * math/test-float-finite.c (CHOOSE): Likewise.
7233         * math/test-double.c (CHOOSE): Likewise.
7234         * math/test-double-finite.c (CHOOSE): Likewise.
7235         * math/test-idouble.c (CHOOSE): Likewise.
7236         * math/test-ifloat.c (CHOOSE): Likewise.
7237         * math/test-ildoubl.c (CHOOSE): Likewise.
7238         * math/test-ldouble-finite.c (CHOOSE): Likewise.
7239         * math/test-ldouble.c (CHOOSE): Likewise.
7240
7241         * math/test-float.h (TEST_FLOAT): Remove.
7242         * math/test-double.h (TEST_DOUBLE): Likewise.
7243         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
7244
7245 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7246
7247         * math/gen-libm-test.pl: (apply_lit): New subroutine.
7248         (parse_args): Strip C suffix from floating point literals
7249         typed with 'f' and wrap them with LIT().
7250
7251         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
7252         (test_ff_f_data_nexttoward): Rename to
7253         (test_fj_f_data): New struct.
7254         (nexttoward_test_data): Relabel tests as
7255         TEST_fj_f instead of TEST_ff_f.
7256
7257 2016-06-08  Florian Weimer  <fweimer@redhat.com>
7258
7259         Emacs bug 23726.
7260         * malloc/malloc.c (dumped_main_arena_start): Update comment.
7261         (__libc_realloc): Correct size computation for dumped fake mmapped
7262         chunks.
7263
7264 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
7265
7266         [BZ #20219]
7267         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
7268         to itself.
7269         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
7270
7271         [BZ #20218]
7272         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
7273         to itself.
7274         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
7275
7276 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
7277
7278         [BZ #20195]
7279         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
7280         check to ...
7281         (init_cpu_features): Here.
7282
7283 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
7284
7285         [BZ #20214]
7286         * sysdeps/unix/sysv/linux/bits/in.h
7287         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7288          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
7289         Define to 1.
7290         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
7291          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
7292         Define to 0.
7293         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
7294         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
7295
7296 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
7297
7298         [BZ #20198]
7299         * stdlib/Makefile (tests): Add tst-quick_exit, and
7300         tst-thread-quick_exit.
7301         [ifeq ($(have-cxx-thread_local),yes)]
7302         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
7303         (CFLAGS-tst-thread-quick_exit.o): Likewise.
7304         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
7305         (LDLIBS-tst-thread-quick_exit): Likewise.
7306         [ifneq ($(have-cxx-thread_local),yes)]
7307         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
7308         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
7309         If run_dtors is true call __call_tls_dtors.
7310         (exit): Call __run_exit_handlers with run_dtors set to true.
7311         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
7312         definition.
7313         * stdlib/quick_exit.c (quick_exit): Remove function.
7314         (__new_quick_exit): New function.
7315         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
7316         function.
7317         * stdlib/tst-quick_exit.cc: New file.
7318         * stdlib/tst-thread-quick_exit.cc: New file.
7319         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
7320         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
7321         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
7322         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
7323         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
7324         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
7325         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
7326         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
7327         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
7328         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
7329         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
7330         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
7331         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
7332         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
7333         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
7334         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
7336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
7337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
7338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
7339         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
7340         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
7341         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
7342         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
7343         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
7344         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
7345         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
7346         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
7347         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
7348         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
7349
7350 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
7351
7352         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
7353         a typo in comments.
7354
7355 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7356
7357         [BZ #20213]
7358         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
7359         argument to itself.
7360         * math/libm-test.inc (asin_test_data): Add sNaN tests.
7361
7362 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7363
7364         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
7365         required flags.
7366         (CFLAGS-pwritev64.c): Likewise.
7367         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
7368         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
7369         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
7370         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7371         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
7372         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
7373         syscall from auto-generation.
7374         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
7375         [WORDSIZE == 64] (pwritev64): Remove macro.
7376         [!PWRITEV] (PWRITEV): Likewise.
7377         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7378         [!PWRITEV] (PWRITE): Likewise.
7379         [!PWRITEV] (OFF_T): Likewise.
7380         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
7381         (LO_HI_LONG): Remove macro.
7382         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
7383         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
7384         (PWRITEV): Remove macro.
7385         (PWRITEV_REPLACEMENTE): Likewise.
7386         (PWRITE): Likewise.
7387         (OFF_T): Likewise.
7388         (pwritev64): New function.
7389         * nptl/tst-cancel4.c (tf_writev): Add test.
7390
7391         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
7392         required flags.
7393         (CFLAGS-preadv64.c): Likewise.
7394         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
7395         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
7396         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
7397         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
7398         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
7399         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
7400         syscall from auto-generation.
7401         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
7402         [WORDSIZE == 64] (preadv64): Remove macro.
7403         [!PREADV] (PREADV): Likewise.
7404         [!PREADV] (PREADV_REPLACEMENT): Likewise.
7405         [!PREADV] (PREAD): Likewise.
7406         [!PREADV] (OFF_T): Likewise.
7407         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
7408         (LO_HI_LONG): Remove macro.
7409         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
7410         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
7411         (PREADV): Remove macro.
7412         (PREADV_REPLACEMENTE): Likewise.
7413         (PREAD): Likewise.
7414         (OFF_T): Likewise.
7415         (preadv64): New function.
7416         * nptl/tst-cancel4.c (tf_preadv): Add test.
7417
7418 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
7419
7420         [BZ #20212]
7421         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
7422         argument to itself.
7423         * math/libm-test.inc (acos_test_data): Add sNaN tests.
7424
7425 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7426
7427         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
7428         New symbol defined as libc_hidden_def.
7429         (strcasestr): Became a weak alias to __strcasestr.
7430         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
7431         according to multi-arch support.  Move __stpncpy hidden
7432         definition from here to...
7433         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
7434         symbol stpncpy.
7435         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
7436         libc_hidden_builtin_def.
7437         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
7438         memset symbol to use when multi-arch support is available.
7439
7440 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
7441
7442         * dlfcn/tst-rec-dlopen.c: Include string.h.
7443
7444 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
7445
7446         * manual/install.texi: Remove mention of --without-tls
7447         * INSTALL: Regenerate.
7448
7449 2016-06-05  Florian Weimer  <fweimer@redhat.com>
7450
7451         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
7452         Remove.
7453         (call_function, interposed_malloc_called): New variables.
7454         (malloc): New function.
7455         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
7456         and clear call_function as needed.
7457
7458 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
7459
7460         * include/wchar.h (__wmemset): Use __typeof.
7461
7462 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
7463
7464         * include/wchar.h (__wmemset): Declare function without typeof.
7465
7466 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
7467
7468         [BZ #20205]
7469         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
7470         exponent when incrementing negative subnormal with low mantissa
7471         word zero.
7472         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
7473         Add another test.
7474
7475 2016-06-03  Florian Weimer  <fweimer@redhat.com>
7476
7477         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
7478         __wmemset instead of wmemset.
7479
7480 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
7481
7482         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
7483         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
7484         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
7485         __USE_KERNEL_IPV6_DEFS to 0.
7486         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
7487         Update comment.
7488
7489 2016-06-01  Florian Weimer  <fweimer@redhat.com>
7490
7491         [BZ #19861]
7492         Do not use IFUNC resolver with potentially unrelocated symbol.
7493         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
7494         (DEFINE_FORK): Remove macro and inline definition.
7495         (fork_alias): Renamed from fork_ifunc.
7496         (__fork_alias): Renamed from __fork_ifunc.
7497
7498 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
7499
7500         [BZ 19653]
7501         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
7502         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
7503
7504 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7505
7506         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
7507         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
7508         i386-linux-gnu).
7509         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
7510         Set to no.
7511         * sysdeps/mach/hurd/configure: Refresh.
7512
7513 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7514
7515         [BZ #20178]
7516         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
7517         on failure instead of exit.
7518
7519 2016-05-30  Roland McGrath  <roland@hack.frob.com>
7520
7521         [BZ #3629]
7522         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
7523         of POSIX.1-2008.
7524
7525 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7526
7527         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
7528           Use PLT entry for calling _hurd_self_sigstate.
7529
7530 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7531
7532         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
7533         available logical processors with SMT level type sharing L2
7534         cache for Intel processors.
7535
7536 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7537
7538         [BZ #20160]
7539         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
7540         argument to itself before returning the result.
7541         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
7542         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
7543         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
7544         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7545         Likewise.
7546         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7547         Likewise.
7548         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
7549         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
7550         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7551         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7552         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
7553         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
7554
7555         [BZ #20160]
7556         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
7557         argument to itself before returning the result.
7558         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
7559         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
7560         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
7561         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
7562         Likewise.
7563         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7564         Likewise.
7565         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
7566         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
7567         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
7568         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7569         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
7570         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
7571
7572 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7573
7574         * libm-test.inc: Replace usage of M_El with
7575         (lit_e): New macro.
7576
7577 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7578
7579         * libm-test.inc: Replace usage of M_PI_4l with
7580         (lit_pi_4_d): New macro.
7581
7582 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7583
7584         * libm-test.inc: Replace usage of M_PIl with
7585         (lit_pi): New macro.
7586
7587 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7588
7589         * libm-test.inc: Replace usage of M_PI2l with
7590         (lit_pi_2_d): New macro.
7591
7592         * math/test-double.h (LITM): New macro.
7593         * math/test-float.h (LITM): Likewise.
7594         * math/test-ldouble.h (LITM): Likewise.
7595
7596 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7597
7598         * libm-test.inc (M_PI_34l): Rename to
7599         (lit_pi_3_m_4_d): New Macro.
7600         (M_PI_34_LOG10El): Rename to
7601         (lit_pi_3_m_4_ln10_m_d): New Macro.
7602         (M_PI2_LOG10El): Rename to
7603         (lit_pi_2_ln10_m_d):  New Macro.
7604         (M_PI4_LOG10El): Rename to
7605         (lit_pi_4_ln10_m_d):  New Macro.
7606         (M_PI_LOG10El): Rename to
7607         (lit_pi_ln10_d):  New Macro.
7608
7609 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7610
7611         [BZ #20157]
7612         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
7613         determine whether to negate low half if [_ARCH_PPCGR], and integer
7614         comparison otherwise.
7615         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
7616         determine whether to negate low half.
7617
7618         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
7619         (NO_TEST_INLINE_DOUBLE): Likewise.
7620         (TEST_COND_x86_64): Likewise.
7621         (TEST_COND_x86): Likewise.
7622         (M_PI_6l): Likewise.
7623
7624 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7625
7626         * math/libm-test.inc:
7627         (TEST_FLOAT): Change usage to TEST_COND_binary32.
7628         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
7629         (TEST_LDOUBLE): Update usage to evaluate as true if
7630         the guarded tests match the property being tested.
7631         (LDBL_MAX_EXP): Change to MAX_EXP.
7632         (LDBL_MIN_EXP): Change to MIN_EXP.
7633         (LDBL_MANT_DIG): Change to MANT_DIG, except for
7634         nexttoward tests.
7635
7636 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7637
7638         * math/libm-test.inc:
7639         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
7640         (TYPE_MIN): Likewise.
7641         (TYPE_TRUE_MIN): Likewise.
7642         (TYPE_MAX): Likewise.
7643         (MIN_EXP): Likewise.
7644         (MAX_EXP): Likewise.
7645         (MANT_DIG): Likewise.
7646
7647         (FSTR_MAX): New macro.
7648         (__CONCATX): Likewise.
7649         (QTYPE_STR): Likewise.
7650         (TEST_COND_binary32): Likewise.
7651         (TEST_COND_binary64): Likewise.
7652         (TEST_COND_binary128): Likewise.
7653         (TEST_COND_ibm128): Likewise.
7654         (TEST_COND_intel96): Likewise.
7655         (TEST_COND_m68k96): Likewise.
7656
7657         (TEST_COND_flt_32): Redefine as equivalent format test macro.
7658         (TEST_COND_dbl_64): Likewise.
7659         (TEST_COND_ldbl_96_intel): Likewise.
7660         (TEST_COND_ldbl_96_m68k): Likewise.
7661         (TEST_COND_ldbl_128): Likewise.
7662         (TEST_COND_ldbl_128ibm): Likewise.
7663
7664         (plus_zero): Redefine using LIT macro.
7665         (minus_zero): Likewise.
7666         (plus_infty): Redefine as (INF).
7667         (minux_infty): Redefine as (-INF).
7668         (max_value): Redefine as TYPE_MAX.
7669         (min_value): Redefine as TYPE_MIN.
7670         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
7671
7672         (print_float): Refactor to use snprintf to convert FLOAT values
7673         to string. This brings it closer to dropin replacement of strtof
7674         for the TS 18661 defined types.
7675         (update_stats): Likewise.
7676         (print_complex_function_ulps): Likewise.
7677         (print_max_error): Likewise.
7678         (print_complex_max_error): Likewise.
7679         (check_float_internal): Likewise.
7680
7681         * math/test-float.h (PREFIX): New macro.
7682         (LIT): Likewise.
7683         (TYPE_STR): Likewise.
7684         (FTOSTR): Likewise.
7685
7686         * math/test-double.h (PREFIX): New macro.
7687         (LIT): Likewise.
7688         (TYPE_STR): Likewise.
7689         (FTOSTR): Likewise.
7690
7691         * math/test-ldouble.h (PREFIX): New macro.
7692         (LIT): Likewise.
7693         (TYPE_STR): Likewise.
7694         (FTOSTR): Likewise.
7695
7696 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
7697
7698         [BZ #20156]
7699         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
7700         to itself when zero or not finite.
7701         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
7702         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
7703         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
7704         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7705
7706 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
7707
7708         [BZ #20153]
7709         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
7710         x * x + x for infinities and NaNs.
7711
7712         [BZ #20151]
7713         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
7714         argument to itself before returning result.
7715         (__ieee754_y0l): Likewise.
7716         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7717         (__ieee754_y1l).
7718
7719         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
7720         (atan_test_data): Likewise.
7721         (ceil_test_data): Likewise.
7722         (cos_test_data): Likewise.
7723         (cosh_test_data): Likewise.
7724         (erf_test_data): Likewise.
7725         (exp2_test_data): Likewise.
7726         (fabs_test_data): Likewise.
7727         (floor_test_data): Likewise.
7728         (ilogb_test_data): Likewise.
7729         (j0_test_data): Likewise.
7730         (j1_test_data): Likewise.
7731         (jn_test_data): Likewise.
7732         (lgamma_test_data): Likewise.
7733         (lrint_test_data): Likewise.
7734         (llrint_test_data): Likewise.
7735         (logb_test_data): Likewise.
7736         (lround_test_data): Likewise.
7737         (llround_test_data): Likewise.
7738         (nearbyint_test_data): Likewise.
7739         (rint_test_data): Likewise.
7740         (round_test_data): Likewise.
7741         (sin_test_data): Likewise.
7742         (sincos_test_data): Likewise.
7743         (sinh_test_data): Likewise.
7744         (sqrt_test_data): Likewise.
7745         (tan_test_data): Likewise.
7746         (tanh_test_data): Likewise.
7747         (tgamma_test_data): Likewise.
7748         (trunc_test_data): Likewise.
7749         (y0_test_data): Likewise.
7750         (y1_test_data): Likewise.
7751         (yn_test_data): Likewise.
7752
7753         * math/libm-test.inc: Update comment about NaN testing.
7754         (TEST_SNAN): New macro.
7755         (snan_value): Likewise.
7756         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
7757         (fpclassify_test_data): Add sNaN tests.
7758         (isfinite_test_data): Likewise.
7759         (isinf_test_data): Likewise.
7760         (isnan_test_data): Likewise.
7761         (isnormal_test_data): Likewise.
7762         (issignaling_test_data): Likewise.
7763         (signbit_test_data): Likewise.
7764         * math/gen-libm-test.pl (%beautify): Add snan_value.
7765         (show_exceptions): Add argument $test_snan.
7766         (parse_args): Handle snan_value as non-finite.  Update call to
7767         show_exceptions.
7768         * math/Makefile (libm-test-no-inline-cflags): Add
7769         -fsignaling-nans.
7770
7771 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7772
7773         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
7774         (CFLAGS-oldsendmsg.c): Add rule.
7775         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
7776         Correct recvmsg symbol name.
7777         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
7778         Likewise.
7779
7780 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7781
7782         * sysdeps/unix/sysv/linux/Makefile
7783         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
7784         oldsendmmsg.
7785         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
7786         sendmmsg.
7787         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7788         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7789         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7790         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7792         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7793         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
7795         Likewise.
7796         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7797         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
7798         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
7799         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
7800         iovlen and controllen fields to adjust to POSIX specification.
7801         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
7802
7803         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
7804         and change to correct expected type.
7805         (msghdr.msg_controllen): Likewise.
7806         (cmsghdr.cmsg_len): Likewise.
7807         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
7808         expected POSIX assumption about the size.
7809         (msghdr.msg_controllen): Likewise.
7810         (msghdr.__glibc_reserved1): Likewise.
7811         (msghdr.__glibc_reserved2): Likewise.
7812         (cmsghdr.cmsg_len): Likewise.
7813         (cmsghdr.__glibc_reserved1): Likewise.
7814         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
7815         Add ptw-oldrecvmsg and ptw-oldsendmsg.
7816         (CFLAGS-sendmsg.c): Remove rule.
7817         (CFLAGS-recvmsg.c): Likewise.
7818         (CFLAGS-oldsendmsg.c): Add rule.
7819         (CFLAGS-oldrecvmsg.c): Likewise.
7820         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
7821         recvmsg and sendmsg.
7822         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
7823         Likewise.
7824         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
7825         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
7826         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
7827         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
7828         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
7829         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
7830         Likewise.
7831         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
7832         Likewise.
7833         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
7834         Likewise.
7835         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
7836         Likewise.
7837         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
7838         Likewise.
7839         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
7840         Likewise.
7841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
7842         (GLIBC_2.24): Likewise.
7843         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
7844         Likewise.
7845         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
7846         Likewise.
7847         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
7848         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
7849         Likewise.
7850         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
7851         Likewise.
7852         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
7853         Likewise.
7854         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
7855         (GLIBC_2.24): Likewise.
7856         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
7857         Likewise.
7858         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
7859         Likewise.
7860         * sysdeps/unix/sysv/linux/Makefile
7861         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
7862         (CFLAGS-sendmsg.c): Add rule.
7863         (CFLAGS-recvmsg.c): Likewise.
7864         (CFLAGS-oldsendmsg.c): Likewise.
7865         (CFLAGS-oldrecvmsg.c): Likewise.
7866         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
7867         initialization.
7868         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7869         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7870         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
7871         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
7872         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
7873         iovlen and controllen fields to adjust to POSIX specification.
7874         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
7875         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
7876         added recvmsg and sendmsg.
7877         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7878         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7879         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7880         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7881         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7882         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7883         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7884         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7885         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7886         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7887         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7888         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
7889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7890         Likewise.
7891         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
7892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7893         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7894         Likewise.
7895         Likewise.
7896         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7897         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7898         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7899         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7900         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7901         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7902         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7903         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7904         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7905         Likewise.
7906         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7907         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7908
7909         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
7910         from auto-generation.
7911         (sendmsg): Likewise.
7912         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
7913         (sendmsg): Likewise.
7914         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
7915         (sendmsg): Likewise.
7916         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
7917         (sendmsg): Likewise.
7918         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
7919         (sendmsg): Likewise.
7920         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
7921         (sendmsg): Likewise.
7922         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
7923         Likewise.
7924         (sendmsg): Likewise.
7925         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
7926         (sendmsg): Likewise.
7927         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7928         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7929         Remove.
7930         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7931         Likewise.
7932         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7933         Undefine.
7934         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7935         Likewise.
7936         * sysdeps/unix/sysv/linux/kernel-features.h
7937         (__ASSUME_SENDMSG_SYSCALL): Define.
7938         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7939         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7940         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7941         Remove.
7942         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7943         Likewise.
7944         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7945         Undefine.
7946         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7947         Likewise.
7948         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7949         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7950         Remove.
7951         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7952         Likewise.
7953         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
7954         Undefine.
7955         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
7956         Likewise.
7957         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7958         (__ASSUME_SENDMSG_SYSCALL): Undefine.
7959         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7960         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7961         (__ASSUME_SENDMSG_SYSCALL): Likewise.
7962         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7963         * sysdeps/unix/sysv/linux/sh/kernel-features.h
7964         (__ASSUME_SENDMSG_SYSCALL): Likewise.
7965         (__ASSUME_RECVMSG_SYSCALL): Likewise.
7966
7967 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7968
7969         * stdlib/gen-tst-strtod-round.c: Add backslash to
7970         compile command in comment.
7971         (printfp): Remove the literal suffix, and define an infinite
7972         value as INF to avoid expansion clash with INFINITY.
7973         (round_str): Remove the literal suffix.
7974         (round_for_all): Likewise, remove the now duplicate ldbl-64
7975         entry, and remove some magic constants.
7976
7977         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
7978         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
7979         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
7980         (_CONCAT): New macro.
7981         (CONCAT): Likewise.
7982         (CHOOSE_ld): Likewise.
7983         (CHOOSE_f): Likewise.
7984         (CHOOSE_d): Likewise.
7985         (FTYPE_MEMBER): Likewise.
7986         (BOOL_MEMBER): Likewise.
7987         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
7988         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
7989         (_XNTRY): Likewise.
7990         (XNTRY): Likewise.
7991         (_ENTRY): Likewise.
7992         (ENTRY): Likewise.
7993         (test_exactness): Generate members via macro.
7994         (test_results): Likewise.
7995         (test): Update members.
7996         (TEST): Redefine using new macros.
7997         (INF): New macro.
7998         (fetestmodes): New structure.
7999         (do_test): Refactor to be type generic.
8000         (test_in_one_mode): Refactor duplicate code into
8001         (GEN_ONE_TEST): New macro.
8002
8003         * stdlib/tst-strtod-round-data.h: Regenerate.
8004
8005         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
8006         Extend to pass additional arbitrary parameters to
8007         generators.
8008
8009 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
8010
8011         [BZ #15479]
8012         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
8013         floating-point state after first floating-point operation on
8014         input.  Restore full floating-point state instead of just rounding
8015         mode.
8016         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
8017         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
8018         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
8019         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
8020         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
8021
8022         [BZ #15479]
8023         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
8024         floating-point state after first floating-point operation on
8025         input.  Restore full floating-point state instead of just rounding
8026         mode.
8027         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
8028         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
8029         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
8030         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
8031         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
8032
8033 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8034
8035         [BZ #19727]
8036         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
8037         valid high surrogate.
8038         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
8039         of an utf16 surrogate.
8040         * iconv/gconv_simple.c (BODY): Likewise.
8041         * iconvdata/bug-iconv12.c: New file.
8042         * iconvdata/Makefile (tests): Add bug-iconv12.
8043
8044 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8045
8046         [BZ #19726]
8047         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
8048         outptrp in case of an illegal input.
8049         * iconv/tst-iconv6.c: New file.
8050         * iconv/Makefile (tests): Add tst-iconv6.
8051
8052 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8053
8054         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
8055         an error in case of a value in range of an utf16 low surrogate.
8056
8057 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8058
8059         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
8060         an error in case of a value in range of an utf16 low surrogate.
8061
8062 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8063
8064         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
8065         Move to ...
8066         * sysdeps/s390/Makefile: ... here.
8067         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
8068         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
8069         (BRANCH_ON_COUNT): New define.
8070         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
8071         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
8072         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
8073         run on s390-32, too.
8074         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
8075         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
8076         run on s390-32, too.
8077         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
8078         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
8079         run on s390-32, too.
8080
8081 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8082
8083         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
8084         etf3eh or new vector loop-variant.
8085
8086 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8087
8088         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
8089         etf3eh or new vector loop-variant.
8090
8091 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8092
8093         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
8094         or new vector loop-variant.
8095
8096 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8097
8098         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
8099         Rename to TR_LOOP and usage of tr instead of troo instruction.
8100
8101 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8102
8103         * sysdeps/s390/multiarch/gconv_simple.c: New File.
8104         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
8105
8106 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8107
8108         * sysdeps/s390/multiarch/8bit-generic.c: New File.
8109         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
8110         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
8111         New override define.
8112         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
8113
8114 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8115
8116         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
8117         * sysdeps/s390/configure.ac: Add test for S390 vector register
8118         support in gcc.
8119         * sysdeps/s390/configure: Regenerated.
8120
8121 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
8122
8123         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
8124         Install file from $(objpfx)gconv-modules.
8125         ($(objpfx)gconv-modules): Concatenate architecture specific file
8126         in variable sysdeps-gconv-modules and gconv-modules in src dir.
8127         * sysdeps/s390/gconv-modules: New file.
8128         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
8129         Deleted.
8130         ($(objpfx)gconv-modules-s390): Deleted.
8131         (sysdeps-gconv-modules): New variable.
8132
8133 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8134
8135         [BZ #15479]
8136         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
8137         of immediate operand to rounding instruction.
8138         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
8139         Likewise.
8140         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
8141         Likewise.
8142         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
8143         Likewise.
8144
8145 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8146
8147         * math/libm-test.inc (MIN_EXP): Directly define as
8148         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
8149
8150 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8151
8152         * math/libm-test.inc (MANT_DIG): Directly define as
8153         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
8154
8155 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8156
8157         * stdlib/gen-tst-strtod-round.c (main):
8158           Change usage to more closely match the generated
8159           output.  Add usage and compilation instructions.
8160           (string_to_fp): Add and use FILE* parameter as
8161           output target.
8162           (print_fp): Likewise.
8163           (round_str): Likewise.
8164           (round_for_all): Likewise.
8165         * stdlib/tst-strtod-round.c (tests): Move into
8166         * stdlib/tst-strtod-round-data.h: New file.
8167
8168 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
8169
8170         [BZ #15479]
8171         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
8172         (__round): Do not force "inexact" exception.
8173         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
8174         variable.
8175         (__round): Do not force "inexact" exception.
8176         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
8177         (__roundf): Do not force "inexact" exception.
8178         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
8179         (__roundl): Do not force "inexact" exception.
8180         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
8181         (__roundl): Do not force "inexact" exception.
8182         * math/libm-test.inc (round_test_data): Do not allow spurious
8183         "inexact" exceptions.
8184
8185         [BZ #15479]
8186         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
8187         exception in comment.
8188         (huge): Remove variable.
8189         (__floor): Do not force "inexact" exception.
8190         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
8191         "inexact" exception in comment.
8192         (huge): Remove variable.
8193         (__floor): Do not force "inexact" exception.
8194         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
8195         exception in comment.
8196         (huge): Remove variable.
8197         (__floorf): Do not force "inexact" exception.
8198         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
8199         exception in comment.
8200         (huge): Remove variable.
8201         (__floorl): Do not force "inexact" exception.
8202
8203         [BZ #15479]
8204         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
8205         exception in comment.
8206         (huge): Remove variable.
8207         (__ceil): Do not force "inexact" exception.
8208         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
8209         "inexact" exception in comment.
8210         (huge): Remove variable.
8211         (__ceil): Do not force "inexact" exception.
8212         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
8213         (__ceilf): Do not force "inexact" exception.
8214         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
8215         exception in comment.
8216         (huge): Remove variable.
8217         (__ceill): Do not force "inexact" exception.
8218
8219 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8220
8221         * config.h.in (BIND_NOW): New.
8222         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
8223         * configure: Regenerated.
8224         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
8225         indirect branch via the GOT slot.
8226
8227 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8228
8229         [BZ #19765]
8230         * sysdeps/s390/mempcpy.S: New File.
8231         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
8232         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
8233         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8234         Add mempcpy variants.
8235         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
8236         (memcpy): Adjust to be usable from mempcpy entry point.
8237         (__memcpy_mvcle): Likewise.
8238         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8239         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
8240         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
8241         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
8242         (__memcpy_z10): Likewise.
8243         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8244
8245 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8246
8247         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
8248         Remove __GI_ symbol.
8249         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
8250         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
8251         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
8252         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
8253         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
8254         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
8255
8256 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8257
8258         * sysdeps/s390/s390-64/memcpy.S (memcpy):
8259         Use cghi instead of chi to compare 64bit value.
8260
8261 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8262
8263         * sysdeps/s390/s390-32/memcpy.S (memcpy):
8264         Jump to 1MB check before executing mvc-loop.
8265
8266 2016-05-24  Florian Weimer  <fweimer@redhat.com>
8267
8268         [BZ #6527]
8269         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
8270         unconditionally.
8271         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
8272
8273 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8274
8275         * stdlib/tst-strtod6.c (do_test): Use new type generic
8276         invocation of the test function.
8277         (test): Refactor into ...
8278         (TEST_STRTOD): New macro base function.
8279
8280 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8281
8282         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
8283         (TEST_STRTOD): New macro.
8284         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
8285
8286 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8287
8288         * stdlib/tst-strtod6.c (do_test): Use new type generic
8289         invocation of the test function.
8290         (test): Refactor into ...
8291         (TEST_STRTOD): New macro base function.
8292
8293 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8294
8295         CVE-2016-4429
8296         [BZ #20112]
8297         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
8298         payload.
8299
8300 2016-05-23  Florian Weimer  <fweimer@redhat.com>
8301
8302         [BZ #20111]
8303         * bits/sockaddr.h (_SS_SIZE): Define.
8304         * bits/socket.h (_SS_SIZE): Remove.
8305         (_SS_PADSIZE): Adjust to account for all padding.
8306         (struct sockaddr_storage): Update comment.  Avoid implicit
8307         padding.
8308         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
8309         (_SS_PADSIZE): Adjust to account for all padding.
8310         (struct sockaddr_storage): Update comment.  Avoid implicit
8311         padding.
8312         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
8313         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
8314         (_SS_PADSIZE): Adjust to account for all padding.
8315         (struct sockaddr_storage): Update comment.  Avoid implicit
8316         padding.
8317         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
8318         __SS_SIZE is 126 in this version.
8319         * inet/tst-sockaddr.c: New file.
8320         * inet/Makefile (tests): Add tst-sockaddr.c
8321         (tst-sockaddr.c): Compile with non-strict aliasing.
8322
8323 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
8324
8325         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
8326         [XPG3 || XPG4].
8327         (NL_ARGMAX): Also expect for [XPG3].
8328         (NL_LANGMAX): Likewise.
8329         (NL_MSGMAX): Likewise.
8330         (NL_NMAX): Likewise.
8331         (NL_SETMAX): Likewise.
8332         (NL_TEXTMAX): Likewise.
8333         (NZERO): Likewise.
8334         (TMP_MAX): Likewise.
8335         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
8336         variable.
8337
8338         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
8339         (PF_MAX): Update value.
8340         (AF_KCM): New macro.
8341         (SOL_NETBEUI): Likewise.
8342         (SOL_LLC): Likewise.
8343         (SOL_DCCP): Likewise.
8344         (SOL_NETLINK): Likewise.
8345         (SOL_TIPC): Likewise.
8346         (SOL_RXRPC): Likewise.
8347         (SOL_PPPOL2TP): Likewise.
8348         (SOL_BLUETOOTH): Likewise.
8349         (SOL_PNPIPE): Likewise.
8350         (SOL_RDS): Likewise.
8351         (SOL_IUCV): Likewise.
8352         (SOL_CAIF): Likewise.
8353         (SOL_ALG): Likewise.
8354         (SOL_NFC): Likewise.
8355         (SOL_KCM): Likewise.
8356         (MSG_BATCH): New enum value and macro.
8357
8358 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8359
8360         [BZ #18185]
8361         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
8362         sharing L2 cache to 2 for Knights Landing.
8363
8364 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
8365
8366         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
8367         (FTW_DP): Do not expect for [XPG3 || XPG4].
8368         (FTW_SL): Do not expect for [XPG3].
8369         (FTW_SLN): Likewise.
8370         (FTW_PHYS): Likewise.
8371         (FTW_MOUNT): Likewise.
8372         (FTW_DEPTH): Likewise.
8373         (FTW_CHDIR): Likewise.
8374         (nftw): Likewise.
8375         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
8376         variable.
8377
8378 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8379
8380         * manual/errno.texi: Fix various typos & grammar errors.
8381
8382 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
8383
8384         * manual/intro.texi: Fix duplicated typo.
8385
8386 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8387
8388         [BZ #13304]
8389         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
8390         <float.h>, <math_private.h> and <stdlib.h>.
8391         (add_split): New function.
8392         (mul_split): Likewise.
8393         (ext_val): New typedef.
8394         (store_ext_val): New function.
8395         (mul_ext_val): New function.
8396         (compare): New function.
8397         (add_split_ext): New function.
8398         (__fmal): After checking for Inf, NaN and zero, compute result as
8399         an exact sum of scaled double values in round-to-nearest before
8400         adding those up and adjusting for other rounding modes.
8401         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
8402         tests of fma.
8403         * math/auto-libm-test-out: Regenerated.
8404
8405 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8406
8407         [BZ #20119]
8408         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
8409         processor level type mask for CPUID with EAX == 11.
8410
8411 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8412
8413         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
8414         logical threads if the HTT bit is 0.
8415         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
8416         (index_cpu_HTT): Likewise.
8417         (reg_HTT): Likewise.
8418
8419 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8420
8421         [BZ #20115]
8422         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
8423         Remove alignments on jump targets.
8424
8425 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
8426
8427         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
8428         (getpwent): Likewise.
8429         (setpwent): Likewise.
8430         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
8431         variable.
8432
8433         * conform/data/search.h-data (insque): Do not expect for [XPG3].
8434         (remque): Likewise.
8435         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
8436         variable.
8437
8438 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8439
8440         * math/libm-test.inc: Update comment not to refer to signs of NaNs
8441         not being tested.
8442
8443 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8444
8445         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
8446         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
8447         call.
8448         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
8449         (__condvar_cleanup1): Likewise.
8450
8451 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8452
8453         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
8454         New
8455         (__pthread_unwind): Renamed to ...
8456         (PTHREAD_UNWIND): This.
8457         (__pthread_enable_asynccancel): Replace
8458         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
8459
8460 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
8461
8462         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
8463         (CLONE_NEWCGROUP): New macro.
8464
8465         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
8466         (Q_GETNEXTQUOTA): New macro.
8467
8468 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8469
8470         [BZ #19907]
8471         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
8472         buffer updated by the previous run.
8473         * string/test-memcpy.c (do_one_test): Likewise.
8474         * benchtests/bench-memmove.c (do_one_test): Add a comment.
8475         * string/test-memmove.c (do_one_test): Likewise.
8476
8477 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
8478
8479         [BZ #20094]
8480         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
8481         not [__USE_XOPEN].
8482         (unlockpt): Likewise.
8483         (ptsname): Likewise.
8484         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
8485         variable.
8486
8487         [BZ #20076]
8488         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
8489         instead of [__USE_UNIX98].
8490         (S_ISSOCK): Likewise.
8491         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
8492         variable.
8493
8494         [BZ #20074]
8495         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
8496         [__USE_POSIX].
8497         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
8498         variable.
8499
8500         [BZ #20051]
8501         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
8502         (ttyslot): Do not declare.
8503         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
8504         (ttyslot): New prototype.
8505         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
8506         variable.
8507         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
8508
8509 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
8510
8511         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
8512
8513 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8514
8515         Fix race condition in tst-mallocfork2, use fewer resources.
8516         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
8517         to current process group.
8518         (signal_sender): Yield in the non-sleeping case.
8519
8520 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
8521
8522         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
8523         (ecvt): Likewise.
8524         (fcvt): Likewise.
8525         (gcvt): Likewise.
8526         (getsubopt): Likewise.
8527         (grantpt): Likewise.
8528         (initstate): Likewise.
8529         (l64a): Likewise.
8530         (mktemp): Likewise.
8531         (mkstemp): Likewise.
8532         (ptsname): Likewise.
8533         (random): Likewise.
8534         (realpath): Likewise.
8535         (setstate): Likewise.
8536         (srandom): Likewise.
8537         (ttyslot): Likewise.
8538         (unlockpt): Likewise.
8539         (valloc): Likewise.
8540
8541         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
8542         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
8543         variable.
8544
8545 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8546
8547         [BZ #20072]
8548         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
8549         init_cpu_features only if SHARED is defined.
8550         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
8551
8552 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8553
8554         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
8555         non-inclusive caches on Intel processors.
8556
8557 2016-05-13  Florian Weimer  <fweimer@redhat.com>
8558
8559         * malloc/malloc.c (dumped_main_arena_start)
8560         (dumped_main_arena_end): New variables.
8561         (DUMPED_MAIN_ARENA_CHUNK): New macro.
8562         (do_check_chunk): Skip dumped fake mmapped chunks.
8563         (munmap_chunk): Likewise.
8564         (__libc_free): Do not adjust statistics for fake mmapped chunks.
8565         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
8566         mmapped chunks.
8567         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
8568         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
8569         and dumped_main_arena_end to cover the dumped heap.
8570
8571 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
8572
8573         * conform/data/time.h-data (getdate_err): Do not expect for
8574         [XPG3].
8575         (getdate): Likewise.
8576         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
8577         variable.
8578
8579         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
8580         (F_ULOCK): Likewise.
8581         (F_TEST): Likewise.
8582         (F_TLOCK): Likewise.
8583         (useconds_t): Likewise.
8584         (intptr_t): Do not expect for [XPG3] or [XPG4].
8585         (brk): Do not expect for [XPG3]
8586         (fchown): Likewise.
8587         (fchdir): Likewise.
8588         (ftruncate): Likewise.
8589         (getdtablesize): Likewise.
8590         (gethostid): Likewise.
8591         (getpagesize): Likewise.
8592         (getpgid): Likewise.
8593         (getsid): Likewise.
8594         (getwd): Likewise.
8595         (lchown): Likewise.
8596         (lockf): Likewise.
8597         (readlink): Likewise.
8598         (sbrk): Likewise.
8599         (setpgrp): Likewise.
8600         (setregid): Likewise.
8601         (setreuid): Likewise.
8602         (symlink): Likewise.
8603         (sync): Likewise.
8604         (truncate): Likewise.
8605         (ualarm): Likewise.
8606         (usleep): Likewise.
8607         (vfork): Likewise.
8608         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
8609         variable.
8610
8611         [BZ #20054]
8612         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
8613         not [__USE_UNIX98].
8614         * conform/data/unistd.h-data (gethostname): Do not expect for
8615         [XPG3].
8616
8617         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
8618         [!POSIX] (S_IFBLK): Likewise.
8619         [!POSIX] (S_IFCHR): Likewise.
8620         [!POSIX] (S_IFIFO): Likewise.
8621         [!POSIX] (S_IFREG): Likewise.
8622         [!POSIX] (S_IFDIR): Likewise.
8623         [!POSIX] (S_IFLNK): Likewise.
8624         [!POSIX] (S_IFSOCK): Likewise.
8625         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
8626         variable.
8627         (test-xfail-XPG4/fcntl.h/conform): Likewise.
8628
8629 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
8630
8631         * sysdeps/aarch64/memset.S (__memset):
8632         Rewrite of optimized memset.
8633
8634 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8635
8636         [BZ #19703]
8637         Partially async-signal-safe fork for single-threaded processes.
8638         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
8639         variable.  Do not acquire and reset/release malloc and libio locks
8640         in single-threaded processes.
8641         * malloc/tst-mallocfork2.c: New file.
8642         * malloc/Makefile (tests): Add it.
8643
8644 2016-05-12  Florian Weimer  <fweimer@redhat.com>
8645
8646         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
8647         argument.  Use scratch buffer instead of extend_alloca.
8648         (gethosts): Use scratch buffer instead of extend_alloca.
8649         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
8650         extend_alloca.
8651         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
8652
8653 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
8654
8655         [BZ #20055]
8656         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
8657         instead of [__USE_UNIX98].
8658         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
8659         [__USE_UNIX98].
8660         * conform/data/termios.h-data (tcgetsid): Do not expect for
8661         [XPG3].
8662         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
8663         variable.
8664         (test-xfail-XPG4/termios.h/conform): Likewise.
8665
8666 2016-05-11  Florian Weimer  <fweimer@redhat.com>
8667
8668         Do not use mcheck in localedef.
8669         * locale/programs/localedef.c (turn_on_mcheck)
8670         (__malloc_initialize_hook): Remove.
8671
8672 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8673
8674         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
8675         * sysdeps/s390/s390-64/Makefile: Likewise.
8676
8677 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8678
8679         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
8680         Remove ifunc-defines.sym.
8681         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
8682         Likewise.
8683         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
8684         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
8685         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
8686         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
8687         rtld-global-offsets.sym.
8688         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
8689         * sysdeps/x86/cpu-features-offsets.sym: This.
8690         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
8691         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
8692
8693 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
8694
8695         [BZ #20073]
8696         * io/sys/stat.h (fchmod): Declare for
8697         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
8698         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
8699         variable.
8700
8701         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
8702         [XPG3] (S_IFSOCK): Likewise.
8703         [XPG3] (S_ISVTX): Likewise.
8704         [XPG3] (S_ISLNK): Likewise.
8705         [XPG3] (S_ISSOCK): Likewise.
8706         [XPG3] (fchmod): Likewise.
8707         [XPG3] (lstat): Likewise.
8708         [XPG3] (mknod): Likewise.
8709
8710         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
8711         [XPG3].  Expect type long and XFAIL for [XPG4].
8712         (st_blocks): Likewise.
8713
8714         [BZ #20044]
8715         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
8716         (pthread_atfork): New prototype.
8717         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
8718         variable.
8719
8720         [BZ #20043]
8721         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
8722         prototype.
8723
8724 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8725
8726         [BZ #20017]
8727         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
8728         gmtime.
8729
8730 2016-05-10  Florian Weimer  <fweimer@redhat.com>
8731
8732         [BZ #19994]
8733         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
8734         flag in _res.options.
8735
8736 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
8737
8738         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
8739         [XPG3 || XPG4].
8740         (blksize_t): Likewise.
8741         (clockid_t): Likewise.
8742         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
8743         variable.
8744         (test-xfail-XPG4/sys/types.h/conform): Likewise.
8745
8746 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
8747
8748         * sysdeps/unix/sysv/linux/s390/init-first.c:
8749         Add VDSO_SYMBOL(getcpu).
8750         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
8751         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
8752         Add VDSO_SYMBOL(getcpu).
8753         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
8754         New define HAVE_GETCPU_VSYSCALL.
8755         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8756
8757 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8758
8759         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
8760         instead of <sysdeps/x86_64/cacheinfo.c>.
8761         * sysdeps/x86_64/cacheinfo.c: Moved to ...
8762         * sysdeps/x86/cacheinfo.c: Here.
8763
8764 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8765
8766         * malloc/malloc-internal.h: Adjust header file guard.
8767
8768 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8769
8770         [BZ #19787]
8771         * inet/getnameinfo.c (check_sprintf_result): New function.
8772         (CHECKED_SNPRINTF): New macro.
8773         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
8774         to the host buffer.
8775         (gni_host_local): Use checked_copy to copy the host name.
8776         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
8777         (gni_serv_local): Use checked_copy to copy the service name.
8778         (getnameinfo): Remove unnecessary truncation of result buffers.
8779
8780 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8781
8782         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
8783         in case of inet_ntop failure.
8784
8785 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8786
8787         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
8788         avoid long lines.
8789         (gni_host_inet_numeric): Likewise.  Reduce scope of local
8790         variables.
8791         (gni_host_inet, gni_host_local): Add comment.
8792         (gni_host): Add comment.  Use temporary to avoid long lines.
8793
8794 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8795
8796         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
8797         registers specifiers where general purpose registers specifiers should
8798         have been used.
8799
8800 2016-05-04  Florian Weimer  <fweimer@redhat.com>
8801
8802         [BZ #19779]
8803         CVE-2016-1234
8804         Avoid copying names of directory entries.
8805         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
8806         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
8807         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
8808         (struct readdir_result): New type.
8809         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
8810         (GL_READDIR): New macros.
8811         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
8812         (convert_dirent, convert_dirent64): New functions.
8813         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
8814         convert_dirent64.  Adjust references to the readdir result.
8815         * sysdeps/unix/sysv/linux/i386/glob64.c:
8816         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
8817         * posix/bug-glob2.c (LONG_NAME): Define.
8818         (filesystem): Add LONG_NAME.
8819         (my_DIR): Increase the size of room_for_dirent.
8820
8821 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
8822
8823         [BZ #20041]
8824         * misc/sys/select.h (__need_timespec): Only define if
8825         [__USE_XOPEN2K].
8826         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
8827         variable.
8828         (test-xfail-XPG4/utmpx.h/conform): Likewise.
8829         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
8830         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
8831
8832 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8833             Segher Boessenkool  <segher@gcc.gnu.org>
8834
8835         [BZ #20004]
8836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
8837         (__novec_swapcontext): Add missing load.
8838
8839 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
8840
8841         [BZ #20023]
8842         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
8843         <time.h>.
8844         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
8845         variable.
8846         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
8847
8848 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8849
8850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
8851         flags CLONE_VM compare.
8852
8853 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8854
8855         [BZ #20031]
8856         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
8857         completely empty.
8858
8859 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8860
8861         [BZ #19573]
8862         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
8863         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
8864         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
8865         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
8866         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
8867         (hesiod_free_list): Mark as hidden.
8868         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
8869         res_set, res_get.
8870         * hesiod/hesiod.c: Remove unnecessary forward declarations.
8871         (init, __hesiod_res_get, __hesiod_res_set): Remove.
8872         (hesiod_init): Remove obsolete res_ninit call.
8873         (hesiod_end): Do not free resolver state.  Do not invoke callback.
8874         (hesiod_bind): Do not call init.
8875         (get_txt_records): Use res_mkquery, res_send instead of
8876         res_nmkquery, res_nsend.
8877         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
8878         instead of _nss_hesiod_init.
8879         (_nss_hesiod_initgroups_dyn): Likewise.
8880         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
8881         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
8882         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
8883
8884 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8885
8886         * hesiod/hesiod_p.h (DEF_RHS): Remove.
8887         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
8888
8889 2016-05-02  Florian Weimer  <fweimer@redhat.com>
8890
8891         * hesiod/hesiod.h: Remove RCS keyword.
8892         * hesiod/hesiod_p.h: Likewise.
8893
8894         * hesiod/hesiod.c: Likewise.
8895
8896 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
8897
8898         [BZ #12450]
8899         * locale/iso-639.def: Add Samogitian/sgs.
8900
8901 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
8902
8903         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
8904
8905         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
8906
8907 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
8908             Carlos O'Donell  <carlos@redhat.com>
8909
8910         [BZ #19072]
8911         * grp/Makefile (headers): Add grp-merge.h
8912         (routines): Add grp-merge.
8913         * grp/getgrgid_r.c: Include grp-merge.h.
8914         (DEEPCOPY_FN): Define.
8915         (MERGE_FN): Define.
8916         * grp/getgrname_r.c: Include grp-merge.h.
8917         (DEEPCOPY_FN): Define.
8918         (MERGE_FN): Define.
8919         * grp/grp-merge.c: New file.
8920         * grp/grp-merge.h: New file.
8921         * include/grp-merge.h: New file.
8922         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
8923         __copy_grp@GLIBC_PRIVATE.
8924         * manual/nss.texi (Actions in the NSS configuration): Describe
8925         return, continue, and merge.
8926         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
8927         (DEEPCOPY_FN): Define.
8928         (MERGE_FN): Define.
8929         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
8930         (DEEPCOPY_FN): Define.
8931         (MERGE_FN): Define.
8932         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
8933         [!MERGE_FN]: Define __merge_einval.
8934         (CHECK_MERGE): Define.
8935         (REENTRANT_NAME): Process merge if do_merge is true.
8936         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
8937         (__nss_getent_r): Likewise.
8938         * nss/nsswitch.c (nss_parse_service_list): Likewise.
8939         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
8940
8941 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8942
8943         [BZ #20012]
8944         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
8945         length to calculate the buffer to read.
8946         (fmemopen_write): Set the buffer position based on bytes written.
8947         (fmemopen_seek): Return EINVAL for invalid whence modes.
8948
8949         [BZ #19957]
8950         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
8951         tst-getpid2.
8952         (test): Add tst-clone2.
8953         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
8954         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
8955         pid/tid fields for CLONE_VM.
8956         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
8957         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
8958         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
8959         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
8960         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
8961         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
8962         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
8963         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
8964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
8965         Likewise.
8966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
8967         Likewise.
8968         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
8969         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
8970         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
8971         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
8972         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
8973         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
8974         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
8975         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
8976
8977 2016-04-29  Florian Weimer  <fweimer@redhat.com>
8978
8979         [BZ #19642]
8980         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
8981         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
8982         (gni_serv_local, gni_serv): New functions extracted from
8983         getnameinfo.
8984         (getnameinfo): Call gni_host and gni_serv to perform the
8985         processing.  Always free scratch buffer.
8986
8987 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8988
8989         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
8990         remaining bytes in the dest string, with zeros.
8991
8992 2016-04-29  Florian Weimer  <fweimer@redhat.com>
8993
8994         [BZ #20010]
8995         CVE-2016-3706
8996         * sysdeps/posix/getaddrinfo.c
8997         (convert_hostent_to_gaih_addrtuple): New function.
8998         (gethosts): Call convert_hostent_to_gaih_addrtuple.
8999         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
9000         AF_INET data.
9001
9002 2016-04-29  Florian Weimer  <fweimer@redhat.com>
9003
9004         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
9005         callback function gl_readdir.
9006         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
9007         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
9008         (glob_in_dir): Remove len.  Use strdup instead of malloc and
9009         memcpy to copy the name.
9010         * manual/pattern.texi (Calling Glob): Document requirements for
9011         implementations of the gl_readdir callback function.
9012         * manual/examples/mkdirent.c: New example.
9013         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
9014         per the manual guidance.
9015         * posix/tst-gnuglob.c (my_readdir): Likewise.
9016
9017 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
9018
9019         [BZ #20014]
9020         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
9021         not [__USE_POSIX].
9022         (getchar_unlocked): Likewise.
9023         (putc_unlocked): Likewise.
9024         (putchar_unlocked): Likewise.
9025         (flockfile): Likewise.
9026         (ftrylockfile): Likewise.
9027         (funlockfile): Likewise.
9028         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
9029         variable.
9030         (test-xfail-XPG4/stdio.h/conform): Likewise.
9031
9032         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
9033         Expect constant.
9034         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
9035         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
9036         variable.
9037         (test-xfail-XPG4/langinfo.h/conform): Likewise.
9038         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
9039
9040         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
9041         [__USE_LARGEFILE64] (off64_t): Likewise.
9042         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
9043         variable.
9044
9045 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9046
9047         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
9048
9049 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9050
9051         * resolv/inet_addr.c: Reindent preprocessor conditionals.
9052         * resolv/res_init.c: Likewise.
9053         * resolv/res_mkquery.c: Likewise.
9054
9055 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9056
9057         * resolv/res_init.c (isascii): Do not define.  Use definition in
9058         <ctype.h>.
9059         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
9060         (LOG_AUTH): Remove.
9061         (SPRINTF): Remove, adjust caller.
9062         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
9063
9064 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9065
9066         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
9067         SUNSECURITY conditional.
9068         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
9069
9070 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9071
9072         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
9073         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
9074         Remove BSD-related preprocessor conditionals.
9075         * conf/portability.h: Remove.
9076
9077 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9078
9079         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
9080         * resolv/res_data.c: Likewise.
9081
9082 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9083
9084         * resolv/res_comp.c: Remove code conditional on __ultrix__.
9085         * resolv/res_data.c: Remove code conditional on ultrix.
9086
9087 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9088
9089         * resolv/res_init.c (RFC1535): Do not define.  Remove
9090         RFC1535 preprocessor conditionals.
9091         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
9092         because there configuration options which make the resolver
9093         behavior different.
9094
9095 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9096
9097         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
9098         RESOLVSORT preprocessor conditionals.
9099         * resolv/nss_dns/dns-host.c: Likewise.
9100         * resolv/res_init.c: Likewise.
9101
9102 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9103
9104         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
9105         is never defined.
9106
9107 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9108
9109         * inet/inet_lnaof.c: Remove SCSS keyword.
9110         * inet/inet_mkadr.c: Likewise.
9111         * inet/inet_net.c: Likewise.
9112         * inet/inet_netof.c: Likewise.
9113         * inet/rcmd.c: Likewise.
9114         * inet/rexec.c: Likewise.
9115         * inet/ruserpass.c: Likewise.
9116
9117 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9118
9119         * resolv/inet_addr.c: Remove _LIBC conditionals.
9120         * resolv/res_data.c: Likewise.
9121         * resolv/res_init.c: Likewise.
9122         * resolv/res_mkquery.c: Likewise.
9123         * resolv/res_libc.c: Update comment.
9124         * resolv/README: Update.
9125
9126 2016-04-28  Florian Weimer  <fweimer@redhat.com>
9127
9128         * resolv/gethnamaddr.c: Remove SCSS keyword.
9129         * resolv/herror.c: Likewise.
9130         * resolv/inet_addr.c: Likewise.
9131         * resolv/inet_net_ntop.c: Likewise.
9132         * resolv/inet_net_pton.c: Likewise.
9133         * resolv/inet_neta.c: Likewise.
9134         * resolv/inet_ntop.c: Likewise.
9135         * resolv/inet_pton.c: Likewise.
9136         * resolv/ns_date.c: Remove RCS keyword.
9137         * resolv/ns_name.c: Likewise.
9138         * resolv/ns_netint.c: Likewise.
9139         * resolv/ns_parse.c: Likewise.
9140         * resolv/ns_print.c: Likewise.
9141         * resolv/ns_samedomain.c: Likewise.
9142         * resolv/ns_ttl.c: Likewise.
9143         * resolv/nsap_addr.c: Likewise.
9144         * resolv/res_comp.c: Remove SCSS and RCS keyword.
9145         * resolv/res_data.c: Remove RCS keyword.
9146         * resolv/res_debug.c: Remove SCSS and RCS keyword.
9147         * resolv/res_init.c: Likewise.
9148         * resolv/res_mkquery.c: Likewise.
9149         * resolv/res_query.c: Likewise.
9150         * resolv/res_send.c: Likewise.
9151
9152 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9153
9154         * conform/data/stdio.h-data (fdopen): Expect also for
9155         [XPG3 || XPG4].
9156
9157         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
9158         (fseeko): Likewise.
9159         (ftello): Likewise.
9160         (ftrylockfile): Likewise.
9161         (funlockfile): Likewise.
9162         (getc_unlocked): Likewise.
9163         (getchar_unlocked): Likewise.
9164         (putc_unlocked): Likewise.
9165         (putchar_unlocked): Likewise.
9166
9167 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9168
9169         [BZ #19868]
9170         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
9171         DNS packet syntax checks (which were not needed before).  Skip
9172         over non-PTR records.
9173
9174 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9175
9176         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
9177         definition.  Include <stddef.h> instead.
9178
9179 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9180
9181         [BZ #19831]
9182         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
9183         function.
9184         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
9185         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
9186
9187 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9188
9189         [BZ #19862]
9190         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
9191         (getanswer_r): Do not call syslog.
9192         (gaih_getanswer_slice): Likewise.
9193         * resolv/gethnamaddr.c (AskedForGot): Remove.
9194         (getanswer): Do not call syslog.
9195         (gethostbyaddr): Likewise.
9196
9197 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
9198
9199         * conform/data/signal.h-data (union sigval): Expect also if
9200         [XOPEN2K].
9201         (struct sigevent): Likewise.
9202         (SIGEV_NONE): Likewise.
9203         (SIGEV_SIGNAL): Likewise.
9204         (SIGEV_THREAD): Likewise.
9205         (SIGRTMIN): Likewise.
9206         (SIGRTMAX): Likewise.
9207         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
9208         variable.
9209         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
9210
9211 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9212
9213         [BZ #19830]
9214         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
9215         (gaih_getanswer_slice): Likewise.
9216         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
9217         Also check for availability of RR metadata.
9218
9219 2016-04-27  Florian Weimer  <fweimer@redhat.com>
9220
9221         [BZ #19825]
9222         * resolv/res_send.c (send_vc): Remove early *resplen2
9223         initialization.  Set *resplen2 on socket error.  Call
9224         close_and_return_error for other errors.
9225
9226 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
9227
9228         * sysdeps/unix/sysv/linux/netiucv/iucv.h
9229         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
9230         (SCM_IUCV_TRGCLS): New define.
9231
9232 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9233
9234         [BZ #20005]
9235         * libio/fmemopen.c (fmemopen_write): Update internal position after
9236         write.
9237         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
9238         * stdio-common/tst-fmemopen4.c: New file..
9239
9240 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
9241
9242         [BZ #19996]
9243         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
9244         not [__USE_XOPEN2K].
9245         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
9246         variable.
9247
9248         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
9249         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
9250         variable.
9251
9252         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
9253         [__USE_XOPEN2K8].
9254         [__USE_LARGEFILE64] (off64_t): Likewise.
9255         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
9256         variable.
9257
9258 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
9259
9260         [BZ #19989]
9261         * libio/stdio.h (cuserid): Do not declare if
9262         [__USE_XOPEN2K && !__USE_GNU].
9263         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
9264         variable.
9265
9266 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9267
9268         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9269         (sysdep_routines): Add P8 and PPC64 strcspn targets.
9270         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9271         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
9272         ifunc'ed strcspn.
9273         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9274         [EALIGN]: Removed.
9275         [END]: Likewise
9276         [STRSPN]: Define instead of the above to control symbol name.
9277         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
9278         New file.
9279         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
9280         Likewise.
9281         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
9282         Likewise.
9283         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
9284         Likewise.
9285         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9286         [INITIAL_MASK]: New macro.
9287         [STRCSPN]: Likewise.
9288         [UPDATE_MASK]: Likewise.
9289         [USE_AS_STRCSPN]: Lisewise.
9290
9291 2016-04-25  Florian Weimer  <fweimer@redhat.com>
9292
9293         [BZ #19931]
9294         * stdio-common/tst-vfprintf-width-prec.c: New file.
9295         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
9296         (tests-special): Add tst-vfprintf-width-prec-mem.out.
9297         (generated): Add mtrace-related files.
9298         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
9299         (tst-%-mem.out): New pattern rule, replaces
9300         tst-printf-bz18872-mem.out.
9301         * stdio-common/vfprintf.c (vfprintf): When handling a precision
9302         specifier, deallocate any previously allocated work buffer.
9303
9304 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9305
9306         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
9307         Add nop before __startcontext, add explaining comments.
9308
9309 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
9310
9311         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
9312         any more. Notably since IPV6_PKTINFO has been reintroduced with a
9313         completely different API.
9314
9315         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
9316         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
9317         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
9318         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
9319         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
9320         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
9321         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
9322         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
9323         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
9324         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
9325
9326 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9327
9328         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
9329
9330 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
9331
9332         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
9333         when it is the default of 0.
9334
9335 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9336
9337         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
9338         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9339         (sysdep_routines): Add new strcasestr targets.
9340         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9341         (__libc_ifunc_impl_list): Likewise.
9342         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
9343         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
9344         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
9345         * sysdeps/powerpc/powerpc64/power8/Makefile:
9346         New file to add strcasestr-ppc64 to sysdep_routines.
9347         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
9348         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
9349
9350 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
9351
9352         * benchtests/Makefile (wcsmbs-benchset): Include only for
9353         native builds and runs.
9354         (LOCALES): Likewise.
9355         (bench-build): Build timing-type here instead of the bench
9356         target.  Generate locale only for native builds.
9357         * benchtests/README: Add note for cross-building.
9358
9359         * benchtests/Makefile (bench-clean): Clean up extra-objs.
9360
9361         * benchtests/README: Update README to include instructions on
9362         using bench-build.
9363
9364         * Makefile.in (bench-build): New target.
9365         * Rules (PHONY): Add bench-build target.
9366         * benchtests/Makefile (bench): Depend on bench-build.
9367         (bench-build): New target.
9368
9369 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9370
9371         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
9372         profil_reply_port.
9373         (profile_waiter): Do not initialize profil_reply_port.
9374         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
9375         frequency instead of tick length in us.
9376
9377 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
9378
9379         [BZ #18712]
9380         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
9381         (__old_mempcpy_small): Likewise.
9382         (__old_strcpy_small): Likewise.
9383         (__old_stpcpy_small): Likewise.
9384         (__old_strpbrk_c2): Fix compat symbol name.
9385         (__old_strpbrk_c3): Likewise.
9386         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
9387         (__mempcpy_small): Remove.
9388         (__strcpy_small): Remove.
9389         (__stpcpy_small): Remove.
9390
9391 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
9392
9393         [BZ #19400]
9394         * locale/iso-639.def: Add the Talossan/tzl language.
9395
9396 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9397
9398         [BZ #16983]
9399         * locale/programs/ld-address.c (address_finish): Update postal_fmt
9400         comment.  Add "ln" to strchr check on postal_fmt.
9401
9402 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
9403
9404         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
9405         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
9406         tel_dom_fmt.
9407
9408 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
9409
9410         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9411         (sysdep_routines): Added __strlen_power8.
9412         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
9413         __strlen_power8 entry.
9414         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
9415         Implementation for POWER8.
9416         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
9417         for __strlen_power8.
9418         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
9419         Implementation for POWER8.
9420
9421 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
9422
9423         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
9424
9425 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
9426
9427         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
9428         Goldmont and Airmont processors.
9429
9430 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
9431
9432         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
9433         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
9434         (__STRING2_SMALL_GET32): Remove.
9435         (memset): Remove.
9436         (__memset_1): Remove.
9437         (__memset_gc): Remove.
9438         (__mempcpy): Remove.
9439         (mempcpy): Remove.
9440         (__mempcpy_args): Remove.
9441         (strchr): Remove.
9442         (strcpy): Remove.
9443         (strcpy_args): Remove.
9444         (__stpcpy_args): Remove.
9445         (__strcmp_cc): Remove.
9446         (__strcmp_gc): Remove.
9447         (strstr): Remove.
9448
9449 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
9450
9451         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
9452         * nis/nis_call.c (nis_server_cache_add): Likewise.
9453
9454 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9455
9456         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
9457
9458 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9459
9460         * malloc/arena.c (__malloc_fork_lock_parent)
9461         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
9462         internal_function attribute.
9463
9464 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
9465
9466         * stdio-common/printf_fp.c (__printf_fp_l):
9467         Rename ___printf_fp_l to __printf_fp_l and
9468         remove strong alias. Use libc_hidden_def instead
9469         of ldbl_hidden_def macro.
9470
9471 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9472
9473         Remove malloc hooks from fork handler.  They are no longer needed
9474         because malloc runs right before fork, and no malloc calls from
9475         other fork handlers are not possible anymore.
9476         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
9477         declarations.
9478         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
9479         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
9480         (atfork_recursive_cntr): Remove.
9481         (__malloc_fork_lock_parent): Do not override malloc hooks and
9482         thread_arena.
9483         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
9484         thread_arena.
9485         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
9486         thread_arena instead of save_arena.
9487
9488 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9489
9490         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
9491         (thread_atfork, thread_atfork_static): Remove.
9492         * sysdeps/mach/hurd/malloc-machine.h:
9493         (thread_atfork, thread_atfork_static): Remove.
9494
9495 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9496
9497         [BZ #19431]
9498         Run the malloc fork handler as late as possible to avoid deadlocks.
9499         * malloc/malloc-internal.h: New file.
9500         * malloc/malloc.c: Include it.
9501         * malloc/arena.c (ATFORK_MEM): Remove.
9502         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
9503         Update comment.
9504         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
9505         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
9506         Remove outdated comment.
9507         (ptmalloc_init): Do not call thread_atfork.  Remove
9508         thread_atfork_static.
9509         * malloc/tst-malloc-fork-deadlock.c: New file.
9510         * Makefile (tests): Add tst-malloc-fork-deadlock.
9511         (tst-malloc-fork-deadlock): Link against libpthread.
9512         * manual/memory.texi (Aligned Memory Blocks): Update safety
9513         annotation comments.
9514         * sysdeps/nptl/fork.c (__libc_fork): Call
9515         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
9516         __malloc_fork_unlock_child.
9517         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
9518
9519 2016-04-14  Florian Weimer  <fweimer@redhat.com>
9520
9521         [BZ #19613]
9522         Remove union wait.
9523         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
9524         (w_stopsig, w_stopval): Remove.
9525         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
9526         stat_loc argument.
9527         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
9528         (__WAIT_STATUS_DEFN): Remove.
9529         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9530         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
9531         (wait, wait3, wait4): Use int * for the stat_loc argument.
9532         * posix/wait.c (__wait): Likewise.
9533         * posix/wait3.c (__wait3): Likewise.
9534         * posix/wait4.c (__wait4): Likewise.
9535         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
9536         (__WAIT_STATUS_DEFN): Remove.
9537         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
9538         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
9539         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
9540         argument.
9541         * sysdeps/posix/wait.c (__libc_wait): Likewise.
9542         * sysdeps/posix/wait3.c (__wait3): Likewise.
9543         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
9544         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
9545         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
9546         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
9547         stat_loc argument.
9548         * manual/process.texi (BSD Wait Functions): Remove union wait.
9549
9550 2016-04-13  Andreas Schwab  <schwab@suse.de>
9551
9552         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
9553         (test-extras): Add tst-tlsalign-vars.
9554         * math/Makefile: Wrap long lines.
9555         (libm-vec-test-wrappers): Define.
9556         (test-extras): Add $(libm-vec-test-wrappers).
9557         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
9558         * nss/Makefile (extra-test-objs): Add nss_test1.os.
9559         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
9560         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
9561         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
9562         (extra-test-objs): Add corresponding objects.
9563
9564 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
9565
9566         [BZ #19928]
9567         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
9568         New.
9569         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
9570         times of shared cache size.
9571         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
9572         (VMOVNT): New.
9573         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
9574         (VMOVNT): Likewise.
9575         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9576         (VMOVNT): Likewise.
9577         (VMOVU): Changed to movups for smaller code sizes.
9578         (VMOVA): Changed to movaps for smaller code sizes.
9579         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
9580         comments.
9581         (PREFETCH): New.
9582         (PREFETCH_SIZE): Likewise.
9583         (PREFETCHED_LOAD_SIZE): Likewise.
9584         (PREFETCH_ONE_SET): Likewise.
9585         Rewrite to use forward and backward loops, which move 4 vector
9586         registers at a time, to support overlapping addresses and use
9587         non temporal store if size is above the threshold and there is
9588         no overlap between destination and source.
9589
9590 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
9591
9592         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
9593         Include dl-vdso.
9594         * sysdeps/unix/sysv/linux/mips/Versions: Add
9595         __vdso_clock_gettime.
9596         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
9597         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
9598         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
9599         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
9600         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
9601         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
9602         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
9603         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9604         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9605
9606 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9607
9608         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
9609         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
9610         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
9611         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
9612         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
9613         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
9614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
9615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
9616         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
9617         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
9618         syscalls generation.
9619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9620         [__NR_pwrite64] (__NR_write): Remove define.
9621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9622         [__NR_pwrite64] (__NR_write): Remove define.
9623         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
9624         Remove define.
9625         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
9626         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
9627         Remove define.
9628         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
9629         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
9630         Linux implementation as base.
9631         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9632
9633         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
9634         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
9635         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
9636         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
9637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
9638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
9639         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
9640         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
9641         syscall generation.
9642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9643         [__NR_pread64] (__NR_pread): Remove define.
9644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9645         [__NR_pread64] (__NR_pread): Likewise.
9646         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
9647         define.
9648         (__libc_pread): Use SYSCALL_LL macro on offset argument.
9649         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
9650         Remove define.
9651         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
9652         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
9653         Linux implementation as base.
9654         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9655         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
9656         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
9657
9658         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
9659         definition.
9660         (__ALIGNMENT_COUNT): Likewise.
9661         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
9662         (__ALIGNMENT_COUNT): Likewise.
9663         (SYSCALL_LL): New define.
9664         (SYSCALL_LL64): Likewise.
9665         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
9666         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
9667         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
9668         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
9669
9670         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9671         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
9672         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9673         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9674         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9675         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
9676
9677 2016-04-11  Florian Weimer  <fweimer@redhat.com>
9678
9679         [BZ #19865]
9680         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
9681         original buffer before retry.
9682
9683 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9684
9685         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
9686         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
9687         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
9688         GLRO(dl_auxv) list.
9689         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
9690         including <ldsodefs.h>.
9691         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
9692
9693 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
9694
9695         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
9696         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
9697         $(CPPFLAGS).
9698
9699 2016-04-09  Khem Raj  <raj.khem@gmail.com>
9700
9701         [BZ #17950]
9702         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
9703         Add -mfpmath=387.
9704
9705 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
9706
9707         * sysdeps/i386/configure.ac: Change == to = when calling test.
9708         * sysdeps/x86_64/configure.ac: Likewise.
9709         * sysdeps/i386/configure: Regenerated.
9710         * sysdeps/x86_64/configure: Likewise.
9711
9712 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
9713
9714         [BZ #16137]
9715         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
9716         * benchtests/bench-strcoll.c (input_files): Likewise.
9717         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
9718         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
9719         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
9720
9721 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
9722
9723         [BZ #19929]
9724         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
9725         [__USE_XOPEN2K8 && !__USE_GNU].
9726         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
9727         variable.
9728
9729         [BZ #19925]
9730         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
9731         define if [!__USE_MISC && __USE_XOPEN2K].
9732         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
9733         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
9734         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
9735         Likewise.
9736         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
9737         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
9738         variable.
9739         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
9740
9741 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9742
9743         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
9744         (sysdep_routines): Add new strspn targets.
9745         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9746         (__libc_ifunc_impl_list): Add strspn.
9747         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
9748         New file.
9749         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
9750         Likewise.
9751         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
9752         Likewise.
9753         * sysdeps/powerpc/powerpc64/power8/strspn.S:
9754         Likewise.
9755
9756 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9757
9758         * misc/hsearch_r.c: Include <limits.h>.
9759
9760 2016-04-07  Florian Weimer  <fweimer@redhat.com>
9761
9762         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
9763
9764 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9765
9766         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
9767         (MEMCPY_SYMBOL): New.
9768         (MEMPCPY_SYMBOL): Likewise.
9769         (MEMMOVE_CHK_SYMBOL): Likewise.
9770         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
9771         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
9772         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
9773         Provide alias for memcpy in libc.a and ld.so.
9774
9775 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9776
9777         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
9778         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
9779         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
9780         Disabled fro now.
9781         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
9782         symbols.  Properly check USE_MULTIARCH on __memset symbols.
9783
9784 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
9785
9786         * benchtests/Makefile (string-benchset): Add memcpy-large,
9787         memmove-large and memset-large.
9788         * benchtests/bench-memcpy-large.c: New file.
9789         * benchtests/bench-memmove-large.c: Likewise.
9790         * benchtests/bench-memmove-large.c: Likewise.
9791         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
9792
9793 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9794
9795         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
9796         32-bit displacement to avoid long nop between instructions.
9797
9798 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
9799
9800         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
9801         a comment on VMOVU and VMOVA.
9802
9803 2016-04-04  Florian Weimer  <fweimer@redhat.com>
9804
9805         [BZ #19633]
9806         Use specified locale for number formatting in strfmon_l.
9807         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
9808         (__nl_lookup_word): New inline functions.
9809         * include/printf.h (__print_fp_l): Declare.
9810         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
9811         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
9812         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
9813         (___printf_fp): New function.
9814         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
9815         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
9816         * stdlib/tst-strfmon_l.c (do_test): New test.
9817         * stdlib/Makefile (tests): Add kt.
9818         (LOCALES): Build additional locales.
9819         (tst-strfmon_l.out): Require locales.
9820
9821 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
9822
9823         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
9824         if not in libc.
9825         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
9826         Likewise.
9827         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
9828         Likewise.
9829         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
9830         Likewise.
9831
9832 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
9833
9834         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
9835         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
9836         with unaligned_erms.
9837         (__memmove_erms): Skip if source == destination.
9838         (__memmove_unaligned_erms): Don't check source == destination
9839         first.
9840
9841 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9842
9843         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
9844         bit_arch_Fast_Copy_Backward for Intel Core proessors.
9845
9846 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9847
9848         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
9849         * string/strspn.c (strspn): Likewise.
9850
9851 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9852
9853         * benchtests/bench-memset.c (do_test): Support 64-byte
9854         alignment.
9855         (test_main): Test 64-byte alignment.
9856
9857 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9858
9859         * benchtests/bench-memmove.c (test_main): Test 64-byte
9860         alignment.
9861
9862 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
9863
9864         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
9865
9866 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9867
9868         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
9869         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
9870         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
9871
9872         * string/strpbrk.c (strpbrk): Rewrite function.
9873         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
9874         (__strpbrk_c2): Likewise.
9875         (__strpbrk_c3): Likewise.
9876         * string/string-inlines.c
9877         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
9878         Likewise.
9879         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
9880         Likewise.
9881
9882         * string/strspn.c (strcspn): Rewrite function.
9883         * string/bits/string2.h (strspn): Use __builtin_strcspn.
9884         (__strspn_c1): Remove inline function.
9885         (__strspn_c2): Likewise.
9886         (__strspn_c3): Likewise.
9887         * string/string-inlines.c
9888         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
9889         compatibility symbol.
9890         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
9891         Likewise.
9892         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
9893         Likewise.
9894         * string/string-inlines.c: Include generic version.
9895
9896 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
9897             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9898
9899         * string/Version (libc): Add GLIBC_2.24.
9900         * string/strcspn.c (strcspn): Rewrite function.
9901         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
9902         (__strcspn_c1): Remove inline function.
9903         (__strcspn_c2): Likewise.
9904         (__strcspn_c3): Likewise.
9905         * string/string-inline.c
9906         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
9907         compatibility symbol.
9908         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
9909         Likewise.
9910         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
9911         Likewise.
9912         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
9913
9914 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
9915
9916         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
9917         Use ahi instead of aghi to adjust stack pointer.
9918
9919 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9920
9921         [BZ #19853]
9922         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
9923         TEST to take significant digits as second parameter.
9924         [TEST]: Redefine in terms of TEST_N taking 30
9925         significant digits.
9926         (do_test): Add test case to demonstrate precision
9927         failure in the ldbl-128ibm printf.
9928         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
9929         (__mpn_extract_long_double): Carry 7 extra intermediate
9930         bits of precision to aide computing difference when
9931         signs differ.
9932
9933 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
9934
9935         [BZ #19881]
9936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9937         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
9938         memset-avx512-unaligned-erms.
9939         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9940         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
9941         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
9942         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
9943         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
9944         __memset_sse2_unaligned_erms, __memset_erms,
9945         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
9946         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
9947         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
9948         file.
9949         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
9950         Likewise.
9951         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
9952         Likewise.
9953         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
9954         Likewise.
9955
9956 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
9957
9958         [BZ #19776]
9959         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9960         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
9961         memmove-avx512-unaligned-erms.
9962         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9963         (__libc_ifunc_impl_list): Test
9964         __memmove_chk_avx512_unaligned_2,
9965         __memmove_chk_avx512_unaligned_erms,
9966         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
9967         __memmove_chk_sse2_unaligned_2,
9968         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
9969         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
9970         __memmove_avx512_unaligned_erms, __memmove_erms,
9971         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
9972         __memcpy_chk_avx512_unaligned_2,
9973         __memcpy_chk_avx512_unaligned_erms,
9974         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
9975         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
9976         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
9977         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
9978         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
9979         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
9980         __mempcpy_chk_avx512_unaligned_erms,
9981         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
9982         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
9983         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
9984         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
9985         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
9986         __mempcpy_erms.
9987         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
9988         file.
9989         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
9990         Likwise.
9991         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
9992         Likwise.
9993         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
9994         Likwise.
9995
9996 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
9997
9998         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
9999         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
10000         (La_s390_64_regs): Likewise.
10001         (La_s390_32_retval): Append vector register lrv_v24.
10002         (La_s390_64_retval): Likeweise.
10003         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10004         Handle extended structs La_s390_32_regs and La_s390_32_retval.
10005         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10006         Handle extended structs La_s390_64_regs and La_s390_64_retval.
10007
10008 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
10009
10010         [BZ #19916]
10011         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
10012         to create a non-vector/vector version for _dl_runtime_resolve and
10013         _dl_runtime_profile. Move implementation to ...
10014         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
10015         (_dl_runtime_resolve) Save and restore fpr/vrs.
10016         (_dl_runtime_profile) Save and restore vrs and fix some issues
10017         if _dl_call_pltexit is called.
10018         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
10019         Choose the correct resolver function if running on a machine with vx.
10020         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
10021         to create a non-vector/vector version for _dl_runtime_resolve and
10022         _dl_runtime_profile. Move implementation to ...
10023         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
10024         (_dl_runtime_resolve) Save and restore fpr/vrs.
10025         (_dl_runtime_profile) Save and restore vrs and fix some issues
10026         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
10027         Choose the correct resolver function if running on a machine with vx.
10028
10029 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10030
10031         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
10032
10033 2016-03-31  Florian Weimer  <fweimer@redhat.com>
10034
10035         [BZ #19509]
10036         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
10037         skip_map != NULL.
10038         * elf/tst-dlsym-error.c: New file.
10039         * elf/Makefile (tests): Add tst-dlsym-error.
10040         (tst-dlsym-error): Link against libdl.
10041
10042 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
10043
10044         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10045         (__ASSUME_FUTIMESAT): Remove macro.
10046         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
10047
10048 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10049
10050         [BZ #19879]
10051         CVE-2016-3075
10052         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
10053         copy name.
10054
10055 2016-03-29  Florian Weimer  <fweimer@redhat.com>
10056
10057         [BZ #19837]
10058         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
10059         error if parse_line fails.
10060
10061 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10062
10063         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
10064         (index_cpu_ERMS): Likewise.
10065         (reg_ERMS): Likewise.
10066
10067 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
10068
10069         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
10070         PER_LINUX_FDPIC): Add.
10071
10072 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10075         memcpy-avx512-no-vzeroupper.
10076         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
10077         to ...
10078         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
10079         (MEMCPY): Don't define.
10080         (MEMCPY_CHK): Likewise.
10081         (MEMPCPY): Likewise.
10082         (MEMPCPY_CHK): Likewise.
10083         (MEMPCPY_CHK): Renamed to ...
10084         (__mempcpy_chk_avx512_no_vzeroupper): This.
10085         (MEMPCPY_CHK): Renamed to ...
10086         (__mempcpy_chk_avx512_no_vzeroupper): This.
10087         (MEMCPY_CHK): Renamed to ...
10088         (__memmove_chk_avx512_no_vzeroupper): This.
10089         (MEMCPY): Renamed to ...
10090         (__memmove_avx512_no_vzeroupper): This.
10091         (__memcpy_avx512_no_vzeroupper): New alias.
10092         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
10093
10094 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10095
10096         [BZ #18858]
10097         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10098         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
10099         and mempcpy-avx512-no-vzeroupper.
10100         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
10101         New.
10102         (MEMPCPY): Likewise.
10103         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
10104         (MEMPCPY_CHK): New.
10105         (MEMPCPY): Likewise.
10106         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
10107         (MEMPCPY): Likewise.
10108         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
10109         (MEMPCPY): Likewise.
10110         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
10111         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
10112         Likewise.
10113         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
10114         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
10115
10116 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
10117              Amit Pawar  <Amit.Pawar@amd.com>
10118
10119         [BZ #19583]
10120         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
10121         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
10122         processors.  Set Fast_Copy_Backward for AMD Excavator
10123         processors.
10124         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
10125         New.
10126         (index_arch_Fast_Unaligned_Copy): Likewise.
10127         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
10128         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
10129
10130 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10131
10132         [BZ #19791]
10133         * resolv/res_send.c (close_and_return_error): New function.
10134         (send_dg): Initialize *resplen2 after reopen failure.  Call
10135         close_and_return_error for error returns.  On error paths without
10136         __res_iclose, initialze *resplen2 explicitly.  Update comment for
10137         successful return.
10138
10139 2016-03-25  Florian Weimer  <fweimer@redhat.com>
10140
10141         [BZ# 19860]
10142         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
10143         zero if the compiler does not provide the AVX512F bit.
10144
10145 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
10146
10147         [BZ #19848]
10148         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
10149         from 8 to 4.
10150         (__ieee754_powl): Compare integer exponent against 4 not 8.
10151         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
10152         from 8 to 4.
10153         (__ieee754_powl): Compare integer exponent against 4 not 8.
10154         * math/auto-libm-test-in: Add more tests of pow.
10155         * math/auto-libm-test-out: Regenerated.
10156         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10158
10159 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10160
10161         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
10162         Make code unconditional.
10163         [!__NR_utimensat]: Remove conditional code.
10164         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
10165         Make code unconditional.
10166         [!__NR_utimensat]: Remove conditional code.
10167         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
10168         Make code unconditional.
10169         [!__NR_utimensat]: Remove conditional code.
10170
10171 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
10172
10173         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
10174         Make code unconditional.
10175
10176 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
10177
10178         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
10179         call-clobbered %eax on retry path.
10180         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10181
10182 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10183
10184         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
10185         Don't set %rcx twice before "rep movsb".
10186
10187 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10188
10189         [BZ #19583]
10190         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
10191         inline.  Check family before setting family, model and
10192         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
10193         bits here.
10194         (init_cpu_features): Replace HAS_CPU_FEATURE and
10195         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
10196         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
10197         for Intel processors with usable AVX2.  Call get_common_indeces
10198         for other processors with family == NULL.
10199         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
10200         (CPU_FEATURES_ARCH_P): Likewise.
10201         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
10202         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
10203
10204 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10205
10206         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
10207         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
10208         $(shared-thread-library) instead of hardcoding the path to libpthread.
10209
10210 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
10211
10212         * sysdeps/unix/sysv/linux/kernel-features.h
10213         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
10214         * sysdeps/unix/sysv/linux/getdents.c
10215         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
10216         [!have_no_getdents64_defined]: Likewise.
10217         (__GETDENTS): Remove __have_no_getdents64 conditional.
10218
10219 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
10220
10221         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
10222         Remove macro.
10223         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
10224         <kernel-features.h>.
10225         (signalfd) [__NR_signalfd4]: Make code unconditional.
10226         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
10227
10228 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10229
10230         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
10231         style.
10232
10233 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10234
10235         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
10236         (__pthread_enable_asynccancel): Use JUMPTARGET to call
10237         __pthread_unwind.
10238         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10239         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
10240         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10241         (__condvar_cleanup1): Likewise.
10242
10243 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
10244
10245         [BZ #19822]
10246         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
10247         move it to the final $@ location.
10248
10249 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10250
10251         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
10252         access where posix_spawn success and pid argument is null.
10253         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
10254         success case.
10255
10256 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
10257
10258         * sysdeps/mach/hurd/i386/c++-types.data: New file.
10259
10260         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
10261
10262         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
10263         and __fcntl.
10264         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
10265         __fcntl only.
10266         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
10267         adding attribute_hidden to __open and __fcntl.
10268
10269         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
10270         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
10271         depend on libc-modules.h,
10272         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
10273
10274 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
10275
10276         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
10277         Remove macro.
10278         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
10279         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
10280         entry.
10281
10282         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
10283         Remove macro.
10284         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
10285         include <kernel-features.h>.
10286         [!__ASSUME_FALLOCATE]: Remove conditional code.
10287         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
10288
10289 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10290
10291         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
10292         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
10293         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
10294         (_ZGVdN4v_cos_avx2): Likewise.
10295         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
10296         (_ZGVdN4v_cos): Likewise.
10297         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
10298         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
10299         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
10300         (_ZGVdN4v_exp_avx2): Likewise.
10301         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
10302         (_ZGVdN4v_exp): Likewise.
10303         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
10304         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
10305         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
10306         (_ZGVdN4v_log_avx2): Likewise.
10307         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
10308         (_ZGVdN4v_log): Likewise.
10309         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
10310         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
10311         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
10312         (_ZGVdN4vv_pow_avx2): Likewise.
10313         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
10314         (_ZGVdN4vv_pow): Likewise.
10315         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
10316         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
10317         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
10318         (_ZGVdN4v_sin_avx2): Likewise.
10319         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
10320         (_ZGVdN4v_sin): Likewise.
10321         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
10322         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
10323         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
10324         (_ZGVdN4vvv_sincos_avx2): Likewise.
10325         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
10326         (_ZGVdN4vvv_sincos): Likewise.
10327         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
10328         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
10329         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
10330         (_ZGVbN4v_cosf_sse4): Likewise.
10331         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
10332         (_ZGVdN8v_cosf_avx2): Likewise.
10333         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
10334         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
10335         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
10336         (_ZGVbN4v_expf_sse4): Likewise.
10337         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
10338         (_ZGVdN8v_expf_avx2): Likewise.
10339         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
10340         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
10341         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
10342         (_ZGVbN4v_logf_sse4): Likewise.
10343         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
10344         (_ZGVdN8v_logf_avx2): Likewise.
10345         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
10346         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
10347         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
10348         (_ZGVbN4vv_powf_sse4): Likewise.
10349         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
10350         (_ZGVdN8vv_powf_avx2): Likewise.
10351         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
10352         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
10353         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
10354         (_ZGVbN4vvv_sincosf_sse4): Likewise.
10355         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
10356         (_ZGVdN8vvv_sincosf_avx2): Likewise.
10357         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
10358         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
10359         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
10360         (_ZGVbN4v_sinf_sse4): Likewise.
10361         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
10362         (_ZGVdN8v_sinf_avx2): Likewise.
10363         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10364         Use JUMPTARGET to call callee.
10365         (WRAPPER_IMPL_SSE2_ff): Likewise.
10366         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10367         (WRAPPER_IMPL_AVX): Likewise.
10368         (WRAPPER_IMPL_AVX_ff): Likewise.
10369         (WRAPPER_IMPL_AVX_fFF): Likewise.
10370         (WRAPPER_IMPL_AVX512): Likewise.
10371         (WRAPPER_IMPL_AVX512_ff): Likewise.
10372         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
10373         Likewise.
10374         (WRAPPER_IMPL_SSE2_ff): Likewise.
10375         (WRAPPER_IMPL_SSE2_fFF): Likewise.
10376         (WRAPPER_IMPL_AVX): Likewise.
10377         (WRAPPER_IMPL_AVX_ff): Likewise.
10378         (WRAPPER_IMPL_AVX_fFF): Likewise.
10379         (WRAPPER_IMPL_AVX512): Likewise.
10380         (WRAPPER_IMPL_AVX512_ff): Likewise.
10381         (WRAPPER_IMPL_AVX512_fFF): Likewise.
10382
10383 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10384
10385         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
10386         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
10387         qualifier.
10388         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
10389         internal_function qualifiers.
10390
10391 2016-03-15  Carlos O'Donell <carlos@redhat.com>
10392
10393         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
10394         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
10395         * math/atest-exp.c (exp_mpn): Mark chk unused.
10396         * math/atest-exp2.c (exp_mpn): Likwise.
10397         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
10398         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
10399
10400 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
10401
10402         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
10403         Remove macro.
10404         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
10405         <kernel-features.h>.
10406         [__NR_ppoll]: Make code unconditional.
10407         [!__ASSUME_PPOLL]: Remove conditional code.
10408
10409         * sysdeps/unix/sysv/linux/kernel-features.h
10410         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
10411         (__ASSUME_ACCEPT4): Likewise.
10412         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10413         Define.
10414         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
10415         Likewise.
10416         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10417         Likewise.
10418         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
10419         Likewise.
10420         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
10421         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
10422         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10423         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10424         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10425         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10426         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10427         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10428         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10429         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10430         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10431         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10432         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10433         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10434         * sysdeps/unix/sysv/linux/i386/kernel-features.h
10435         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10436         Likewise.
10437         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10438         Likewise.
10439         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10440         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10441         0x040300].
10442         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10443         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
10444         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10445         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10446         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10447         0x030300].
10448         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
10449         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10450         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10451         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10452         0x040300].
10453         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10454         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10455         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10456         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10457         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10458         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10459         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
10460         0x030300].
10461         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10462         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10463         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10464         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10465         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10466         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10467         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10468         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10469         * sysdeps/unix/sysv/linux/s390/kernel-features.h
10470         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
10471         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
10472         0x040300].
10473         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10474         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10475         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10476         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
10477         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10478         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10479         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10480         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10481         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10482         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10483         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10484         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10485         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
10486         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
10487         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
10488         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10489         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
10490         Likewise.
10491         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
10492         Likewise.
10493
10494 2016-03-15  Andreas Schwab  <schwab@suse.de>
10495
10496         [BZ #19257]
10497         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
10498         statp->_u._ext.nscount as loop count.
10499
10500 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
10501
10502         * math/test-signgam-finite-c99.c: Also #undef
10503         __LIBC_INTERNAL_MATH_INLINES.
10504         * math/test-signgam-main.c: Likewise.
10505
10506 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
10507
10508         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
10509         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10510         (MADV_FREE): Likewise.
10511         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
10512         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
10513         EPOLLEXCLUSIVE.
10514
10515 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
10516
10517         * timezone/README: Remove mention of checktab.awk. Mention wiki
10518         SharedSourceFiles.
10519
10520 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
10521
10522         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
10523         WUNTRACED.
10524
10525 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10526
10527         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
10528         order to match the type of p when calling atomic_exchange_acq().
10529
10530 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10531
10532         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
10533         cfi_offset calls.
10534         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
10535         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
10536         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
10537         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
10538         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
10539
10540 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
10541
10542         * timezone/checktab.awk: Removed.
10543
10544 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
10545
10546         * manual/math.texi (Errors in Math Functions): Document relaxed
10547         accuracy goals for IBM long double.
10548         * math/libm-test.inc (test_exceptions): Always allow spurious
10549         "underflow" and "inexact" exceptions for IBM long double.
10550
10551 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10552
10553         [BZ #19762]
10554         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10555         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
10556         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
10557         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
10558         (bit_arch_*): This for feature array.
10559         (bit_*): Renamed to ...
10560         (bit_cpu_*): This for cpu array.
10561         (index_*): Renamed to ...
10562         (index_arch_*): This for feature array.
10563         (index_*): Renamed to ...
10564         (index_cpu_*): This for cpu array.
10565         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
10566         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
10567         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
10568         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
10569         bit_##name with index_cpu_##name and bit_cpu_##name.
10570         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
10571         bit_##name with index_arch_##name and bit_arch_##name.
10572
10573 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
10574
10575         [BZ #19792]
10576         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
10577         Terminate FDE before return label.
10578
10579 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
10580
10581         [BZ #19790]
10582         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
10583         (rintl): Define as macro.
10584         [USE_AS_NEARBYINTL] (__rintl): Likewise.
10585         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
10586         of fesetround.  Ensure results are evaluated before end of scope.
10587         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
10588         USE_AS_NEARBYINTL and include s_rintl.c.
10589         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
10590         Disable exception traps in new environment.
10591         (libc_feholdsetround_ppc_ctx): Likewise.
10592
10593 2016-03-08  Roland McGrath  <roland@hack.frob.com>
10594
10595         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
10596         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
10597         (tst_audit10_aux) [__AVX512F__]: ... here.
10598
10599 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
10600
10601         * include/sys/auxv.h: New file.
10602
10603 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10604
10605         [BZ #19759]
10606         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
10607
10608 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10609
10610         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
10611         operand modifier.
10612         (feclearexcept): Likewise.
10613
10614 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
10615
10616         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
10617         to reflect the entire 32-bit HWCAP.
10618         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
10619         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
10620
10621 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
10622
10623         [BZ #19783]
10624         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
10625         $(test-via-rtld-prefix).
10626         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
10627
10628 2016-03-08  Florian Weimer  <fweimer@redhat.com>
10629
10630         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
10631         union wait.  Report any non-zero exit status as error.
10632
10633 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10634
10635         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
10636         configured with --enable-hardcoded-path-in-tests.
10637
10638 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
10639
10640         [BZ #19677]
10641         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
10642         (__ieee754_remainderl): Put zero low parts in canonical form.
10643         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
10644         file.  Based on
10645         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
10646         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
10647         with wrapper round test-fmodrem-ldbl-128ibm.c.
10648         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
10649         file.
10650         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
10651         Likewise.
10652         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10653         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
10654
10655 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10656
10657         [BZ #19610]
10658         * elf/ldconfig.c (opt_link): Update comment.
10659         (options): Update help string for option -X.
10660         (search_dir): Unlink stale symbolic link only if updating symbolic
10661         links.
10662         * elf/tst-ldconfig-X.sh: New file.
10663         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
10664         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
10665
10666 2016-03-07  Andreas Schwab  <schwab@suse.de>
10667
10668         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
10669         needed arguments.
10670
10671 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
10672
10673         [BZ #15333]
10674         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
10675         to lstat64.
10676
10677 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10678
10679         * libio/filedoalloc.c (isatty): Remove.
10680         (local_isatty): Add comment.  Call __isatty directly.
10681         (_IO_file_doallocate): Update comment.  Assume _LIBC.
10682         * libio/wfiledoalloc.c (isatty): Remove.
10683         (_IO_wfile_doallocate): Update comment.
10684
10685 2016-03-07  Florian Weimer  <fweimer@redhat.com>
10686
10687         [BZ #19269]
10688         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
10689         tst-audit4-aux.o.
10690         (tst-audit10): Depend on tst-audit10-aux.o.
10691         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
10692         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
10693         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
10694         instead of inline AVX code.
10695         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
10696         instead of inline AVX512 code.
10697         * sysdeps/x86_64/tst-audit4-aux.c: New file
10698         * sysdeps/x86_64/tst-audit10-aux.c: New file
10699
10700         [BZ #19648]
10701         * test-skeleton.c (main): Do not set RLIMIT_DATA.
10702
10703 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10704
10705         [BZ #14750]
10706         [BZ #10354]
10707         [BZ #18433]
10708         * include/sched.h (__clone): Add hidden prototype.
10709         (__clone2): Likewise.
10710         * include/unistd.h (__dup): Likewise.
10711         * posix/Makefile (tests): Add tst-spawn2.
10712         * posix/tst-spawn2.c: New file.
10713         * sysdeps/posix/dup.c (__dup): Add hidden definition.
10714         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
10715         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
10716         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
10717         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
10718         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
10719         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
10720         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
10721         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
10722         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
10723         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
10724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
10725         Likewise.
10726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10727         Likewise.
10728         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
10729         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
10730         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
10731         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
10732         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
10733         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
10734         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
10735         * sysdeps/unix/sysv/linux/nptl-signals.h
10736         (____nptl_is_internal_signal): New function.
10737         * sysdeps/unix/sysv/linux/spawni.c: New file.
10738
10739         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
10740         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
10741         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
10742         * posix/tst-execvp2.c (do_test): Likewise.
10743         * posix/tst-execvp3.c (do_test): Likewise.
10744         * posix/tst-execvp4.c (do_test): Likewise.
10745         * posix/tst-execvpe1.c: New file.
10746         * posix/tst-execvpe2.c: Likewise.
10747         * posix/tst-execvpe3.c: Likewise.
10748         * posix/tst-execvpe4.c: Likewise.
10749         * posix/tst-execvpe5.c: Likewise.
10750         * posix/tst-execvpe6.c: Likewise.
10751
10752         [BZ #19534]
10753         * posix/execl.c (execl): Remove dynamic memory allocation.
10754         * posix/execle.c (execle): Likewise.
10755         * posix/execlp.c (execlp): Likewise.
10756
10757 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10758
10759         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
10760         Replace .text with .text.avx512.
10761         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
10762         Likewise.
10763
10764 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
10765
10766         * sysdeps/generic/libnsl.abilist: New file.
10767         * sysdeps/generic/libutil.abilist: New file.
10768
10769 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
10770
10771         [BZ #19762]
10772         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
10773         HAS_ARCH_FEATURE with Fast_Rep_String.
10774         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
10775         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
10776         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
10777         Likewise.
10778         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
10779         Likewise.
10780         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
10781         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
10782         Likewise.
10783         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
10784         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
10785         Likewise.
10786
10787 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10788
10789         [BZ #19745]
10790         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
10791         with *%rax in call.
10792
10793 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10794
10795         [BZ #19745]
10796         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
10797         with *__libc_start_main@GOTPCREL(%rip) in call.
10798
10799 2016-03-04  Roland McGrath  <roland@hack.frob.com>
10800
10801         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
10802         inside conditional for nonempty $(CXX).
10803
10804         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
10805         nonempty.
10806
10807         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
10808         to test for empty $(CXX) rather than $(CXX) of "no".
10809
10810 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10811
10812         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
10813
10814 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
10815             H.J. Lu  <hongjiu.lu@intel.com>
10816
10817         [BZ #18880]
10818         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
10819         instead of Slow_BSF, and also check for Fast_Copy_Backward to
10820         enable __memcpy_ssse3_back.
10821
10822 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
10823
10824         [BZ #19758]
10825         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
10826         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
10827
10828 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10829
10830         [BZ #19490]
10831         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
10832         (__fentry__): Likewise.
10833
10834 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
10835
10836         * gmon/Makefile (noprof): Add $(sysdep_noprof).
10837         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
10838
10839 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
10840
10841         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
10842         __mcount_internal directly.
10843         (C_LABEL(__fentry__)): Likewise.
10844         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
10845         directly.
10846
10847 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
10848
10849         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
10850         (__start_context): Call __setcontext directly.
10851
10852 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
10853
10854         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10855         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10856         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
10857         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
10858         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10859         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10860         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
10861         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10862         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10863         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
10864         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
10865         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
10866         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10867         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10868         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10869         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10870         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
10871         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10872         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10873         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
10874         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
10875         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10876         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10877         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
10878         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
10879         Remove conditional code.
10880         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10881         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
10882         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10883         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10884         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
10885         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10886         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
10887         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10888         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
10889         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10890         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10891         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
10892
10893 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
10894
10895         * NEWS (2.23): Fix typo in bug 19048 text.
10896
10897 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
10898
10899         [BZ #14259]
10900         * Makeconfig: Rename msgcatdir to localedir.
10901         Rename inst_msgcatdir to inst_localedir.
10902         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
10903         * config.make.in: Add localedir.
10904         * elf/Makefile ($(objpfx)sotruss): Use localedir.
10905         (ldd-rewrite): Likewise.
10906         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
10907         (install-others): Use inst_localedir.
10908         (CPPFLAGS): Use localedir.
10909         * locale/Makefile (locale-CPPFLAGS): Likewise.
10910         * po/Makefile (mo-installed): Use inst_localedir.
10911
10912         [BZ #19575]
10913         * localedata/charmaps/GB18030: Update comments regarding PAU to
10914         non-PUA mappings.
10915
10916 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
10917
10918         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
10919         test for header.
10920         * sysdeps/unix/sysv/linux/configure: Regenerated.
10921         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
10922         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
10923         Remove conditional code.
10924         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
10925
10926         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
10927         Define to 3.2.0.
10928         (arch_minimum_kernel): Likewise.
10929         * sysdeps/unix/sysv/linux/configure: Regenerated.
10930         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
10931         Define to 2.6.32.
10932         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
10933         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
10934         (arch_minimum_kernel): Define to 2.6.32.
10935         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
10936         * README: Document Linux 3.2 requirement.
10937         * manual/install.texi (Linux): Document Linux 3.2 headers
10938         requirement.
10939         * INSTALL: Regenerated.
10940
10941 2016-02-24  Andreas Schwab  <schwab@suse.de>
10942
10943         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
10944         if !NO_LONG_DOUBLE.
10945
10946 2016-02-22  Roland McGrath  <roland@hack.frob.com>
10947
10948         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
10949         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
10950
10951 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
10952
10953         [BZ #19512]
10954         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
10955
10956 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
10957
10958         * posix/tst-dir.c: Include libc-internal.h.
10959
10960 2016-02-20  Florian Weimer  <fweimer@redhat.com>
10961
10962         [BZ #19056]
10963         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
10964         * manual/filesys.texi (Reading/Closing Directory): Mention
10965         deprecaion.
10966         * posix/tst-dir.c (main): Disable deprecation warning in test.
10967
10968 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
10969
10970         [BZ #19679]
10971         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
10972         Renamed to ...
10973         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
10974         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
10975         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
10976         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
10977         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
10978         * sysdeps/x86_64/dl-trampoline.h
10979         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
10980         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
10981
10982 2016-02-19  Mark Wielaard  <mjw@redhat.com>
10983
10984         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
10985
10986 2016-02-19  Mark Wielaard  <mjw@redhat.com>
10987
10988         * elf/elf.h (R_386_GOT32X): New.
10989         (R_386_NUM): Update.
10990         (R_X86_64_GOTPCRELX: New.
10991         (R_X86_64_REX_GOTPCRELX): New.
10992         (R_X86_64_NUM): Update.
10993
10994 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
10995
10996         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
10997
10998 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
10999
11000         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
11001         assign attr->stackaddr to it, and adjust it down when
11002         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
11003         [_STACK_GROWS_UP]: Delete assert.
11004         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
11005         Implement stack grows up logic.
11006         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
11007         stack grows up logic.
11008
11009 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11010
11011         * NEWS: Update with 2.24 template.
11012
11013 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11014
11015         [BZ #19678]
11016         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
11017         Ensure +0.0 is returned when taking the next value below the least
11018         positive value.
11019
11020 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11021
11022         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
11023         available.  Do not define NO_THREADS.
11024         * malloc/malloc.c: Do not check NO_THREADS.
11025         * malloc/arena.c: Likewise.
11026
11027 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11028
11029         * malloc/malloc.c (__libc_mallinfo): Update comment.
11030         (struct malloc_par): Remove max_total_mem member, it was always 0.
11031         (int_mallinfo): Store 0 into usmblks (no functional change).
11032         * malloc/hooks.c (struct malloc_state): Document that
11033         max_total_mem is always 0.
11034         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
11035         always 0.
11036         * manual/memory.texi (Statistics of Malloc): Likewise.
11037
11038 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11039
11040         * malloc/malloc.c (sysmalloc): Do not update arena_max.
11041         * malloc/arena.c (arena_max): Remove.
11042         (heap_trim, _int_new_arena): Do not update arena_max.
11043
11044 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11045
11046         * resolv/res_init.c (res_ninit): Update comment.
11047
11048 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11049
11050         [BZ #19505]
11051         * posix/spawn_int.h: Add headers and include guard.
11052         (__spawn_valid_fd): New function.
11053         * posix/spawn_faction_addopen.c
11054         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
11055         * posix/spawn_faction_addclose.c
11056         (posix_spawn_file_actions_addclose): Likewise.
11057         * posix/spawn_faction_adddup2.c
11058         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
11059         second file descriptor.
11060         * posix/spawn_valid_fd.c: New file.
11061         * posix/tst-posix_spawn-fd.c: New file.
11062         * posix/Makefile (routines): Add spawn_valid_fd.
11063         (tests): Add tst-posix_spawn-fd.
11064
11065 2016-02-19  Florian Weimer  <fweimer@redhat.com>
11066
11067         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
11068         (do_test): Limit the number of arenas, so that we can use fewer
11069         outer threads.  Limit timeout to 3 seconds, in preparation for a
11070         larger TIMEOUT value.
11071
11072 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
11073
11074         [BZ #19674]
11075         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
11076         sign in overflowing and underflowing results when overflow or
11077         underflow is detected early.  Include sign in result before rather
11078         than after scaling.
11079
11080         [BZ #19603]
11081         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
11082         (__ieee754_remainderl): Adjust sign of integer version of low part
11083         when taking absolute value of high part.
11084         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
11085         * math/libm-test.inc (remainder_test_data): Add another test.
11086         (remquo_test_data): Likewise.
11087
11088 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
11089
11090         [BZ #19602]
11091         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
11092         equal high parts and both low parts zero specially.
11093         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
11094         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
11095         Add test-fmodl-ldbl-128ibm.
11096
11097         [BZ #19595]
11098         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
11099         common logic for all cases of shifting subnormal results.  Do not
11100         insert sign bit in shifted mantissa.  Always pass -1023 as biased
11101         exponent to ldbl_insert_mantissa in subnormal case.
11102
11103         [BZ #19594]
11104         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
11105         on high and low parts then adjust result and use
11106         ldbl_canonicalize_int if needed.
11107
11108         [BZ #19593]
11109         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
11110         on high part and __floor or __ceil on low part then use
11111         ldbl_canonicalize_int if needed.
11112
11113         [BZ #19592]
11114         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
11115         high and low parts then use ldbl_canonicalize_int if needed.
11116
11117         [BZ #17899]
11118         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
11119         New function.
11120         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
11121         on high and low parts then use ldbl_canonicalize_int if needed.
11122
11123 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11124
11125         * configure: Regenerated.
11126
11127         * po/libc.pot: Regenerated.
11128
11129         * po/be.po: Updated translation.
11130         * po/bg.po: Likewise.
11131         * po/ca.po: Likewise.
11132         * po/cs.po: Likewise.
11133         * po/da.po: Likewise.
11134         * po/el.po: Likewise.
11135         * po/eo.po: Likewise.
11136         * po/es.po: Likewise.
11137         * po/fi.po: Likewise.
11138         * po/fr.po: Likewise.
11139         * po/gl.po: Likewise.
11140         * po/hr.po: Likewise.
11141         * po/hu.po: Likewise.
11142         * po/ia.po: Likewise.
11143         * po/id.po: Likewise.
11144         * po/it.po: Likewise.
11145         * po/ja.po: Likewise.
11146         * po/lt.po: Likewise.
11147         * po/nb.po: Likewise.
11148         * po/nl.po: Likewise.
11149         * po/pt_BR.po: Likewise.
11150         * po/rw.po: Likewise.
11151         * po/sk.po: Likewise.
11152         * po/sl.po: Likewise.
11153         * po/sv.po: Likewise.
11154         * po/tr.po: Likewise.
11155         * po/zh_CN.po: Likewise.
11156         * po/zh_TW.po: Likewise.
11157
11158         * version.h (RELEAES): Set to "development".
11159         (VERSION): Set to 2.23.90.
11160
11161         * version.h (RELEASE): Set to "stable".
11162         (VERSION): Set to 2.23.
11163         * include/feature.h (__GLIBC_MINOR__): Set to 23.
11164
11165         * NEWS: Updated fixed bugs.
11166
11167 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11168             Wilco Dijkstra  <wdijkstr@arm.com>
11169
11170         [BZ #19462]
11171         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
11172         (_STRING_INLINE_unaligned): This.
11173         * include/string.h: Include <string_private.h>.
11174         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
11175         _STRING_INLINE_unaligned.
11176         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
11177         (_STRING_INLINE_unaligned): New.
11178         * sysdeps/aarch64/string_private.h: New file.
11179         * sysdeps/generic/string_private.h: Likewise.
11180         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
11181         * sysdeps/s390/string_private.h: Likewise.
11182         * sysdeps/x86/string_private.h: Likewise.
11183         * sysdeps/m68k/m680x0/m68020/bits/string.h
11184         (_STRING_ARCH_unaligned): Renamed to ...
11185         (_STRING_INLINE_unaligned): This.
11186         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
11187         to ...
11188         (_STRING_INLINE_unaligned): This.
11189         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
11190         to ...
11191         (_STRING_INLINE_unaligned): This.
11192         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
11193         to ...
11194         (_STRING_INLINE_unaligned): This.
11195
11196 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
11197             H.J. Lu  <hongjiu.lu@intel.com>
11198
11199         [BZ #19590]
11200         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
11201         relocation.
11202
11203 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
11204
11205         [BZ #18665]
11206         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
11207         *herrno_p.
11208         (gaih_getanswer): Document functional behviour. Return tryagain
11209         if any result is tryagain.
11210         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
11211         when freed.
11212         * resolv/res_send.c: Add copyright text.
11213         (__libc_res_nsend): Document that MAXPACKET is expected.
11214         (send_vc): Document. Remove buffer reuse.
11215         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
11216         size of the buffer. Add Dprint for truncated UDP buffer.
11217
11218 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
11219
11220         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
11221         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
11222         * INSTALL: Regenerate.
11223
11224 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
11225             Jonathan Wakely  <jwakely@redhat.com>
11226             Carlos O'Donell  <carlos@redhat.com>
11227
11228         [BZ 19439]
11229         * math/Makefile (tests): Add test-math-isinff.
11230         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
11231         * math/bits/mathcalls.h [__USE_MISC]: Use
11232         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
11233         functions not in C++11 and which don't conflict e.g. isinff,
11234         isinfl etc.
11235         * math/test-math-isinff.cc: New file.
11236
11237 2016-02-12  Florian Weimer  <fweimer@redhat.com>
11238
11239         * misc/bug18240.c (do_test): Set RLIMIT_AS.
11240
11241 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11242
11243         [BZ #19529]
11244         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
11245
11246 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11247
11248         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
11249
11250 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
11251
11252         [BZ #19550]
11253         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
11254         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
11255         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
11256         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
11257         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
11258         New syscall entry.
11259         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
11260         New syscall entry.
11261         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
11262         syscall entry.
11263
11264 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11265
11266         [BZ #18240]
11267         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
11268         unsigned int wraparound.
11269
11270 2016-01-27  Florian Weimer  <fweimer@redhat.com>
11271
11272         [BZ #18240]
11273         * misc/bug18240.c: New test.
11274         * misc/Makefile (tests): Add it.
11275
11276 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
11277             Joseph Myers  <joseph@codesourcery.com>
11278
11279         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
11280         load in branch delay slot when less than a word of input left.
11281
11282 2016-01-27  Andreas Schwab  <schwab@suse.de>
11283
11284         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
11285         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
11286         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
11287         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
11288
11289 2016-01-26  David S. Miller  <davem@davemloft.net>
11290
11291         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
11292
11293 2016-01-25  David S. Miller  <davem@davemloft.net>
11294
11295         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
11296         __sqrtl_finite.
11297         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
11298         instead using versioned_symbol.
11299         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
11300         of entries.
11301
11302         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
11303         __sqrtl_finite to GLIBC_2.23
11304
11305 2016-01-25  Ricchard Henderson  <rth@redhat.com>
11306
11307         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11308
11309 2016-01-25  Andreas Schwab  <schwab@suse.de>
11310
11311         [BZ #17514]
11312         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
11313         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
11314         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
11315         * nptl/tst-mutex-errorcheck.c: New file.
11316
11317 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11318
11319         [BZ #18560]
11320         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
11321         (IPCOP_semop): Likewise.
11322         (IPCOP_semget): Likewise.
11323         (IPCOP_semctl): Likewise.
11324         (IPCOP_msgsnd): Likewise.
11325         (IPCOP_msgrcv): Likewise.
11326         (IPCOP_msgget): Likewise.
11327         (IPCOP_msgctl): Likewise.
11328         (IPCOP_shmat): Likewise.
11329         (IPCOP_shmdt): Likewise.
11330         (IPCOP_shmget): Likewise.
11331         (IPCOP_shmctl): Likewise.
11332
11333 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
11334
11335         * string/tst-endian.c: Include <libc-internal.h>.
11336         (do_test): Ignore tautological-compare warnings around
11337         "htobeXX (beXXtoh (i)) != i" and
11338         "htoleXX (leXXtoh (i)) != i" if-statements.
11339
11340 2016-01-24  David S. Miller  <davem@davemloft.net>
11341
11342         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
11343         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
11344         alias.
11345         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
11346         __sqrtl_finite.
11347
11348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11349
11350 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
11351
11352         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
11353         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
11354         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11355
11356 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11357
11358         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
11359         (thread_func): Use new function to simplify barrier check.
11360         (do_test): Use new function to simplify checking barrier exit
11361         code, and actually join the child thread.
11362
11363 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11364
11365         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
11366         semicolon.
11367         (__libc_tend): Likewise.
11368         (__libc_tabort): Likewise.
11369
11370 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
11371
11372         * sysdeps/nios2/libm-test-ulps: Update.
11373         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
11374         (__gtsf2): Likewise.
11375         (__unorddf2): Likewise.
11376         (__unordsf2): Likewise.
11377         (__ledf2): Likewise.
11378
11379 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
11380
11381         * nis/nis_table.c (__follow_path): Disable diagnostic for
11382         uninitialized variable that is a false positive for gcc 4.7.
11383         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
11384
11385 2016-01-20  Roland McGrath  <roland@hack.frob.com>
11386
11387         * sysdeps/nacl/lowlevellock-futex.h
11388         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
11389         Always evaluate PRIVATE argument.
11390
11391 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
11392
11393         [BZ #19490]
11394         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
11395         (pthread_cond_broadcast): Use ENTRY/END
11396         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
11397         (pthread_cond_signal): Likewise.
11398         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
11399         Likewise.
11400         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
11401         Likewise.
11402         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
11403         Likewise.
11404
11405 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
11406
11407         * sysdeps/ieee754/dbl-64/s_finite.c
11408         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
11409         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
11410         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
11411         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
11412         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
11413
11414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
11415         (__gtsf2): Add as optional for libc.so.
11416         (__unordsf2): Likewise.
11417         (__signbit): Remove for libc.so.
11418         (__signbitl): Likewise.
11419
11420 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
11421
11422         * iconvdata/bug-iconv11.c (test_ibm93x):
11423         Use %zu printf format specifier for size_t argument.
11424
11425 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
11426
11427         * math/gen-libm-test.pl (parse_ulps): Do not reduce
11428         already-recorded ulps.
11429         * sysdeps/arm/libm-test-ulps: Regenerated.
11430         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11431         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11432         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
11433
11434 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
11435             Paul Pluzhnikov  <ppluzhnikov@google.com>
11436
11437         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
11438         assembler not supporting AVX-512.
11439
11440 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
11441
11442         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11443
11444 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11445
11446         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
11447         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11448
11449         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
11450
11451         * sysdeps/arm/libm-test-ulps: Regenerated.
11452
11453 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11454
11455         [BZ #19451]
11456         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
11457
11458 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
11459
11460         [BZ #19486]
11461         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
11462         * sysdeps/generic/fix-fp-int-convert-overflow.h
11463         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
11464         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
11465         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
11466         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
11467         Likewise.
11468         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
11469         Avoid conversions to long int where inexact exceptions
11470         could be raised.
11471         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
11472         Likewise.
11473         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
11474         Avoid conversions to long long int where inexact exceptions
11475         could be raised.
11476         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
11477         Likewise.
11478
11479 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
11480
11481         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
11482         * configure: Regenerated.
11483
11484 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11485
11486         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
11487
11488 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
11489
11490         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
11491         outside of comment.
11492
11493 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11494
11495         * nptl/tst-barrier1.c: Add description on first line.
11496         * nptl/tst-barrier2.c: Likewise.
11497         * nptl/tst-barrier3.c: Likewise.
11498         * nptl/tst-barrier4.c: Likewise.
11499         * nptl/tst-barrier5.c: Likewise.
11500
11501 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11502
11503         [BZ #18868]
11504         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
11505
11506 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
11507
11508         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
11509         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
11510         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
11511         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
11512         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
11513         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
11514         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11515         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11516         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11517         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11518         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11519
11520 2016-01-15  Torvald Riegel  <triegel@redhat.com>
11521
11522         [BZ #13065]
11523         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
11524         new implementation.
11525         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
11526         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
11527         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
11528         (BARRIER_IN_THRESHOLD): New macro.
11529         * nptl/pthread_barrierattr_setpshared.c
11530         (pthread_barrierattr_setpshared): Clean up.
11531         * nptl/tst-barrier4.c: Correct comment.
11532         * nptl/tst-barrier5.c: New file.
11533         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
11534         (gen-as-const-headers): Remove lowlevelbarrier.sym.
11535         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
11536         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
11537         * nptl/lowlevelbarrier.sym: Remove.
11538         * nptl/DESIGN-barrier.txt: Remove.
11539         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
11540         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
11541         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
11542         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
11543         error.
11544         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
11545         implementation.
11546
11547 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11548
11549         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
11550         (do_child): Mask SIGRTMIN while thr is running.
11551
11552 2016-01-15  Martin Sebor  <msebor@redhat.com>
11553
11554         [BZ #19432]
11555         * iconvdata/Makefile: Add bug-iconv11.
11556         * iconvdata/bug-iconv11.c: New test.
11557         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
11558         * iconvdata/ibm933.c: Same.
11559         * iconvdata/ibm935.c: Same.
11560         * iconvdata/ibm937.c: Same.
11561         * iconvdata/ibm939.c: Same.
11562
11563 2016-01-15  Martin Sebor  <msebor@redhat.com>
11564
11565         [BZ #19443]
11566         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
11567         [DEBUG] (_ufc_set_bits): Declare used.
11568         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
11569         [DEBUG] (print_all): Declare used.
11570         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
11571         operands of the ternary ?: expression to target type.
11572         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
11573         calling the undeclared abort.
11574         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
11575
11576 2016-01-15  Martin Sebor  <msebor@redhat.com>
11577
11578         [BZ #18755]
11579         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
11580         warnings.
11581         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
11582         (__gai_create_helper_thread): Same.
11583         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
11584         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
11585         to suppress -Wmaybe-uninitialized warnings.
11586
11587 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
11588
11589         [BZ #19465]
11590         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
11591         inside if.
11592         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11593         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11594         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11595
11596 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
11597
11598         [BZ #19466]
11599         * time/tst-mktime2.c (time_t_max): Removed.
11600         (time_t_min): Likewise.
11601         (TYPE_SIGNED): New.
11602         (TYPE_MINIMUM): Likewise.
11603         (TYPE_MAXIMUM): Likewise.
11604         (TIME_T_MIN): Likewise.
11605         (TIME_T_MAX): Likewise.
11606         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
11607         and TIME_T_MIN.
11608         (do_test): Likewise.
11609
11610 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
11611
11612         [BZ #19467]
11613         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
11614         index_Fast_Unaligned_Load flag for Excavator family CPUs.
11615
11616 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
11617
11618         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
11619
11620 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
11621
11622         * benchtests/Makefile (PYTHON): Define.
11623         (bench-func): Use $(PYTHON) to run python scripts.
11624         ($(objpfx)bench-%.c): Likewise.
11625
11626 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
11627
11628         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
11629         leading slash when `file_name' is "/".
11630
11631 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
11632
11633         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
11634         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
11635         Likewise.
11636         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
11637         Likewise.
11638         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
11639         Likewise.
11640         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
11641         enum constant and macro.
11642         (PTRACE_SETSIGMASK): Likewise.
11643         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11644         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
11645         (PTRACE_GETSIGMASK): Likewise.
11646         (PTRACE_SETSIGMASK): Likewise.
11647         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11648         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
11649         Likewise.
11650         (PTRACE_SETSIGMASK): Likewise.
11651         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11652         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
11653         (PTRACE_GETSIGMASK): Likewise.
11654         (PTRACE_SETSIGMASK): Likewise.
11655         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11656         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
11657         Likewise.
11658         (PTRACE_SETSIGMASK): Likewise.
11659         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11660         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
11661         Likewise.
11662         (PTRACE_SETSIGMASK): Likewise.
11663         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11664         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
11665         Likewise.
11666         (PTRACE_SETSIGMASK): Likewise.
11667         (PTRACE_SECCOMP_GET_FILTER): Likewise.
11668
11669 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
11670             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11671
11672         [BZ #19439]
11673         * math/bits/mathcalls.h
11674         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
11675         prototype.
11676         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
11677
11678 2016-01-11  Andreas Schwab  <schwab@suse.de>
11679
11680         [BZ #19253]
11681         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
11682         cache when TZDEFRULES was used.
11683         * time/tst-tzname.c: New file.
11684         * time/Makefile (test): Add tst-tzname.
11685         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
11686         * timezone/Makefile (test-zones): Add $(posixrules-file).
11687         ($(testdata)/$(posixrules-file)): New rule.
11688
11689 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         Fix doc quoting problems with Texinfo 5
11692         Without this change, in the info file output, Texinfo 5 quotes code
11693         in text with undirected single quotes 'like this' and generates
11694         code examples that with many PDF readers cannot be cut out of PDFs
11695         and pasted into code.
11696         * manual/libc.texinfo: Configure the libc manual like the GNU
11697         Emacs manual, by using @documentencoding and setting
11698         txicodequoteundirected and txicodequotebacktick.  This way,
11699         Texinfo 5 quotes code in text with directed single quotes ‘like
11700         this’ and produces examples that can be cut out of PDFs.  This
11701         change causes Texinfo 5 to generate info files that contain UTF-8
11702         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
11703         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
11704
11705 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11706
11707         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
11708         __libc_tabort, __libc_tend): New wrappers that enforce compiler
11709         barriers to their respective compiler built-ins.
11710         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
11711         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
11712         * sysdeps/powerpc/sysdep.h: Likewise.
11713         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
11714         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
11715         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
11716
11717 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
11718
11719         * scripts/config.guess: Revert previous shebang change.
11720         * scripts/config.sub: Likewise.
11721         * scripts/mkinstalldirs: Likewise.
11722
11723 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11724
11725         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
11726         PPC_FEATURE2_HAS_IEEE128.
11727         * sysdeps/powerpc/dl-procinfo.c:
11728         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
11729
11730 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
11731
11732         [BZ #19415]
11733         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
11734         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
11735         (_dl_lookup_address): Rewrite using function resolver trampoline.
11736         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
11737         two bits in address.
11738
11739 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11740
11741         * longlong.h: Change !__SHMEDIA__ to
11742         (!defined (__SHMEDIA__) || !__SHMEDIA__).
11743         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
11744
11745 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
11746             Joseph Myers  <joseph@codesourcery.com>
11747             Mark Shinwell  <shinwell@codesourcery.com>
11748             Andrew Stubbs  <ams@codesourcery.com>
11749             Rich Felker <dalias@libc.org>
11750
11751         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
11752
11753 2016-01-07  Richard Henderson  <rth@redhat.com>
11754
11755         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
11756
11757 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
11758
11759         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
11760         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
11761         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
11762         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
11763         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
11764
11765 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
11766             Joseph Myers  <joseph@codesourcery.com>
11767
11768         * timezone/private.h: Update from tzcode 2015g.
11769         * timezone/tzfile.h: Likewise.
11770         * timezone/tzselect.ksh: Likewise.
11771         * timezone/zdump.c: Likewise.
11772         * timezone/zic.c: Likewise.
11773         * timezone/ialloc.c: Remove file.
11774         * timezone/scheck.c: Likewise.
11775         * timezone/Makefile (extra-objs): Remove variable.
11776         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
11777         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
11778         -Wno-maybe-uninitialized.
11779         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
11780         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
11781         (CFLAGS-ialloc.c): Remove variable.
11782         (CFLAGS-scheck.c): Likewise.
11783         * timezone/README: Update list of files from tzcode.
11784
11785 2016-01-07  Khem Raj  <raj.khem@gmail.com>
11786
11787         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
11788         instead of __fxprintf when _LIBC is undefined.
11789
11790 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
11791
11792         * catgets/test-gencat.sh: Remove space after shebang.
11793         * conform/GlibcConform.pm: Likewise.
11794         * conform/check-header-lists.sh: Likewise.
11795         * conform/conformtest.pl: Likewise.
11796         * conform/linknamespace.pl: Likewise.
11797         * conform/list-header-symbols.pl: Likewise.
11798         * debug/catchsegv.sh: Likewise.
11799         * elf/genrtldtbl.awk: Likewise.
11800         * elf/tst-pathopt.sh: Likewise.
11801         * elf/tst-rtld-load-self.sh: Likewise.
11802         * grp/tst_fgetgrent.sh: Likewise.
11803         * iconvdata/gen-8bit-gap-1.sh: Likewise.
11804         * iconvdata/gen-8bit-gap.sh: Likewise.
11805         * iconvdata/gen-8bit.sh: Likewise.
11806         * iconvdata/run-iconv-test.sh: Likewise.
11807         * intl/tst-gettext.sh: Likewise.
11808         * intl/tst-gettext2.sh: Likewise.
11809         * intl/tst-gettext4.sh: Likewise.
11810         * intl/tst-gettext6.sh: Likewise.
11811         * intl/tst-translit.sh: Likewise.
11812         * io/ftwtest-sh: Likewise.
11813         * libio/test-freopen.sh: Likewise.
11814         * locale/gen-translit.pl: Likewise.
11815         * malloc/tst-mtrace.sh: Likewise.
11816         * manual/check-safety.sh: Likewise.
11817         * manual/libc-texinfo.sh: Likewise.
11818         * manual/tsort.awk: Likewise.
11819         * manual/xtract-typefun.awk: Likewise.
11820         * nptl/tst-cancel-wrappers.sh: Likewise.
11821         * nptl/tst-tls6.sh: Likewise.
11822         * posix/globtest.sh: Likewise.
11823         * posix/tst-getconf.sh: Likewise.
11824         * posix/wordexp-tst.sh: Likewise.
11825         * scripts/check-c++-types.sh: Likewise.
11826         * scripts/check-local-headers.sh: Likewise.
11827         * scripts/config.guess: Likewise.
11828         * scripts/config.sub: Likewise.
11829         * scripts/cpp: Likewise.
11830         * scripts/cross-test-ssh.sh: Likewise.
11831         * scripts/documented.sh: Likewise.
11832         * scripts/evaluate-test.sh: Likewise.
11833         * scripts/gen-libc-abis: Likewise.
11834         * scripts/gen-sorted.awk: Likewise.
11835         * scripts/list-fixed-bugs.py: Likewise.
11836         * scripts/merge-test-results.sh: Likewise.
11837         * scripts/mkinstalldirs: Likewise.
11838         * scripts/rellns-sh: Likewise.
11839         * scripts/test-installation.pl: Likewise.
11840         * scripts/update-copyrights: Likewise.
11841         * stdio-common/tst-printf.sh: Likewise.
11842         * stdio-common/tst-unbputc.sh: Likewise.
11843         * stdlib/tst-fmtmsg.sh: Likewise.
11844         * stdlib/tst-setcontext3.sh: Likewise.
11845         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
11846         * sysdeps/unix/make-syscalls.sh: Likewise.
11847
11848 2016-01-06  John David Anglin  <dave.anglin@bell.net>
11849
11850         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
11851         asm stw with atomic_exchange_rel.  Add explanatory comment.
11852         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
11853         Likewise.
11854
11855 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11856
11857         [BZ #19122]
11858         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
11859         * sysdeps/generic/dl-unistd.h: New file.
11860         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
11861
11862 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11863
11864          [BZ #19122]
11865          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
11866          * sysdeps/generic/dl-mman.h: New file.
11867          * sysdeps/mach/hurd/dl-mman.h: Likewise.
11868
11869 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
11870
11871         * manual/texinfo.tex: Update to version 2016-01-04.21 with
11872         trailing whitespace removed.
11873         * scripts/config.guess: Update to version 2016-01-01.
11874         * scripts/config.sub: Update to version 2016-01-01.
11875         * scripts/move-if-change: Update from gnulib.
11876
11877 2016-01-04  Anton Blanchard  <anton@samba.org>
11878
11879         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
11880         for array indices.
11881         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
11882
11883 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * NEWS: Update copyright dates.
11886         * catgets/gencat.c (print_version): Likewise.
11887         * csu/version.c (banner): Likewise.
11888         * debug/catchsegv.sh: Likewise.
11889         * debug/pcprofiledump.c (print_version): Likewise.
11890         * debug/xtrace.sh (do_version): Likewise.
11891         * elf/ldconfig.c (print_version): Likewise.
11892         * elf/ldd.bash.in: Likewise.
11893         * elf/pldd.c (print_version): Likewise.
11894         * elf/sotruss.sh: Likewise.
11895         * elf/sprof.c (print_version): Likewise.
11896         * iconv/iconv_prog.c (print_version): Likewise.
11897         * iconv/iconvconfig.c (print_version): Likewise.
11898         * locale/programs/locale.c (print_version): Likewise.
11899         * locale/programs/localedef.c (print_version): Likewise.
11900         * login/programs/pt_chown.c (print_version): Likewise.
11901         * malloc/memusage.sh (do_version): Likewise.
11902         * malloc/memusagestat.c (print_version): Likewise.
11903         * malloc/mtrace.pl: Likewise.
11904         * manual/libc.texinfo: Likewise.
11905         * nptl/version.c (banner): Likewise.
11906         * nscd/nscd.c (print_version): Likewise.
11907         * nss/getent.c (print_version): Likewise.
11908         * nss/makedb.c (print_version): Likewise.
11909         * posix/getconf.c (main): Likewise.
11910         * scripts/test-installation.pl: Likewise.
11911         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
11912
11913         * All files with FSF copyright notices: Update copyright dates
11914         using scripts/update-copyrights.
11915         * intl/plural.c: Regenerated.
11916         * locale/programs/charmap-kw.h: Likewise.
11917         * locale/programs/locfile-kw.h: Likewise.
11918
11919 2016-01-02  Helge Deller  <deller@gmx.de>
11920
11921         [BZ #19285]
11922         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
11923         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
11924         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
11925         (MADV_xxK_PAGES): Remove.
11926
11927 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
11928
11929         [BZ #15421]
11930         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
11931         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
11932         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
11933         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
11934
11935 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
11936
11937         [BZ #19408]
11938         * sysdeps/unix/sysv/linux/personality.c: New file.
11939         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
11940         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
11941         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
11942         (sysdep_routines): Add personality.
11943         (tests): Add tst-personality.
11944         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
11945         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
11946         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
11947         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
11948         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
11949         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
11950         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
11951         Likewise.
11952         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
11953         Likewise.
11954         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
11955         Likewise.
11956         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
11957         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
11958         Likewise.
11959
11960 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
11961
11962         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
11963         (PATH_ARM_SYSTYPE): Remove.
11964         (PATH_CPUINFO): Likewise.
11965         (IO_BASE_FOOTBRIDGE): Likewise.
11966         (IO_SHIFT_FOOTBRIDGE): Likewise.
11967         (struct platform): Likewise.
11968         (init_iosys): Remove compatibility code for 2.4 kernels.
11969         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
11970
11971 2015-12-29  Florian Weimer  <fweimer@redhat.com>
11972
11973         * malloc/tst-malloc-thread-fail.c: New file.
11974         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
11975         (tst-malloc-thread-fail): Link against libpthread.
11976
11977 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
11978
11979         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
11980         (get_parser): New function.
11981         (main): New function.
11982
11983 2015-12-29  Rob Wu  <rob@robwu.nl>
11984
11985         [BZ #19369]
11986         * resolv/res_init.c (__res_vinit): Reset defdname before use.
11987
11988 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
11989
11990         [BZ #19270]
11991         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
11992
11993 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
11994
11995         [BZ #15421]
11996         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
11997
11998 2015-12-23  Torvald Riegel  <triegel@redhat.com>
11999
12000         [BZ #13690]
12001         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
12002         after releasing it.
12003         (__lll_robust_unlock): Likewise.
12004         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12005         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
12006         (lll_robust_unlock): Likewise.
12007         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
12008         Prevent warnings in callers.
12009
12010 2015-12-23  Florian Weimer  <fweimer@redhat.com>
12011
12012         * malloc/arena.c (list_lock): Update comment.
12013
12014 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12015
12016         * sysdeps/powerpc/hwcapinfo.c: Export symbol
12017         __parse_hwcap_and_convert_at_platform to libc.a.
12018
12019 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12020
12021         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
12022         platform and feature support for POWER9.
12023         * sysdeps/powerpc/dl-procinfo.h: Likewise.
12024         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
12025         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
12026         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
12027         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
12028         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12029         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12030         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12031
12032 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12033
12034         Harmonize generic stdio-lock support with nptl
12035
12036         This fixes build when _IO_funlockfile is a macro, fixes build where
12037         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
12038         stack unwind.
12039
12040         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
12041         _IO_release_lock ): Use cleanup attribute on new
12042         _IO_acquire_lock_file variable instead of assuming that
12043         _IO_release_lock will be called.
12044         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
12045         _IO_acquire_lock_needs_exceptions_enabled.
12046         (_IO_acquire_lock_clear_flags2): New macro.
12047
12048 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12049
12050         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
12051
12052 2015-12-21  Florian Weimer  <fweimer@redhat.com>
12053
12054         [BZ #19182]
12055         * malloc/arena.c (list_lock): Document lock ordering requirements.
12056         (free_list_lock): New lock.
12057         (ptmalloc_lock_all): Comment on free_list_lock.
12058         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
12059         (detach_arena): Update comment.  free_list_lock is now needed.
12060         (_int_new_arena): Use free_list_lock around detach_arena call.
12061         Acquire arena lock after list_lock.  Add comment, including FIXME
12062         about incorrect synchronization.
12063         (get_free_list): Switch to free_list_lock.
12064         (reused_arena): Acquire free_list_lock around detach_arena call
12065         and attached threads counter update.  Add two FIXMEs about
12066         incorrect synchronization.
12067         (arena_thread_freeres): Switch to free_list_lock.
12068         * malloc/malloc.c (struct malloc_state): Update comments to
12069         mention free_list_lock.
12070
12071 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
12072
12073         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
12074         Remove functions.
12075         (sloww, sloww1): Accept argument to offset quadrant.
12076         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
12077         quadrant.
12078         (__sin, __cos): Consolidate common code into new functions.
12079         (reduce_sincos_1, do_sincos_1): New functions.
12080         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12081
12082         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
12083         code to new functions.
12084         (reduce_sincos_2, do_sincos_2): New functions.
12085         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
12086
12087         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
12088         common code for sincos.
12089         (__cos) [!IN_SINCOS]: Likewise.
12090         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
12091         New function.
12092         (__sincos): Use it.
12093
12094 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
12095
12096         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
12097         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
12098         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
12099
12100 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12101
12102         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
12103         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
12104         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
12105         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
12106         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12107         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
12108         index_Prefer_No_VZEROUPPER): New feature.
12109         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
12110         Prefer_No_VZEROUPPER for Knights Landing.
12111
12112 015-12-18  Torvald Riegel  <triegel@redhat.com>
12113
12114         * math/atest-exp2.c (mp_exp_m1): Remove.
12115
12116 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12117
12118         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
12119         syscalls.
12120         (__SYSCALL0): New macro.
12121         (__SYSCALL1): Likewise.
12122         (__SYSCALL2): Likewise.
12123         (__SYSCALL3): Likewise.
12124         (__SYSCALL4): Likewise.
12125         (__SYSCALL5): Likewise.
12126         (__SYSCALL6): Likewise.
12127         (__SYSCALL_CONCAT_X): Likewise.
12128         (__SYSCALL_CONCAT): Likewise.
12129         (__SYSCALL_DIST): Likewise.
12130         (__SYSCALL_CALL): Likewise.
12131
12132 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
12133
12134         [BZ #19363]
12135         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
12136
12137 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12138
12139         [BZ #19375]
12140         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
12141         negative subnormals.
12142
12143 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
12144
12145         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
12146         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
12147         (INTERNAL_SYSCALL_NCS): Use it.
12148         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
12149
12150 2015-12-16  Florian Weimer  <fweimer@redhat.com>
12151
12152         [BZ #19243]
12153         * malloc/arena.c (get_free_list): Remove assert and adjust
12154         reference count handling.  Add comment about reused_arena
12155         interaction.
12156         (reused_arena): Add comments abount get_free_list interaction.
12157         * malloc/tst-malloc-thread-exit.c: New file.
12158         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
12159         (tst-malloc-thread-exit): Link against libpthread.
12160
12161 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12162
12163         [BZ #19367]
12164         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
12165         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
12166         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
12167         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
12168         (index_Prefer_MAP_32BIT_EXEC): Likewise.
12169
12170 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
12171
12172         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
12173         Silvermont optimizations for Knights Landing.
12174
12175 2015-12-15  Andreas Schwab  <schwab@suse.de>
12176
12177         [BZ #17197]
12178         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
12179         immediately after emitting SI.
12180         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
12181         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
12182         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
12183         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
12184         * iconvdata/bug-iconv10.c: New file.
12185         * iconvdata/Makefile (tests): Add bug-iconv10.
12186         ($(objpfx)bug-iconv10.out): New rule.
12187
12188 2015-12-15  Florian Weimer  <fweimer@redhat.com>
12189
12190         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
12191         aliasing violation.
12192
12193 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
12194
12195         [BZ #18472]
12196         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
12197         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
12198         conditionals for them.
12199         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
12200         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
12201         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
12202         sys/kdaemon.h.
12203         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
12204         compat-only syscall, obsoleted in glibc 2.23.
12205         (create_module): Likewise.
12206         (get_kernel_syms): Likewise.
12207         (query_module): Likewise.
12208         (uselib): Likewise.
12209         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
12210
12211 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
12212
12213         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
12214         <linux/version.h>.
12215         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
12216         conditional code.
12217         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
12218         and ioshift_name initialization.
12219
12220 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12221
12222         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12223         Fix indentation.
12224
12225 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12226
12227         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
12228
12229 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
12230
12231         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
12232
12233 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12234             Jakub Wilk  <jwilk@debian.org>
12235
12236         [BZ #19347]
12237         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
12238         to change the group of the device to the tty group.
12239
12240 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
12241
12242         Split large string section; add truncation advice
12243         * manual/examples/strncat.c: Remove.
12244         This example was misleading, as the code would have undefined
12245         behavior if "hello" was longer than SIZE.  Anyway, the manual
12246         shouldn't encourage strncpy+strncat for this sort of thing.
12247         * manual/string.texi (Copying Strings and Arrays): Split into
12248         three sections Copying Strings and Arrays, Concatenating Strings,
12249         and Truncating Strings, as this section was way too long.  All
12250         cross-referenced changed.  Add advice about string-truncation
12251         functions.  Remove misleading strncat example.
12252
12253 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
12254
12255         * manual/nss.texi (NSS Modules Interface): Document
12256         NSS_STATUS_NOTFOUND and SUCCESS.
12257
12258 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12259
12260         [BZ 18568]
12261         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
12262         201505L, for Unicode 8.
12263
12264 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
12265
12266         * locale/C-translit.h: Regenerate.
12267
12268 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
12269
12270         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
12271         and U+0153.
12272
12273 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
12274
12275         [BZ #19351]
12276         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
12277         expanding log(1+z), compare z rather than its square with epsilon
12278         to determine when to avoid evaluating the expansion.
12279
12280         [BZ #19350]
12281         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
12282         Increase overflow threshold.
12283
12284         [BZ #19349]
12285         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
12286         when small.
12287
12288         * sysdeps/unix/sysv/linux/i386/kernel-features.h
12289         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12290         New macro.
12291         [__LINUX_KERNEL_VERSION >= 0x040300]
12292         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12293         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12294         Likewise.
12295         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12296         Likewise.
12297         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12298         Likewise.
12299         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12300         Likewise.
12301         [__LINUX_KERNEL_VERSION >= 0x040300]
12302         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12303         [__LINUX_KERNEL_VERSION >= 0x040300]
12304         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12305         [__LINUX_KERNEL_VERSION >= 0x040300]
12306         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12307         [__LINUX_KERNEL_VERSION >= 0x040300]
12308         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12309         [__LINUX_KERNEL_VERSION >= 0x040300]
12310         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12311         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12312         Likewise.
12313         [__LINUX_KERNEL_VERSION >= 0x040300]
12314         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12315         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12316         Likewise.
12317         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12318         Likewise.
12319         [__LINUX_KERNEL_VERSION >= 0x040300]
12320         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12321         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12322         Likewise.
12323         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12324         Likewise.
12325         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
12326         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
12327         Likewise.
12328         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
12329         Likewise.
12330         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
12331         Likewise.
12332         [__LINUX_KERNEL_VERSION >= 0x040300]
12333         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12334         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
12335         Likewise.
12336         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
12337         Likewise.
12338         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
12339         Likewise.
12340         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
12341         Likewise.
12342         [__LINUX_KERNEL_VERSION >= 0x040300]
12343         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
12344         [__LINUX_KERNEL_VERSION >= 0x040300]
12345         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12346         [__LINUX_KERNEL_VERSION >= 0x040300]
12347         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12348         [__LINUX_KERNEL_VERSION >= 0x040300]
12349         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12350         [__LINUX_KERNEL_VERSION >= 0x040300]
12351         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12352         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
12353         Likewise.
12354         [__LINUX_KERNEL_VERSION >= 0x040300]
12355         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
12356         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
12357         Likewise.
12358         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
12359         Likewise.
12360         [__LINUX_KERNEL_VERSION >= 0x040300]
12361         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
12362         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
12363         Likewise.
12364         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
12365         Likewise.
12366         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12367         (__ASSUME_SOCKET_SYSCALL): Likewise.
12368         (__ASSUME_BIND_SYSCALL): Likewise.
12369         (__ASSUME_CONNECT_SYSCALL): Likewise.
12370         (__ASSUME_LISTEN_SYSCALL): Likewise.
12371         (__ASSUME_ACCEPT_SYSCALL): Likewise.
12372         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12373         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12374         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12375         (__ASSUME_SEND_SYSCALL): Likewise.
12376         (__ASSUME_SENDTO_SYSCALL): Likewise.
12377         (__ASSUME_RECV_SYSCALL): Likewise.
12378         (__ASSUME_RECVFROM_SYSCALL): Likewise.
12379         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
12380         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12381         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12382         (__ASSUME_SENDMSG_SYSCALL): Likewise.
12383         (__ASSUME_RECVMSG_SYSCALL): Likewise.
12384         * sysdeps/unix/sysv/linux/sh/kernel-features.h
12385         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
12386         Likewise.
12387         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
12388         Likewise.
12389         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
12390         Likewise.
12391         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
12392         Likewise.
12393         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
12394         Likewise.
12395         [__LINUX_KERNEL_VERSION >= 0x020625]
12396         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
12397         [__LINUX_KERNEL_VERSION >= 0x020625]
12398         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
12399         [__LINUX_KERNEL_VERSION >= 0x020625]
12400         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
12401         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
12402         Likewise.
12403         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
12404         Likewise.
12405         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
12406         Likewise.
12407         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
12408         Likewise.
12409         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
12410         Likewise.
12411         [__LINUX_KERNEL_VERSION >= 0x020625]
12412         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
12413         [__LINUX_KERNEL_VERSION >= 0x020625]
12414         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
12415         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
12416         Likewise.
12417         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
12418         Likewise.
12419
12420 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12421
12422         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
12423         record the current if the current ABI and CPU support the FP64
12424         extension.
12425         (has-modd-spreg): Define to record the current if the current ABI and
12426         CPU support 32-bit floating point values in odd FPU registers.
12427         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12428         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
12429         $(has-modd-spreg) equals yes.
12430         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
12431         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
12432         $(has-modd-spreg) equal yes.
12433
12434 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
12435
12436         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
12437         basename.
12438
12439 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
12440
12441         * benchtests/Makefile (bench-math): Move ffs and ffsll...
12442         (bench-string): ... here.
12443         (bench): Add bench-string.
12444         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
12445         to *-benchset to reflect what they are.
12446         (benchset): Adjust.
12447
12448         * benchtests/sincos-inputs: Add inputs from sin-inputs and
12449         cos-inputs.
12450
12451 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
12452
12453         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
12454         __attribute__ ((__simd__)) for vector math function declarations.
12455
12456 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12457
12458         Fix typo in strncat, wcsncat manual entries
12459         * manual/string.texi (Copying and Concatenation): Fix typos in
12460         sample implementations of strncat and wcsncat, by having them use
12461         the old value of the destination length, not the new one.
12462
12463 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
12464
12465         [BZ #16961]
12466         [BZ #16962]
12467         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
12468         string on the stack for strtod.
12469         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
12470         a string on the stack for strtof.
12471         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
12472         constructing a string on the stack for strtold.
12473         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
12474         __strtold_nan to GLIBC_PRIVATE.
12475         * math/test-nan-overflow.c: New file.
12476         * math/test-nan-payload.c: Likewise.
12477         * math/Makefile (tests): Add test-nan-overflow and
12478         test-nan-payload.
12479
12480 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12481
12482         Consistency about byte vs character in string.texi
12483         * manual/string.texi (String and Array Utilities):
12484         Distinguish more carefully among bytes, multibyte characters,
12485         and wide characters.  Use "byte" when talking about C 'char',
12486         to distinguish it more clearly from multibyte characters.
12487         Say "wide character" or "multibyte character" instead of
12488         "character", when a wide or multibyte character is intended.
12489         Similarly for "multibyte string" versus "string".
12490         Define these terms more carefully.
12491
12492 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
12493
12494         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
12495         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
12496         Likewise.
12497         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12498         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12499         * sysdeps/sh/math_private.h: New file.
12500         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
12501         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
12502         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
12503         long double function name.
12504         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12506         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12507         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12508         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12509         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12510         Remove __finitel, __isinfl, and __isnanl.
12511         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12512         Likewise.
12513         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12514         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12515         Remove __finitel.
12516         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12517         Likewise.
12518         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12519
12520 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
12521
12522         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
12523         installed libmvec_nonshared.a.
12524
12525 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12526
12527         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
12528         (sysdep_routines): Likewise.
12529         (sysdep-rtld-routines): Likewise.
12530         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
12531         [$(subdir) = nptl](tests-static): test-get_hwcap-static
12532         * sysdeps/powerpc/Versions: Added new
12533         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
12534         * sysdeps/powerpc/hwcapinfo.c: New file.
12535         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
12536         and parse hwcap, hwcap2 and platform number information.
12537         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
12538         to store HWCAP+HWCAP2 and platform number.
12539         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
12540         for HWCAP+HWCAP2 and platform number in the TCB.
12541         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
12542         the HWCAP, HWCAP2 and platform number in the TCB.
12543         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
12544         (TLS_INIT_TP): Included calls to add the hwcap and
12545         at_platform values in the TCB in TP initialization.
12546         (TLS_DEFINE_INIT_TP): Likewise.
12547         (THREAD_GET_HWCAP): New macro.
12548         (THREAD_SET_HWCAP): Likewise.
12549         (THREAD_GET_AT_PLATFORM): Likewise.
12550         (THREAD_SET_AT_PLATFORM): Likewise.
12551         * sysdeps/powerpc/powerpc32/dl-machine.h:
12552         (dl_platform_init): New function that calls
12553         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
12554         powerpc32.
12555         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
12556         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
12557         this functionality, static linking case.
12558         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
12559         linking case.
12560         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
12561         __parse_hwcap_and_convert_at_platform for the static linking case.
12562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
12563         Included the new __parse_hwcap_and_convert_at_platform symbol in the
12564         ABI list for GLIBC 2.23.
12565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
12566         Likewise.
12567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
12568         Likewise.
12569
12570 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
12571
12572         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
12573         * configure: Regenerate.
12574         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
12575         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
12576
12577 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
12578
12579         * iconvdata/ibm930.c: Add comment explaining encoding uses.
12580         * iconvdata/ibm933.c: Likewise.
12581         * iconvdata/ibm935.c: Likewise.
12582         * iconvdata/ibm937.c: Likewise.
12583         * iconvdata/ibm939.c: Likewise.
12584
12585 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12586
12587         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
12588         pthread_join.
12589         * nptl/tst-cancel21.c (tf): Likewise.
12590
12591 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
12592
12593         [BZ #19313]
12594         * bits/typesizes.h (__CPU_MASK_TYPE): New.
12595         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12596         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
12597         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
12598         Likewise.
12599         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
12600         Likewise.
12601         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
12602         Likewise.
12603         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
12604         Likewise.
12605         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
12606         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
12607         unsigned long int with __CPU_MASK_TYPE.
12608
12609 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12610
12611         * sysdeps/aarch64/libm-test-ulps: Regenerated.
12612
12613 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
12614
12615         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
12616         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
12617         t512.x.
12618         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
12619
12620 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
12621
12622         [BZ #19214]
12623         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
12624         argument to return extended model.  Update family and model
12625         with extended family and model when family == 0x0f.
12626         (init_cpu_features): Updated.
12627
12628 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12629
12630         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
12631         signed off_t, so 32bit bigger than 2GiB values are fine actually.
12632
12633         * sysdeps/mach/hurd/mmap64.c: New file.
12634
12635 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
12636
12637         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
12638         rights for its main user thread in NEWTASK.
12639
12640 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
12641
12642         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
12643         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
12644
12645 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
12646
12647         [BZ #14259]
12648         * Makeconfig: Rename localedir to complocaledir.
12649         Rename inst_localedir to inst_complocaledir.
12650         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
12651         * config.make.in: Use complocaledir and libc_cv_complocaledir.
12652         * configure.ac: Use libc_cv_complocaledir.
12653         * configure: Regenerate.
12654         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
12655         -DCOMPLOCALEDIR.
12656         * locale/findlocale.c: Use COMPLOCALEDIR.
12657         * locale/loadarchive.c: Likewise.
12658         * locale/programs/locale.c: Likewise.
12659         * locale/programs/localedef.c: Likewise.
12660         * locale/programs/locarchive.c: Likewise.
12661         * localedata/Makefile: Use inst_complocaledir.
12662         * sysdeps/gnu/configure: Regenerate.
12663         * sysdeps/hppa/configure: Regenerate.
12664         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
12665         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
12666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
12667         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
12668         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
12669         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
12670         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
12671
12672 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
12673
12674         [BZ #19058]
12675         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
12676         AS_NEEDED.
12677         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
12678         workaround.
12679         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
12680         libmvec-static-only-routines): Added new file.
12681         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
12682
12683 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12684
12685         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
12686         of interrupted RPC instead of restoring it.
12687
12688         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
12689         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
12690         libc_hidden_def.
12691         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
12692         into initialized data instead of common. Define rtld_hidden_data_def.
12693         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
12694         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
12695         libc_hidden_def.
12696         (if_freenameindex): Add libc_hidden_weak.
12697         (if_nameindex): Add libc_hidden_weak.
12698         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
12699         __open64.
12700         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
12701         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
12702         * sysdeps/mach/nanosleep.c: Include <time.h>
12703         (__nanosleep): Rename to __libc_nanosleep.
12704         (__nanosleep): Add weak_alias.
12705         (nanosleep): Update alias.
12706
12707 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
12708
12709         * stdlib/strtod_nan.c: New file.
12710         * stdlib/strtod_nan_double.h: Likewise.
12711         * stdlib/strtod_nan_float.h: Likewise.
12712         * stdlib/strtod_nan_main.c: Likewise.
12713         * stdlib/strtod_nan_narrow.h: Likewise.
12714         * stdlib/strtod_nan_wide.h: Likewise.
12715         * stdlib/strtof_nan.c: Likewise.
12716         * stdlib/strtold_nan.c: Likewise.
12717         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
12718         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
12719         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
12720         * wcsmbs/wcstod_nan.c: Likewise.
12721         * wcsmbs/wcstof_nan.c: Likewise.
12722         * wcsmbs/wcstold_nan.c: Likewise.
12723         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
12724         strtold_nan.
12725         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
12726         wcstof_nan.
12727         * include/stdlib.h (__strtof_nan): Declare and use
12728         libc_hidden_proto.
12729         (__strtod_nan): Likewise.
12730         (__strtold_nan): Likewise.
12731         (__wcstof_nan): Likewise.
12732         (__wcstod_nan): Likewise.
12733         (__wcstold_nan): Likewise.
12734         * include/wchar.h (____wcstoull_l_internal): Declare.
12735         * stdlib/strtod_l.c: Do not include <ieee754.h>.
12736         (____strtoull_l_internal): Remove declaration.
12737         (STRTOF_NAN): Define macro.
12738         (SET_MANTISSA): Remove macro.
12739         (STRTOULL): Likewise.
12740         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
12741         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
12742         (STRTOF_NAN): Define macro.
12743         (SET_MANTISSA): Remove macro.
12744         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
12745         (SET_MANTISSA): Remove macro.
12746         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
12747         macro.
12748         (SET_MANTISSA): Remove macro.
12749         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
12750         macro.
12751         (SET_MANTISSA): Remove macro.
12752         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
12753         (SET_MANTISSA): Remove macro.
12754         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
12755         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
12756         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
12757
12758         [BZ #19266]
12759         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
12760         upper case and lower case letters inside NAN(), not using TOLOWER.
12761         * stdlib/tst-strtod-nan-locale-main.c: New file.
12762         * stdlib/tst-strtod-nan-locale.c: Likewise.
12763         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
12764         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
12765         Depend on $(gen-locales).
12766         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
12767         * wcsmbs/tst-wcstod-nan-locale.c: New file.
12768         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
12769         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
12770         Depend on $(gen-locales).
12771         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
12772
12773 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
12774
12775         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
12776
12777         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
12778         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
12779         __finitel, __isinfl, and __isnanl.
12780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12781         Likewise.
12782         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12783         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
12784         __finitel.
12785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12786         Likewise.
12787         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12788
12789 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12790
12791         * malloc/memusage.c (me): Remove redundant getenv call.
12792
12793 2015-10-24  Florian Weimer  <fweimer@redhat.com>
12794
12795         [BZ #19143]
12796         [BZ #19164]
12797         * nptl/check-cpuset.h: Remove.
12798         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
12799         Remove CPU set size check.
12800         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
12801         Likewise.
12802         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
12803         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
12804         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
12805         (__pthread_setaffinity_new): Remove CPU set size check.
12806         * sysdeps/unix/sysv/linux/sched_setaffinity.c
12807         (__kernel_cpumask_size): Remove.
12808         (__sched_setaffinity_new): Remove CPU set size check.
12809         * manual/threads.texi (Default Thread Attributes): Remove stale
12810         reference to check_cpuset_attr, determine_cpumask_size in comment.
12811         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
12812         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
12813         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
12814         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
12815         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
12816         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
12817         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
12818         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
12819         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
12820         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
12821         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
12822         skeleton test file.
12823         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
12824         tst-affinity-pid.
12825
12826 2015-11-24  Florian Weimer  <fweimer@redhat.com>
12827
12828         * scripts/update-abilist.sh: New file.
12829         * Makefile (+subdir_targets): Add subdir_update-all-abi.
12830         * Makerules (update-all-abi-%, update-all-abi)
12831         (subdir_update-all-abi): New targets.
12832         * elf/Makefile (update-all-abi): New target.
12833
12834 2015-11-24  Florian Weimer  <fweimer@redhat.com>
12835
12836         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
12837         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
12838         (__libc_lock_define_initialized): Use it.
12839         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
12840         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
12841         * malloc/malloc.c (main_arena): Likewise.
12842         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
12843         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
12844
12845 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
12846
12847         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12848         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
12849         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
12850         (PTRACE_O_MASK): Update value.
12851         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
12852         New value in enum __ptrace_setoptions.
12853         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
12854         (PTRACE_O_MASK): Update value.
12855         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12856         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
12857         (PTRACE_O_MASK): Update value.
12858         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12859         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
12860         (PTRACE_O_MASK): Update value.
12861         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12862         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
12863         (PTRACE_O_MASK): Update value.
12864         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
12865         New value in enum __ptrace_setoptions.
12866         (PTRACE_O_MASK): Update value.
12867         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
12868         New value in enum __ptrace_setoptions.
12869         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
12870         (PTRACE_O_MASK): Update value.
12871
12872         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
12873         New macro.
12874         (PACKET_AUXDATA): Likewise.
12875         (PACKET_ORIGDEV): Likewise.
12876         (PACKET_VERSION): Likewise.
12877         (PACKET_HDRLEN): Likewise.
12878         (PACKET_RESERVE): Likewise.
12879         (PACKET_TX_RING): Likewise.
12880         (PACKET_LOSS): Likewise.
12881         (PACKET_VNET_HDR): Likewise.
12882         (PACKET_TX_TIMESTAMP): Likewise.
12883         (PACKET_TIMESTAMP): Likewise.
12884         (PACKET_FANOUT): Likewise.
12885         (PACKET_TX_HAS_OFF): Likewise.
12886         (PACKET_QDISC_BYPASS): Likewise.
12887         (PACKET_ROLLOVER_STATS): Likewise.
12888         (PACKET_FANOUT_DATA): Likewise.
12889         (PACKET_MR_UNICAST): Likewise.
12890
12891         [BZ #19242]
12892         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
12893         (TOUPPER): Likewise.
12894         * stdlib/tst-strtol-locale-main.c: New file.
12895         * stdlib/tst-strtol-locale.c: Likewise.
12896         * stdlib/Makefile (tests): Add tst-strtol-locale.
12897         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
12898         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
12899         Depend on $(gen-locales).
12900         * wcsmbs/tst-wcstol-locale.c: New file.
12901         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
12902         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
12903         tr_TR.ISO-8859-9.
12904         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
12905         Depend on $(gen-locales).
12906
12907 2015-11-20  Roland McGrath  <roland@hack.frob.com>
12908
12909         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
12910         __glibc_likely instead of __builtin_expect.  After falling back to
12911         dyncode_create in a non-ET_DYN case, use the allocate_code_data
12912         system interface to register the code pages as occupied.
12913
12914 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
12915
12916         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12917         [!ARM_MATH_PRIVATE_H].
12918         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
12919         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12920         [!HPPA_MATH_PRIVATE_H].
12921         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
12922         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
12923         to [!I386_MATH_PRIVATE_H].
12924         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
12925         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
12926         Change guard to [!M68K_MATH_PRIVATE_H].
12927         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
12928         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
12929         guard to [!MICROBLAZE_MATH_PRIVATE_H].
12930         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
12931         macro.
12932         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12933         [!MIPS_MATH_PRIVATE_H].
12934         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
12935         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12936         [!NIO2_MATH_PRIVATE_H].
12937         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
12938         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
12939         [!TILE_MATH_PRIVATE_H].
12940         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
12941
12942         [BZ #15421]
12943         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
12944         initialize with 0 and define as weak alias of __signgam.
12945         * include/math.h [!_ISOMAC] (__signgam): Declare.
12946         * math/Makefile (libm-calls): Add w_lgamma_compat.
12947         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
12948         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
12949         test-signgam-ullong-init.
12950         (tests-static): Add test-signgam-uchar-static,
12951         test-signgam-uchar-init-static, test-signgam-uint-static,
12952         test-signgam-uint-init-static, test-signgam-ullong-static and
12953         test-signgam-ullong-init-static.
12954         (CFLAGS-test-signgam-uchar.c): New variable.
12955         (CFLAGS-test-signgam-uchar-init.c): Likewise.
12956         (CFLAGS-test-signgam-uchar-static.c): Likewise.
12957         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
12958         (CFLAGS-test-signgam-uint.c): Likewise.
12959         (CFLAGS-test-signgam-uint-init.c): Likewise.
12960         (CFLAGS-test-signgam-uint-static.c): Likewise.
12961         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
12962         (CFLAGS-test-signgam-ullong.c): Likewise.
12963         (CFLAGS-test-signgam-ullong-init.c): Likewise.
12964         (CFLAGS-test-signgam-ullong-static.c): Likewise.
12965         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
12966         * math/Versions (libm): Add GLIBC_2.23.
12967         * math/lgamma-compat.h: New file.
12968         * math/test-signgam-main.c: Likewise.
12969         * math/test-signgam-uchar-init-static.c: Likewise.
12970         * math/test-signgam-uchar-init.c: Likewise.
12971         * math/test-signgam-uchar-static.c: Likewise.
12972         * math/test-signgam-uchar.c: Likewise.
12973         * math/test-signgam-uint-init-static.c: Likewise.
12974         * math/test-signgam-uint-init.c: Likewise.
12975         * math/test-signgam-uint-static.c: Likewise.
12976         * math/test-signgam-uint.c: Likewise.
12977         * math/test-signgam-ullong-init-static.c: Likewise.
12978         * math/test-signgam-ullong-init.c: Likewise.
12979         * math/test-signgam-ullong-static.c: Likewise.
12980         * math/test-signgam-ullong.c: Likewise.
12981         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
12982         wrapper of w_lgamma_main.c.
12983         * math/w_lgamma_compat.c: New file.
12984         * math/w_lgamma_compatf.c: Likewise.
12985         * math/w_lgamma_compatl.c: Likewise.
12986         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
12987         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
12988         defining compatibility symbols.
12989         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
12990         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
12991         wrapper of w_lgammaf_main.c.
12992         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
12993         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
12994         defining compatibility symbols.
12995         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
12996         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
12997         wrapper of w_lgammal_main.c.
12998         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
12999         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
13000         defining compatibility symbols.
13001         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
13002         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
13003         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
13004         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
13005         <lgamma-compat.h>.
13006         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
13007         (__ieee754_gamma): Define as alias.
13008         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
13009         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
13010         <lgamma-compat.h>.
13011         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
13012         (__ieee754_gammaf): Define as alias.
13013         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
13014         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
13015         <lgamma-compat.h>.
13016         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
13017         (__ieee754_gammal): Define as alias.
13018         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
13019         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
13020         <math/w_lgamma_compat.c>.
13021         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
13022         Define as alias of __lgamma_compat and use in defining lgammal.
13023         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
13024         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
13025         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
13026         (USE_AS_COMPAT): New macro.
13027         (LGAMMA_OLD_VER): Undefine and redefine.
13028         (lgammal): Do not define here.
13029         (gammal): Only define here if [GAMMA_ALIAS].
13030         * conform/linknamespace.pl (@whitelist): Remove signgam.
13031         * sysdeps/nacl/libm.abilist: Update.
13032         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13033         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13034         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13035         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13036         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13037         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13038         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13039         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13040         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13041         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13042         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13043         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13045         Likewise.
13046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13047         Likewise.
13048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13049         Likewise.
13050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13051         Likewise.
13052         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13053         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13054         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13055         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13056         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13057         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13058         Likewise.
13059         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13060         Likewise.
13061         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13062         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13063         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13064
13065 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13066
13067         [BZ #16364]
13068         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
13069         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
13070
13071 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13072
13073         * sysdeps/s390/fpu/bits/mathinline.h:
13074         Use __asm__ [__volatile__] instead of asm [volatile].
13075         * sysdeps/s390/abort-instr.h: Likewise.
13076         * sysdeps/s390/atomic-machine.h: Likewise.
13077         * sysdeps/s390/bits/string.h: Likewise.
13078         * sysdeps/s390/dl-tls.h: Likewise.
13079         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
13080         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
13081         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
13082         * sysdeps/s390/fpu/fesetround.c: Likewise.
13083         * sysdeps/s390/fpu/fpu_control.h: Likewise.
13084         * sysdeps/s390/fpu/s_fma.c: Likewise.
13085         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
13086         * sysdeps/s390/memusage.h: Likewise.
13087         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
13088         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
13089         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
13090         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
13091         * sysdeps/s390/nptl/tls.h: Likewise.
13092         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
13093         * sysdeps/s390/s390-32/backtrace.c: Likewise.
13094         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13095         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
13096         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13097         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
13098         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
13099         * sysdeps/s390/s390-64/backtrace.c: Likewise.
13100         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13101         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
13102         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
13103         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13104         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
13105         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
13106         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13107         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13108         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
13109         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
13110         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
13111         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
13112         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
13113         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
13114         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
13115
13116 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13117             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13118
13119         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
13120         Add lwarx hint, and use macro for acquire instruction.
13121         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
13122         Likewise.
13123         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
13124         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
13125         update to use new atomic macros.
13126
13127 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13128
13129         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13130         (__lll_trylock_elision): Fix setting of adapt_count.
13131         * sysdeps/unix/sysv/linux/powerpc/htm.h
13132         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
13133         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
13134         (_ABORT_SYSCALL): Renumber, and clarify definition.
13135         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
13136
13137 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13138
13139         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
13140         after system headers to prevent MIN/MAX redefinition.  Define
13141         HAVE_ALLOCA to preserve builtin alloca usage.
13142
13143 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
13144
13145         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
13146         static and don't set or restore rounding.
13147         (__cos)[IN_SINCOS]: Likewise.
13148         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
13149         (__sincos): Set and restore rounding mode.  Remove check for infinite
13150         or NaN input.
13151
13152         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
13153
13154         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
13155         as used.
13156
13157 2015-11-16  Florian Weimer  <fweimer@redhat.com>
13158
13159         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
13160
13161 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13162
13163         * config.make.in (have-glob-dat-reloc): New.
13164         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
13165         target supports GLOB_DAT relocaton. AC_SUBST.
13166         * configure: Regenerated.
13167         * elf/Makefile (tests): Add tst-prelink.
13168         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13169         (tst-prelink-ENV): New.
13170         ($(objpfx)tst-prelink-conflict.out): Likewise.
13171         ($(objpfx)tst-prelink-cmp.out): Likewise.
13172         * sysdeps/x86/tst-prelink.c: Moved to ...
13173         * elf/tst-prelink.c: Here.
13174         * sysdeps/x86/tst-prelink.exp: Moved to ...
13175         * elf/tst-prelink.exp: Here.
13176         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
13177         (tst-prelink-ENV): Removed.
13178         ($(objpfx)tst-prelink-conflict.out): Likewise.
13179         ($(objpfx)tst-prelink-cmp.out): Likewise.
13180         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
13181
13182 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
13183
13184         [BZ #14551]
13185         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
13186         (__mpn_construct_long_double): If high part overflows to infinity,
13187         set errno and recompute overflowed result of the correct sign.
13188         * sysdeps/ieee754/ldbl-128ibm/Makefile
13189         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
13190         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
13191         $(libm).
13192         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
13193
13194 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
13195
13196         [BZ #15479]
13197         [BZ #19238]
13198         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
13199         floating-point state after first operation on input.  Restore full
13200         state rather than just rounding mode.
13201         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
13202         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
13203         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
13204
13205         [BZ #19235]
13206         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
13207         add 0.5 to integer arguments.
13208         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
13209         Likewise.
13210         (.LC2): New object.
13211
13212 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
13213
13214         * scripts/pylintrc (reports): Set to no.
13215
13216 2015-11-10  Roland McGrath  <roland@hack.frob.com>
13217
13218         * elf/dl-load.c (open_verify): Take new argument FD.
13219         Skip __open call if passed FD is not -1.
13220         (_dl_map_object, open_path): Update callers.
13221         * elf/dl-sysdep-open.h: New file.
13222         * elf/dl-load.c: Include it.
13223         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
13224         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
13225         * sysdeps/nacl/dl-sysdep-open.h: New file.
13226         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
13227         from libc to rtld.
13228
13229 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13230
13231         [BZ #19228]
13232         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
13233         and restore full floating-point state.
13234         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
13235         Likewise.
13236         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
13237         Likewise.
13238         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
13239         Likewise.
13240         * math/test-nearbyint-except-2.c: New file.
13241         * math/Makefile (tests): Add test-nearbyint-except-2.
13242
13243 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
13244
13245         [BZ #19178]
13246         * sysdeps/x86/Makefile (tests): Add tst-prelink.
13247         (tst-prelink-ENV): New.
13248         ($(objpfx)tst-prelink-conflict.out): Likewise.
13249         ($(objpfx)tst-prelink-cmp.out): Likewise.
13250         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
13251         * sysdeps/x86/tst-prelink.c: New file.
13252         * sysdeps/x86/tst-prelink.exp: Likewise.
13253
13254 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
13255
13256         * math/auto-libm-test-in: Add another test of pow.
13257         * math/auto-libm-test-out: Regenerated.
13258         * math/libm-test.inc (pow_test_data): Add another test.
13259
13260 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13261
13262         [BZ #19219]
13263         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
13264         weak_alias to nearbyintl.
13265
13266 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13267
13268         * sysdeps/aarch64/bits/string.h: New file.
13269         (_STRING_ARCH_unaligned): Define.
13270
13271 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
13272
13273         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
13274         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
13275         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
13276         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
13277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
13278
13279 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
13280
13281         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
13282         for original name of the DSO.  Add it to the name list of the DSO
13283         if it is actually given.
13284         (_dl_map_object): Keep track of whether an audit module rewrote
13285         the file name.  If yes, pass the original name to
13286         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
13287         debugging is enabled, log the change of the file name.
13288         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
13289         _dl_map_object_from_fd.
13290         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
13291         * elf/tst-audit11.c: New file
13292         * elf/tst-auditmod11.c: New file.
13293         * elf/tst-audit11mod1.c: New file.
13294         * elf/tst-audit11mod2.c: New file.
13295         * elf/tst-audit11mod2.map: New file.
13296         * elf/tst-audit12.c: New file
13297         * elf/tst-auditmod12.c: New file.
13298         * elf/tst-audit12mod1.c: New file.
13299         * elf/tst-audit12mod2.c: New file.
13300         * elf/tst-audit12mod2.map: New file.
13301         * elf/tst-audit12mod3.c: New file.
13302
13303 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13304
13305         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
13306         Don't create weak aliases,
13307         because versioned symbols are created later.
13308         * sysdeps/s390/s390-32/setjmp.S
13309         (setjmp, _setjmp): Remove weak and rename to an unique name
13310         in SHARED case due to existing versioned symbols.
13311         * sysdeps/s390/s390-64/setjmp.S: Likewise.
13312         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
13313         (getcontext): Create weak alias only in non SHARED case.
13314         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
13315
13316 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
13317
13318         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
13319         (__ASSUME_*_SYSCALL) Define new macros.
13320         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
13321         Remove socketcall syscalls.
13322         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
13323         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
13324         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
13325         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
13326         * sysdeps/unix/sysv/linux/send.c (__libc_send):
13327         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
13328
13329 2015-11-09  Florian Weimer  <fweimer@redhat.com>
13330
13331         [BZ #12926]
13332         Terminate process on invalid netlink response.
13333         * sysdeps/unix/sysv/linux/netlinkaccess.h
13334         (__netlink_assert_response): Declare.
13335         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
13336         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
13337         (sysdep_routines): Add netlink_assert_response.
13338         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
13339         __netlink_assert_response.
13340         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
13341         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
13342         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
13343         __netlink_assert_response.
13344
13345 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13346
13347         [BZ #19178]
13348         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
13349         (RTYPE_CLASS_PLT): Likewise.
13350         (RTYPE_CLASS_COPY): Likewise.
13351         (RTYPE_CLASS_TLS): Likewise.
13352         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
13353         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
13354         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
13355         DL_DEBUG_PRELINK.
13356
13357 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
13358
13359         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
13360         calls with argument -0.5.
13361         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
13362
13363         * configure.ac (libc_cv_z_nodelete): Remove configure test.
13364         (libc_cv_z_nodlopen): Likewise.
13365         (libc_cv_z_initfirst): Likewise.
13366         * configure: Regenerated.
13367
13368 2015-11-06  Florian Weimer  <fweimer@redhat.com>
13369
13370         Simplify abilist format to be line-based.
13371         * scripts/abilist.awk: Collect descriptors in the descs variable.
13372         (emit): Write descs variable and sort it
13373         externally, with sort.
13374         * sysdeps/**/*.abilist: Convert to new format.
13375
13376 2015-11-06  Mark Wielaard  <mjw@redhat.com>
13377
13378         [BZ #11460]
13379         * io/Makefile (routines): Add fts64.
13380         (tests): Add tst-fts and tst-fts-lfs.
13381         (CFLAGS-fts64.c): New.
13382         * io/Versions (GLIBC_2.23): New.
13383         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
13384         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
13385         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
13386         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
13387         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
13388         (FTSENT64): Likewise.
13389         (fts64_children): Likewise.
13390         (fts64_close): Likewise.
13391         (fts64_open): Likewise.
13392         (fts64_read): Likewise.
13393         (fts64_set): Likewise.
13394         * io/fts64.c: New file.
13395         * io/tst-fts.c: New test.
13396         * io/tst-fts-lfs.c: Likewise.
13397         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
13398         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
13399         fts64_set.
13400         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13401         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13402         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13403         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13404         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13405         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13406         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13407         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13408         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13409         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13410         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13411         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13412         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13414         Likewise.
13415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
13416         Likewise.
13417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
13419         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13420         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13421         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13422         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13423         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13424         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13425         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13426         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13427         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13428         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13429         * sysdeps/wordsize-64/fts.c: New file.
13430         * sysdeps/wordsize-64/fts64.c: Likewise.
13431         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
13432         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
13433         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
13434         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
13435
13436 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13437
13438         * math/libm-test.inc (NON_FINITE): New macro.
13439         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
13440         * math/gen-libm-test.pl (show_exceptions): Add argument
13441         $non_finite.
13442         (parse_args): Update call to show_exceptions.
13443         * math/test-math-finite.h: New file.
13444         * math/test-math-no-finite.h: Likewise.
13445         * math/test-double-finite.c: Likewise.
13446         * math/test-float-finite.c: Likewise.
13447         * math/test-ldouble-finite.c: Likewise.
13448         * math/test-double.c: Include "test-math-no-finite.h".
13449         * math/test-float.c: Include "test-math-no-finite.h".
13450         * math/test-ldouble.c: Include "test-math-no-finite.h".
13451         * math/test-math-inline.h (TEST_FINITE): New macro.
13452         * math/test-math-vector.h (TEST_FINITE): Likewise.
13453         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
13454         (libm-tests): Add test-float-finite and test-double-finite.
13455         ($(objpfx)test-float-finite.o): New dependency on
13456         $(objpfx)libm-test.stmp.
13457         ($(objpfx)test-double-finite.o): Likewise.
13458         ($(objpfx)test-ldouble-finite.o): Likewise.
13459         (libm-test-no-inline-cflags): New variable.
13460         (libm-test-finite-cflags): Likewise.
13461         (CFLAGS-test-float-finite.c): Likewise.
13462         (CFLAGS-test-double-finite.c): Likewise.
13463         (CFLAGS-test-ldouble-finite.c): Likewise.
13464         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
13465         (CFLAGS-test-double.c): Likewise.
13466         (CFLAGS-test-ldouble.c): Likewise.
13467
13468 2015-11-05  Roland McGrath  <roland@hack.frob.com>
13469
13470         * io/fcntl.c (__fcntl): Add ... to prototype.
13471         * misc/ioctl.c (__ioctl): Likewise.
13472         * misc/syscall.c (syscall): Likewise.
13473
13474 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
13475
13476         * scripts/list-fixed-bugs.py: New file.
13477
13478         [BZ #19213]
13479         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
13480         returned for argument 1.
13481         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
13482         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
13483         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
13484         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
13485         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
13486         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
13487
13488         [BZ #19211]
13489         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
13490         __USE_XOPEN], not if [!__USE_ISOC99].
13491         (lgammaf): Likewise.
13492         (lgammal): Likewise.
13493         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
13494         (gammaf): Likewise.
13495         (gammal): Likewise.
13496         * math/test-signgam-finite-c11.c: New file.
13497         * math/test-signgam-finite-c99.c: Likewise.
13498         * math/test-signgam-finite.c: Likewise.
13499         * math/Makefile (tests): Add test-signgam-finite,
13500         test-signgam-finite-c99 and test-signgam-finite-c11.
13501         (CFLAGS-test-signgam-finite.c): New variable.
13502         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13503         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13504
13505         [BZ #19212]
13506         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
13507         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
13508         500].
13509         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
13510         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
13511         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
13512         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
13513         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
13514         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
13515         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
13516         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
13517         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
13518         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
13519
13520         [BZ #19209]
13521         * math/bits/math-finite.h (ldexp): Remove declaration.
13522         (ldexpf): Likewise.
13523         (ldexpl): Likewise.
13524
13525         [BZ #19205]
13526         * math/bits/math-finite.h (acosf): Condition declaration on
13527         [__USE_ISOC99].
13528         (acosl): Likewise.
13529         (acoshf): Likewise.
13530         (acoshl): Likewise.
13531         (asinf): Likewise.
13532         (asinl): Likewise.
13533         (atan2f): Likewise.
13534         (atan2l): Likewise.
13535         (atanhf): Likewise.
13536         (atanhl): Likewise.
13537         (coshf): Likewise.
13538         (coshl): Likewise.
13539         (expf): Likewise.
13540         (expl): Likewise.
13541         (fmodf): Likewise.
13542         (fmodl): Likewise.
13543         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
13544         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
13545         (j0l): Likewise.
13546         (y0f): Likewise.
13547         (y0l): Likewise.
13548         (j1f): Likewise.
13549         (j1l): Likewise.
13550         (y1f): Likewise.
13551         (y1l): Likewise.
13552         (jnf): Likewise.
13553         (jnl): Likewise.
13554         (ynf): Likewise.
13555         (ynl): Likewise.
13556         (lgammaf_r): Condition declaration on [__USE_ISOC99].
13557         (lgammal_r): Likewise.
13558         (__lgamma_r_finite): New declaration.
13559         (__lgammaf_r_finite): Likewise.
13560         (__lgammal_r_finite): Likewise.
13561         (lgamma): Use __lgamma_r_finite.
13562         (lgammaf): Condition definition on [__USE_ISOC99].  Use
13563         __lgammaf_r_finite.
13564         (lgammal): Condition definition on [__USE_ISOC99].  Use
13565         __lgammal_r_finite.
13566         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
13567         __lgamma_r_finite.
13568         (gammaf): Condition definition on [__USE_ISOC99].  Use
13569         __lgammaf_r_finite.
13570         (gammal): Condition definition on [__USE_ISOC99].  Use
13571         __lgammal_r_finite.
13572         (logf): Condition declaration on [__USE_ISOC99].
13573         (logl): Likewise.
13574         (log10f): Likewise.
13575         (log10l): Likewise.
13576         (ldexpf): Likewise.
13577         (ldexpl): Likewise.
13578         (powf): Likewise.
13579         (powl): Likewise.
13580         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
13581         __USE_ISOC99].
13582         (remainderf): Condition declaration on [__USE_ISOC99].
13583         (remainderl): Likewise.
13584         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
13585         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
13586         (scalbl): Likewise.
13587         (sinhf): Condition declaration on [__USE_ISOC99].
13588         (sinhl): Likewise.
13589         (sqrtf): Likewise.
13590         (sqrtl): Likewise.
13591
13592 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13593
13594         * sysdeps/arm/atomic-machine.h
13595         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13596         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13597         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
13598         Remove conditional code.
13599         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
13600         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
13601         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
13602         Change conditional to [__ASSEMBLER__].
13603         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13604         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
13605         [!__ASSEMBLER__].
13606         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
13607         code.
13608         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
13609         conditional macro definitions.
13610         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
13611         (__arch_compare_and_exchange_val_16_acq): Likewise.
13612         (__arch_compare_and_exchange_val_32_acq): Likewise.
13613         (atomic_exchange_and_add): Likewise.
13614         (atomic_add): Likewise.
13615         (atomic_add_negative): Likewise.
13616         (atomic_add_zero): Likewise.
13617         (atomic_bit_set): Likewise.
13618         (atomic_bit_test_set): Likewise.
13619         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
13620         code unconditional.
13621         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13622
13623         * math/test-math-errno.h: New file.
13624         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
13625         empty.
13626         (TEST_ERRNO): New macro.
13627         (TEST_EXCEPTIONS): Likewise.
13628         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
13629         (TEST_EXCEPTIONS): Likewise.
13630         * math/test-math-vector.h (TEST_ERRNO): Likewise.
13631         * math/test-double.c: Include "test-math-errno.h".
13632         * math/test-float.c: Likewise.
13633         * math/test-ldouble.c: Likewise.
13634         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
13635         code unconditional.
13636         (test_exceptions): Only run code if TEST_EXCEPTIONS.
13637         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
13638         unconditional.
13639         (test_errno): Only run code if TEST_ERRNO.
13640         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
13641
13642 2015-11-04  Florian Weimer  <fweimer@redhat.com>
13643
13644         * nptl/tst-once5.cc: Remove attribution.
13645
13646 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
13647
13648         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
13649         sqrt, tan, tanh, y0, y1 and yn.
13650         * math/auto-libm-test-out: Regenerated.
13651         * math/libm-test.inc (scalb_test_data): Add more tests.
13652         (scalbn_test_data): Likewise.
13653         (scalbln_test_data): Likewise.
13654         (signbit_test_data): Likewise.
13655         (sin_test_data): Likewise.
13656         (sincos_test_data): Likewise.
13657         (sinh_test_data): Likewise.
13658         (sqrt_test_data): Likewise.
13659         (tan_test_data): Likewise.
13660         (tanh_test_data): Likewise.
13661         (tgamma_test_data): Likewise.
13662         (y0_test_data): Likewise.
13663         (y1_test_data): Likewise.
13664         (yn_test_data): Likewise.
13665         (significand_test_data): Likewise.
13666         * sysdeps/i386/fpu/libm-test-ulps: Update.
13667
13668 2015-11-03  David Kastrup  <dak@gnu.org>
13669
13670         [BZ #18604]
13671         * assert/assert.h (assert): Don't macro-expand failed assertion
13672         expression in error message.
13673         * malloc/malloc.c (assert): Likewise.
13674
13675 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
13676
13677         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
13678         test.
13679         * configure: Regenerated.
13680
13681 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
13682
13683         * math/libm-test.inc (modf_test_data): Add more tests.
13684         (nearbyint_test_data): Likewise.
13685         (nextafter_test_data): Likewise.
13686         (nexttoward_test_data): Likewise.
13687         (pow_test_data): Likewise.
13688         (remainder_test_data): Likewise.
13689         (remquo_test_data): Likewise.
13690         (rint_test_data): Likewise.
13691
13692         [BZ #19201]
13693         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
13694         Check for zero remainder in case of large exponents and ensure
13695         correct sign of result in that case.
13696         * math/libm-test.inc (remainder_test_data): Add more tests.
13697
13698         [BZ #6799]
13699         * math/s_nextafter.c: Include <errno.h>.
13700         (__nextafter): Set errno on overflow and underflow.
13701         * math/s_nexttowardf.c: Include <errno.h>.
13702         (__nexttowardf): Set errno on overflow and underflow.
13703         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
13704         (__nextafterl): Set errno on overflow and underflow.
13705         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
13706         (__nexttoward): Set errno on overflow and underflow.
13707         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
13708         (__nexttowardf): Set errno on overflow and underflow.
13709         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
13710         (__nextafterf): Set errno on overflow and underflow.
13711         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
13712         (__nextafterl): Set errno on overflow and underflow.
13713         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
13714         (__nexttoward): Set errno on overflow and underflow.
13715         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
13716         (__nexttowardf): Set errno on overflow and underflow.
13717         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
13718         (__nextafterl): Set errno on overflow and underflow.
13719         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
13720         (__nexttoward): Set errno on overflow and underflow.
13721         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
13722         (__nexttowardf): Set errno on overflow and underflow.
13723         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
13724         (__nexttoward): Set errno on overflow and underflow.
13725         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
13726         (__nexttowardf): Set errno on overflow and underflow.
13727         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
13728         (__nldbl_nexttowardf): Set errno on overflow and underflow.
13729         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
13730         (__nextafterl): Set errno on overflow and underflow.
13731         * math/libm-test.inc (nextafter_test_data): Do not allow errno
13732         setting to be missing on overflow.  Add more tests.
13733         (nexttoward_test_data): Likewise.
13734
13735         * configure.ac (libc_cv_initfini_array): Remove configure test.
13736         * configure: Regenerated.
13737
13738 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
13739
13740         [BZ #19189]
13741         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
13742         non-finite argument handle arguments with negative sign.
13743
13744         * math/libm-test.inc (j0_test_data): Do not test sign of zero
13745         result from infinite argument.
13746         (j1_test_data): Likewise.
13747         (jn_test_data): Likewise.
13748         (y0_test_data): Likewise.
13749         (y1_test_data): Likewise.
13750         (yn_test_data): Likewise.
13751
13752         [BZ #16171]
13753         * math/w_remainder.c (drem): Define as weak alias of __remainder.
13754         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
13755         * math/w_remainderf.c (dremf): Define as weak alias of
13756         __remainderf.
13757         * math/w_remainderl.c (dreml): Define as weak alias of
13758         __remainderl.
13759         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
13760         __remainder.
13761         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
13762         __remainderf.
13763         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
13764         __remainderl.
13765         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
13766         weak alias of remainderl.
13767         * sysdeps/ieee754/ldbl-opt/w_remainder.c
13768         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
13769         alias of __remainder.
13770         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
13771         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
13772         strong alias of __remainderl.
13773         (dreml): Use long_double_symbol.
13774         * math/Makefile (libm-calls): Remove w_drem.
13775         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
13776         (CFLAGS-nldbl-drem.c): Remove variable.
13777         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
13778         * math/w_drem.c: Remove file.
13779         * math/w_dremf.c: Likewise.
13780         * math/w_dreml.c: Likewise.
13781         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
13782         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
13783         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
13784
13785         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
13786         * sysdeps/i386/configure: Regenerated.
13787         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
13788         * sysdeps/x86_64/configure: Regenerated.
13789
13790         * configure.ac (libc_cv_asm_protected_directive): Remove configure
13791         test.
13792         (libc_cv_visibility_attribute): Likewise.
13793         (libc_cv_protected_data): Test unconditionally.
13794         (libc_cv_broken_visibility_attribute): Remove configure test.
13795         (libc_cv_have_sdata_section): Test unconditionally.
13796         * configure: Regenerated.
13797
13798         * include/libc-internal.h (libc_max_align_t): Remove typedef.
13799         * include/scratch_buffer.h: Include <stddef.h> instead of
13800         <libc-internal.h>.
13801         (struct scratch_buffer): Use max_align_t instead of
13802         libc_max_align_t.
13803
13804 2015-10-29  Florian Weimer  <fweimer@redhat.com>
13805
13806         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
13807         instead of extend_alloca.  Change control flow to avoid a goto.
13808         Remove assert which is trivially always true.
13809
13810 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
13811
13812         [BZ #16068]
13813         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
13814         (FE_ALL_EXCEPT_X86): New macro.
13815         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
13816         FE_ALL_EXCEPT.  Ensure precision control is included in
13817         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
13818         handle "denormal operand exception" and clear FZ and DAZ bits.
13819         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
13820         (FE_ALL_EXCEPT_X86): New macro.
13821         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
13822         FE_ALL_EXCEPT.  Ensure precision control is included in
13823         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
13824         handle "denormal operand exception" and clear FZ and DAZ bits.
13825         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
13826         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
13827         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
13828         test-fenv-x87 and test-fenv-sse-2.
13829         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
13830
13831         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
13832         * math/test-double.h (BUILD_COMPLEX): New macro.
13833         * math/test-float.h (BUILD_COMPLEX): Likewise.
13834         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
13835
13836         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
13837         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
13838         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
13839         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
13840         instead of DBL_DENORM_MIN in comment.
13841         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
13842         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
13843         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
13844         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
13845         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
13846         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
13847
13848 2015-10-28  Florian Weimer  <fweimer@redhat.com>
13849
13850         [BZ# 19048]
13851         * malloc/malloc.c (struct malloc_state): Update comment.  Add
13852         attached_threads member.
13853         (main_arena): Initialize attached_threads.
13854         * malloc/arena.c (list_lock): Update comment.
13855         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
13856         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
13857         (deattach_arena): New function.
13858         (_int_new_arena): Initialize arena reference count and deattach
13859         replaced arena.
13860         (get_free_list, reused_arena): Update reference count and deattach
13861         replaced arena.
13862         (arena_thread_freeres): Update arena reference count and only put
13863         unreferenced arenas on the free list.
13864
13865 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
13866
13867         [BZ #19181]
13868         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
13869         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
13870         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
13871         * math/test-fenv-clear-main.c: New file.
13872         * math/test-fenv-clear.c: Likewise.
13873         * math/Makefile (tests): Add test-fenv-clear.
13874         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
13875         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
13876         test-fenv-clear-sse.
13877         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
13878
13879         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
13880         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
13881         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
13882
13883 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13884
13885         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
13886         static libc.
13887
13888 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
13889
13890         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
13891         test.
13892         * sysdeps/i386/configure: Regenerated.
13893         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
13894         test.
13895         * sysdeps/x86_64/configure: Regenerated.
13896         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
13897         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13898         memset-avx2 unconditionally instead of conditionally on
13899         [$(config-cflags-avx2) = yes].
13900         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13901         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
13902         unconditional.
13903         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
13904         * sysdeps/x86_64/multiarch/memset_chk.S
13905         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
13906         to [IS_IN (libc) && SHARED].
13907
13908 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
13909
13910         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
13911         configure test.
13912         * sysdeps/arm/configure: Regenerated.
13913         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
13914         Define variable if not already defined.
13915
13916         [BZ #17404]
13917         * sysdeps/mips/atomic-machine.h
13918         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
13919         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
13920         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
13921
13922         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
13923         unconditional.
13924         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
13925         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13926         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
13927         unconditional.
13928         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13929         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
13930         unconditional.
13931         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13932         * stdlib/setenv.c
13933         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
13934         code unconditional.
13935         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
13936         Remove conditional code.
13937         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
13938         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
13939         unconditional.
13940         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
13941         code.
13942         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
13943         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
13944         unconditional.
13945         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
13946         code.
13947         * sysdeps/ieee754/ldbl-128/k_tanl.c
13948         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
13949         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13950         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
13951         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
13952         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13953         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
13954         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
13955         unconditional.
13956         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
13957         code.
13958         * sysdeps/ieee754/ldbl-96/k_tanl.c
13959         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
13960         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
13961
13962         * nptl/tst-initializers1-c11.c: New file.
13963         * nptl/tst-initializers1-gnu11.c: Likewise.
13964         * nptl/Makefile (tests): Add these new tests.
13965         (CFLAGS-tst-initializers1-c11.c): New variable.
13966         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
13967
13968         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
13969         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
13970         instead of -std=gnu99.
13971         * configure.ac (systemtap): Test with -std=gnu11 instead of
13972         -std=gnu99.
13973         * configure: Regenerated.
13974         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
13975         in compilation command in comment.
13976
13977         * sysdeps/nptl/configure.ac: Remove file.
13978         * sysdeps/nptl/configure: Remove generated file.
13979         * configure.ac (libc_cv_forced_unwind): Do not substitute.
13980         * configure: Regenerated.
13981         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
13982         * config.make.in (have-forced-unwind): Remove variable.
13983         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
13984         unconditional.
13985         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
13986         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
13987         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
13988         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
13989         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
13990         unconditional.
13991
13992 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13993
13994         [BZ #19174]
13995         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
13996         .skip_lock_out_of_tbegin_retries.
13997         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
13998         (__lll_lock_elision): Likewise, and respect a value of
13999         try_tbegin <= 0.
14000
14001 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
14002
14003         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
14004         statement.
14005
14006 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14007
14008         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
14009         variable.
14010         (test-xfail-ISO11/stdalign.h/conform): Likewise.
14011         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
14012
14013         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
14014         of -std=c1x -D_ISOC11_SOURCE.
14015
14016         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
14017         * configure: Regenerated.
14018         * manual/install.texi (Tools for Compilation): Document
14019         requirement for GCC 4.7 or later.
14020         * INSTALL: Regenerated.
14021
14022 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
14023
14024         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
14025         on CNT to a conditional jump to 'puntdata'.
14026
14027 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
14028
14029         * configure.ac (libc_cv_gcc___thread): Remove configure test.
14030         (libc_cv_gcc_tls_model_attr): Likewise.
14031         * configure: Regenerated.
14032
14033         * configure.ac (libc_cv_need_minus_P): Remove configure test.
14034         * configure: Regenerated.
14035         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
14036
14037 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
14038
14039         * configure.ac (old_glibc_headers): Remove configure test.
14040         * configure: Regenerated.
14041         * config.make.in (old-glibc-headers): Remove variable.
14042         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
14043         (install): Remove dependency on remove-old-headers.
14044         (headers2_0): Remove variable.
14045         (remove-old-headers): Remove rule.
14046
14047         * configure.ac (libc_cv_dot_text): Remove configure test.
14048         (libc_cv_asm_set_directive): Use .text instead of
14049         ${libc_cv_dot_text} in configure test.
14050         * configure: Regenerated.
14051
14052 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14053
14054         [BZ #19168]
14055         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
14056
14057 2015-10-26  Florian Weimer  <fweimer@redhat.com>
14058
14059         * configure.ac (CXX): Clear the variable if the C++ toolchain does
14060         not support static linking.
14061         * configure: Regenerate.
14062
14063 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
14064
14065         * math/libm-test.inc (check_float_internal): Do not special-case
14066         errors up to 0.5 ulp.
14067
14068         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
14069         log2.
14070         * math/auto-libm-test-out: Regenerated.
14071         * math/libm-test.inc (MAX_EXP): New macro.
14072         (ilogb_test_data): Add more tests.
14073         (isfinite_test_data): Likewise.
14074         (isgreater_test_data): Likewise.
14075         (isgreaterequal_test_data): Likewise.
14076         (isinf_test_data): Likewise.
14077         (isless_test_data): Likewise.
14078         (islessequal_test_data): Likewise.
14079         (islessgreater_test_data): Likewise.
14080         (isnan_test_data): Likewise.
14081         (isnormal_test_data): Likewise.
14082         (issignaling_test_data): Likewise.
14083         (isunordered_test_data): Likewise.
14084         (j0_test_data): Likewise.
14085         (j1_test_data): Likewise.
14086         (jn_test_data): Likewise.
14087         (lgamma_test_data): Likewise.
14088         (log_test_data): Likewise.
14089         (log10_test_data): Likewise.
14090         (log1p_test_data): Likewise.
14091         (log2_test_data): Likewise.
14092         (logb_test_data): Likewise.
14093         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14094
14095         [BZ #18611]
14096         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
14097         avoid excess range and precision on underflow.
14098         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14099         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14100         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14101         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
14102         underflow.
14103         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14104         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14105         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14106         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14107         * math/auto-libm-test-in: Do not allow missing errno setting for
14108         tests of j1 and jn.
14109         * math/auto-libm-test-out: Regenerated.
14110
14111 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
14112
14113         [BZ #15491]
14114         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
14115         floating-point environment instead of clearing all exceptions.
14116         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14117         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
14118         merging in "invalid" exceptions from frndint.
14119         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14120         * math/test-nearbyint-except.c: New file.
14121         * math/Makefile (tests): Add test-nearbyint-except.
14122
14123 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
14124
14125         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
14126
14127         * sysdeps/tile/libm-test-ulps: Regenerated.
14128
14129 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14130
14131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
14132         (__NR_sync_file_range2): Assume it is always defined.
14133         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
14134         (__NR_sync_file_range): Assume it is always defined.
14135
14136 2015-10-22  Andreas Schwab  <schwab@suse.de>
14137
14138         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
14139         INTERNAL_SYSCALL_ERRNO.
14140         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
14141         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
14142         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
14143         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
14144         Likewise.
14145         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
14146
14147 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14148
14149         * io/tst-fcntl.c (fd): New static variable.
14150         (do_prepare): Open temporary file here....
14151         (do_test): ...not here.
14152
14153         * io/ftwtest-sh: Also trap on exit to remove temporary files.
14154
14155 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14156
14157         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
14158         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14159         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14160         Moved before "#ifdef __ASSEMBLER__".
14161
14162 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14163
14164         [BZ #19156]
14165         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
14166         arguments very close to 0.
14167
14168 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
14169
14170         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
14171         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
14172
14173 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
14174
14175         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
14176         New.  Defined for GCC 5 and above when not compiling for
14177         profiling.
14178         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
14179
14180         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
14181         Renamed to ...
14182         (CFLAGS-epoll_pwait.o): This.
14183         (CFLAGS-mmap.c): Renamed to ...
14184         (CFLAGS-mmap.o): This.
14185         (CFLAGS-mmap64.c): Renamed to ...
14186         (CFLAGS-mmap64.o): This.
14187         (CFLAGS-epoll_pwait.os): New.
14188         (CFLAGS-mmap.os): Likewise.
14189         (CFLAGS-mmap64.os): Likewise.
14190         (CFLAGS-semtimedop.os): Likewise.
14191         (CFLAGS-semtimedop.c): Renamed to ...
14192         (CFLAGS-semtimedop.o): This.
14193
14194 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14195
14196         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
14197         warning message.
14198
14199 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
14200
14201         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
14202         * Makefile ($(objpfx)c++-types-check.out): Filter out
14203         $(+gccwarn-c) instead of -Wstrict-prototypes.
14204
14205         * io/fts.c (fts_open): Convert to prototype-style function
14206         definition.
14207         * malloc/mcheck.c (mcheck): Likewise.
14208         (mcheck_pedantic): Likewise.
14209         * posix/regexec.c (re_search_2_stub): Likewise.  Use
14210         internal_function.
14211         (re_search_internal): Likewise.
14212         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
14213         prototype-style function definition.
14214         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14215         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
14216         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
14217         (xdr_utmpptr): Likewise.
14218         (xdr_utmparr): Likewise.
14219         (xdr_utmpidle): Likewise.
14220         (xdr_utmpidleptr): Likewise.
14221         (xdr_utmpidlearr): Likewise.
14222
14223         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
14224         log, log10 and log2.
14225         * math/auto-libm-test-out: Regenerated.
14226         * math/libm-test.inc (fmod_test_data): Add more tests.
14227         (fpclassify_test_data): Likewise.
14228         (frexp_test_data): Likewise.
14229         (hypot_test_data): Likewise.
14230         (ilogb_test_data): Likewise.
14231
14232 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
14233
14234         * debug/fortify_fail.c (__fortify_fail): Convert to
14235         prototype-style function definition.  Use internal_function.
14236         * libio/genops.c (save_for_backup): Convert to prototype-style
14237         function definition.
14238         * libio/wgenops.c (save_for_wbackup): Likewise.
14239         * login/grantpt.c (grantpt): Likewise.
14240         * login/ptsname.c (ptsname): Likewise.
14241         (__ptsname_r): Likewise.
14242         * login/unlockpt.c (unlockpt): Likewise.
14243         * mach/msgserver.c (__mach_msg_server): Likewise.
14244         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
14245         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
14246         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
14247         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
14248         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
14249         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
14250         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
14251         Likewise.
14252         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
14253         internal_function.
14254         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
14255         prototype-style function definition.
14256         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
14257         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
14258         (__pthread_create_2_0): Likewise.
14259         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
14260         * nptl/register-atfork.c (__register_atfork): Likewise.
14261         * posix/glob.c (glob): Likewise.
14262         * posix/regcomp.c (re_comp): Likewise.
14263         * posix/regexec.c (re_exec): Likewise.
14264         * stdlib/add_n.c [__STDC__]: Make code unconditional.
14265         [!__STDC__]: Remove conditional code.
14266         * stdlib/cmp.c [__STDC__]: Make code unconditional.
14267         [!__STDC__]: Remove conditional code.
14268         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
14269         [!__STDC__]: Remove conditional code.
14270         * stdlib/divrem.c [__STDC__]: Make code unconditional.
14271         [!__STDC__]: Remove conditional code.
14272         * stdlib/lshift.c [__STDC__]: Make code unconditional.
14273         [!__STDC__]: Remove conditional code.
14274         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
14275         [!__STDC__]: Remove conditional code.
14276         * stdlib/mul.c [__STDC__]: Make code unconditional.
14277         [!__STDC__]: Remove conditional code.
14278         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
14279         [!__STDC__]: Remove conditional code.
14280         * stdlib/rshift.c [__STDC__]: Make code unconditional.
14281         [!__STDC__]: Remove conditional code.
14282         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
14283         function definition.
14284         (STRTOF): Likewise.
14285         * stdlib/strtod_l.c (__STRTOF): Likewise.
14286         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
14287         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
14288         (__strtol_l): Likewise.
14289         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
14290         [!__STDC__]: Remove conditional code.
14291         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
14292         definition.
14293         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14294         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14295         type.
14296         (__strcasecmp): Convert to prototype-style function definition.
14297         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
14298         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14299         type.
14300         (__strncasecmp): Convert to prototype-style function definition.
14301         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
14302         * sunrpc/xdr.c (xdr_union): Likewise.
14303         * sunrpc/xdr_array.c (xdr_array): Likewise.
14304         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
14305         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
14306         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
14307         Likewise.
14308         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
14309         Likewise.
14310         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
14311         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
14312         Likewise.
14313         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
14314         (LOCALE_PARAM_PROTO): Likewise.
14315         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
14316         argument type.
14317         (ut_argument_spec): Remove macro.
14318         (ut_argument_spec_iso): Rename to ut_argument_spec.
14319         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
14320         prototype-style function definition.
14321         (memcpy_uppcase): Likewise.
14322         (__strftime_internal): Likewise.
14323         (my_strftime): Likewise.
14324         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
14325         (LOCALE_PARAM_DECL): Likewise.
14326         [_LIBC] (LOCALE_PARAM): Include argument type.
14327         (__strptime_internal): Convert to prototype-style function
14328         definition.
14329         (strptime): Likewise.
14330         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
14331         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14332         type.
14333         (__wcscasecmp): Convert to prototype-style function definition.
14334         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
14335         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
14336         type.
14337         (__wcsncasecmp): Convert to prototype-style function definition.
14338
14339         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
14340         function definition.
14341         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
14342         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
14343         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
14344         * elf/dl-minimal.c (_itoa): Likewise.
14345         * hurd/hurdmalloc.c (malloc): Likewise.
14346         (free): Likewise.
14347         (realloc): Likewise.
14348         * inet/inet6_option.c (inet6_option_space): Likewise.
14349         (inet6_option_init): Likewise.
14350         (inet6_option_append): Likewise.
14351         (inet6_option_alloc): Likewise.
14352         (inet6_option_next): Likewise.
14353         (inet6_option_find): Likewise.
14354         * io/ftw.c (FTW_NAME): Likewise.
14355         (NFTW_NAME): Likewise.
14356         (NFTW_NEW_NAME): Likewise.
14357         (NFTW_OLD_NAME): Likewise.
14358         * libio/iofwide.c (_IO_fwide): Likewise.
14359         * libio/strops.c (_IO_str_init_static_internal): Likewise.
14360         (_IO_str_init_static): Likewise.
14361         (_IO_str_init_readonly): Likewise.
14362         (_IO_str_overflow): Likewise.
14363         (_IO_str_underflow): Likewise.
14364         (_IO_str_count): Likewise.
14365         (_IO_str_seekoff): Likewise.
14366         (_IO_str_pbackfail): Likewise.
14367         (_IO_str_finish): Likewise.
14368         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
14369         (_IO_wstr_overflow): Likewise.
14370         (_IO_wstr_underflow): Likewise.
14371         (_IO_wstr_count): Likewise.
14372         (_IO_wstr_seekoff): Likewise.
14373         (_IO_wstr_pbackfail): Likewise.
14374         (_IO_wstr_finish): Likewise.
14375         * locale/programs/localedef.c (normalize_codeset): Likewise.
14376         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
14377         (add_locales_to_archive): Likewise.
14378         (delete_locales_from_archive): Likewise.
14379         * malloc/malloc.c (__libc_mallinfo): Likewise.
14380         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
14381         * misc/tsearch.c (__tfind): Likewise.
14382         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
14383         * nptl/pthread_attr_getdetachstate.c
14384         (__pthread_attr_getdetachstate): Likewise.
14385         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
14386         Likewise.
14387         * nptl/pthread_attr_getinheritsched.c
14388         (__pthread_attr_getinheritsched): Likewise.
14389         * nptl/pthread_attr_getschedparam.c
14390         (__pthread_attr_getschedparam): Likewise.
14391         * nptl/pthread_attr_getschedpolicy.c
14392         (__pthread_attr_getschedpolicy): Likewise.
14393         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
14394         Likewise.
14395         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
14396         Likewise.
14397         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
14398         Likewise.
14399         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
14400         Likewise.
14401         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
14402         (__pthread_attr_init_2_0): Likewise.
14403         * nptl/pthread_attr_setdetachstate.c
14404         (__pthread_attr_setdetachstate): Likewise.
14405         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
14406         Likewise.
14407         * nptl/pthread_attr_setinheritsched.c
14408         (__pthread_attr_setinheritsched): Likewise.
14409         * nptl/pthread_attr_setschedparam.c
14410         (__pthread_attr_setschedparam): Likewise.
14411         * nptl/pthread_attr_setschedpolicy.c
14412         (__pthread_attr_setschedpolicy): Likewise.
14413         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
14414         Likewise.
14415         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
14416         Likewise.
14417         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
14418         Likewise.
14419         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
14420         Likewise.
14421         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
14422         Likewise.
14423         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
14424         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14425         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
14426         use internal_function.
14427         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
14428         prototype-style function definition.
14429         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
14430         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
14431         internal_function.
14432         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
14433         Convert to prototype-style function definition.
14434         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
14435         Likewise.
14436         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
14437         Likewise.
14438         (__pthread_mutex_unlock): Likewise.
14439         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
14440         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
14441         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
14442         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
14443         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
14444         * nss/makedb.c (process_input): Likewise.
14445         * posix/fnmatch.c (__strchrnul): Likewise.
14446         (__wcschrnul): Likewise.
14447         (fnmatch): Likewise.
14448         * posix/fnmatch_loop.c (FCT): Likewise.
14449         * posix/glob.c (globfree): Likewise.
14450         (__glob_pattern_type): Likewise.
14451         (__glob_pattern_p): Likewise.
14452         * posix/regcomp.c (re_compile_pattern): Likewise.
14453         (re_set_syntax): Likewise.
14454         (re_compile_fastmap): Likewise.
14455         (regcomp): Likewise.
14456         (regerror): Likewise.
14457         (regfree): Likewise.
14458         * posix/regexec.c (regexec): Likewise.
14459         (re_match): Likewise.
14460         (re_search): Likewise.
14461         (re_match_2): Likewise.
14462         (re_search_2): Likewise.
14463         (re_search_stub): Likewise.  Use internal_function
14464         (re_copy_regs): Likewise.
14465         (re_set_registers): Convert to prototype-style function
14466         definition.
14467         (prune_impossible_nodes): Likewise.  Use internal_function.
14468         * resolv/inet_net_pton.c (inet_net_pton): Convert to
14469         prototype-style function definition.
14470         (inet_net_pton_ipv4): Likewise.
14471         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
14472         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
14473         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
14474         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
14475         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
14476         Make variadic.
14477         * time/strptime_l.c (localtime_r): Convert to prototype-style
14478         function definition.
14479         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
14480         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
14481         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
14482         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
14483
14484         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
14485         definition.
14486         (_ufc_doit_r): Likewise.
14487         * crypt/crypt_util.c (_ufc_copymem): Likewise.
14488         (_ufc_output_conversion_r): Likewise.
14489         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
14490         * inet/rcmd.c (rcmd_af): Likewise.
14491         (rcmd): Likewise.
14492         (ruserok_af): Likewise.
14493         (ruserok): Likewise.
14494         (ruserok2_sa): Likewise.
14495         (ruserok_sa): Likewise.
14496         (iruserok_af): Likewise.
14497         (iruserok): Likewise.
14498         (__ivaliduser): Likewise.
14499         (__validuser2_sa): Likewise.
14500         * inet/rexec.c (rexec_af): Likewise.
14501         (rexec): Likewise.
14502         * inet/ruserpass.c (ruserpass): Likewise.
14503         * locale/programs/xmalloc.c (xcalloc): Likewise.
14504         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
14505         * math/w_drem.c (__drem): Likewise.
14506         * math/w_dremf.c (__dremf): Likewise.
14507         * math/w_dreml.c (__dreml): Likewise.
14508         * misc/daemon.c (daemon): Likewise.
14509         * resolv/res_debug.c (p_fqnname): Likewise.
14510         * stdlib/div.c (div): Likewise.
14511         * string/memcmp.c (memcmp_bytes): Likewise.
14512         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
14513         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
14514
14515         * crypt/cert.c (main): Convert to prototype-style function
14516         definition.
14517         * io/pipe.c (__pipe): Likewise.
14518         * io/pipe2.c (__pipe2): Likewise.
14519         * misc/futimesat.c (futimesat): Likewise.
14520         * misc/utimes.c (__utimes): Likewise.
14521         * posix/execve.c (__execve): Likewise.
14522         * posix/execvp.c (execvp): Likewise.
14523         * posix/execvpe.c (__execvpe): Likewise.
14524         * posix/fexecve.c (fexecve): Likewise.
14525         * socket/socketpair.c (socketpair): Likewise.
14526         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
14527         * stdlib/erand48.c (erand48): Likewise.
14528         * stdlib/erand48_r.c (__erand48_r): Likewise.
14529         * stdlib/jrand48.c (jrand48): Likewise.
14530         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
14531         * stdlib/lcong48.c (lcong48): Likewise.
14532         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
14533         * stdlib/nrand48.c (nrand48): Likewise.
14534         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
14535         * stdlib/seed48.c (seed48): Likewise.
14536         * stdlib/seed48_r.c (__seed48_r): Likewise.
14537         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
14538         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
14539         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
14540
14541 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14542
14543         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
14544         * configure: Regenerated.
14545         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
14546         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
14547         unconditional.
14548         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14549         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14550         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14551         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
14552         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
14553         unconditional.
14554         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
14555
14556         * posix/Makefile (CFLAGS-regex.c): Remove variable.
14557         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
14558
14559         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
14560         function definition.
14561         * crypt/crypt_util.c (__encrypt_r): Likewise.
14562         * libio/genops.c (_IO_no_init): Likewise.
14563         * libio/iofopncook.c (_IO_fopencookie): Likewise.
14564         (_IO_old_fopencookie): Likewise.
14565         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14566         * libio/iogetline.c (_IO_getline): Likewise.
14567         (_IO_getline_info): Likewise.
14568         * libio/iogetwline.c (_IO_getwline): Likewise.
14569         (_IO_getwline_info): Likewise.
14570         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
14571         * libio/vswprintf.c (_IO_vswprintf): Likewise.
14572         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
14573         (find_entry): Likewise.
14574         (iterate_table): Likewise.
14575         (lookup): Likewise.
14576         * login/forkpty.c (forkpty): Likewise.
14577         * misc/hsearch_r.c (__hsearch_r): Likewise.
14578         * misc/select.c (__select): Likewise.
14579         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
14580         Likewise.
14581         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
14582         Likewise.
14583         * nptl/old_pthread_cond_timedwait.c
14584         (__pthread_cond_timedwait_2_0): Likewise.
14585         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
14586         * nptl/pthread_barrierattr_getpshared.c
14587         (pthread_barrierattr_getpshared): Likewise.
14588         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
14589         Likewise.
14590         * nptl/pthread_mutex_setprioceiling.c
14591         (pthread_mutex_setprioceiling): Likewise.
14592         * nptl/pthread_mutexattr_getprioceiling.c
14593         (pthread_mutexattr_getprioceiling): Likewise.
14594         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
14595         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14596         Likewise.
14597         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14598         Likewise.
14599         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
14600         Likewise.
14601         * socket/recvfrom.c (__recvfrom): Likewise.
14602         * socket/sendto.c (__sendto): Likewise.
14603         * socket/setsockopt.c (__setsockopt): Likewise.
14604         * stdio-common/_itoa.c (_itoa): Likewise.
14605         * stdio-common/_itowa.c (_itowa): Likewise.
14606         * stdio-common/reg-printf.c (__register_printf_specifier):
14607         Likewise.
14608         (__register_printf_function): Likewise.
14609         * stdio-common/tempname.c (__path_search): Likewise.
14610         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
14611         * stdlib/mul_1.c (mpn_mul_1): Likewise.
14612         * stdlib/random_r.c (__initstate_r): Likewise.
14613         * stdlib/setenv.c (__add_to_environ): Likewise.
14614         * stdlib/submul_1.c (mpn_submul_1): Likewise.
14615         * streams/getpmsg.c (getpmsg): Likewise.
14616         * streams/putmsg.c (putmsg): Likewise.
14617         * streams/putpmsg.c (putpmsg): Likewise.
14618         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
14619         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
14620         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
14621         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
14622         * sunrpc/pm_getport.c (pmap_getport): Likewise.
14623         * sunrpc/svc_udp.c (cache_get): Likewise.
14624         * sunrpc/xdr_array.c (xdr_vector): Likewise.
14625         * sysdeps/mach/hurd/getcwd.c
14626         (__canonicalize_directory_name_internal): Likewise.
14627         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
14628         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
14629         * sysdeps/mach/hurd/select.c (__select): Likewise.
14630         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
14631         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14632         * sysdeps/sparc/nptl/pthread_barrier_init.c
14633         (__pthread_barrier_init): Likewise.
14634         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
14635         (__pthread_cond_timedwait): Likewise.
14636         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
14637         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
14638         Likewise.
14639         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
14640         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
14641         Likewise.
14642         * sysvipc/semtimedop.c (semtimedop): Likewise.
14643         * time/setitimer.c (__setitimer): Likewise.
14644         * time/strftime_l.c (emacs_strftime): Likewise.
14645
14646 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14647
14648         * config.make.in (have-ssp): Delete.
14649         (stack-protector): New variable.
14650         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
14651         cache test for -fstack-protector-strong.  Export stack_protector to
14652         the best ssp flag.
14653         * configure: Regenerated.
14654         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
14655         * nscd/Makefile (CFLAGS-nscd): Likewise.
14656         * resolv/Makefile (CFLAGS-libresolv): Likewise.
14657
14658 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
14659
14660         [BZ #19122]
14661         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
14662         attribute_hidden.
14663
14664 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14665
14666         [BZ #18743]
14667         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
14668         code to...
14669         (ELIDE_LOCK): ...here.
14670         (__get_new_count): New function with part of the code from
14671         __elide_lock that updates the value of adapt_count after a
14672         transaction abort.
14673         (__elided_trylock): Moved this code to...
14674         (ELIDE_TRYLOCK): ...here.
14675
14676 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
14677
14678         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
14679         * configure: Regenerate.
14680         * INSTALL: Regenerate.
14681         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
14682         and tweak grammar.
14683
14684 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
14685
14686         * login/programs/pt_chown.c: Include signal.h
14687         (main): Clear any signal mask from the parent process.
14688
14689 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
14690
14691         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
14692         * configure: Regenerated.
14693         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
14694         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
14695         $(gnu89-inline-CFLAGS).
14696
14697         * configure.ac (libc_cv_asm_weak_directive): Remove configure
14698         test.
14699         (libc_cv_asm_weakext_directive): Likewise.
14700         * configure: Regenerated.
14701         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
14702         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
14703         * include/libc-symbols.h
14704         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
14705         #error.
14706         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
14707         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
14708
14709         * sysdeps/arm/backtrace.c (__backtrace): Convert to
14710         prototype-style function definition.
14711         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
14712         * sysdeps/i386/ffs.c (__ffs): Likewise.
14713         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14714         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
14715         Likewise.
14716         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14717         Likewise.
14718         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
14719         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
14720         Likewise.
14721         * sysdeps/m68k/ffs.c (__ffs): Likewise.
14722         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
14723         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
14724         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
14725         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
14726         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
14727         * sysdeps/mach/hurd/access.c (__access): Likewise.
14728         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
14729         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
14730         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
14731         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
14732         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
14733         (cthread_getspecific): Likewise.
14734         (cthread_setspecific): Likewise.
14735         (__libc_getspecific): Likewise.
14736         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
14737         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
14738         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
14739         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
14740         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
14741         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
14742         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
14743         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
14744         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
14745         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
14746         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
14747         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
14748         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
14749         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
14750         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
14751         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
14752         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
14753         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
14754         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
14755         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
14756         * sysdeps/mach/hurd/link.c (__link): Likewise.
14757         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
14758         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
14759         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
14760         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
14761         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
14762         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
14763         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
14764         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
14765         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
14766         * sysdeps/mach/hurd/rename.c (rename): Likewise.
14767         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
14768         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
14769         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
14770         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
14771         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
14772         * sysdeps/mach/hurd/send.c (__send): Likewise.
14773         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
14774         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
14775         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
14776         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
14777         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
14778         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
14779         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
14780         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
14781         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
14782         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
14783         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
14784         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
14785         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
14786         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
14787         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
14788         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
14789         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
14790         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
14791         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
14792         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
14793         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
14794         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
14795         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
14796         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
14797         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
14798         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
14799         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
14800         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
14801         * sysdeps/posix/alarm.c (alarm): Likewise.
14802         * sysdeps/posix/cuserid.c (cuserid): Likewise.
14803         * sysdeps/posix/dirfd.c (dirfd): Likewise.
14804         * sysdeps/posix/dup.c (__dup): Likewise.
14805         * sysdeps/posix/dup2.c (__dup2): Likewise.
14806         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
14807         (main): Likewise.
14808         * sysdeps/posix/flock.c (__flock): Likewise.
14809         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
14810         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
14811         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
14812         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
14813         * sysdeps/posix/isatty.c (__isatty): Likewise.
14814         * sysdeps/posix/killpg.c (killpg): Likewise.
14815         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
14816         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
14817         * sysdeps/posix/raise.c (raise): Likewise.
14818         * sysdeps/posix/remove.c (remove): Likewise.
14819         * sysdeps/posix/rename.c (rename): Likewise.
14820         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
14821         * sysdeps/posix/seekdir.c (seekdir): Likewise.
14822         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
14823         * sysdeps/posix/sigignore.c (sigignore): Likewise.
14824         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
14825         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
14826         * sysdeps/posix/sigset.c (sigset): Likewise.
14827         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
14828         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
14829         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
14830         * sysdeps/posix/time.c (time): Likewise.
14831         * sysdeps/posix/ttyname.c (getttyname): Likewise.
14832         (ttyname): Likewise.
14833         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
14834         * sysdeps/posix/utime.c (utime): Likewise.
14835         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
14836         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
14837         Likewise.
14838         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
14839         (pthread_spin_trylock): Likewise.
14840         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
14841         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
14842         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
14843         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
14844         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
14845         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
14846         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
14847         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
14848         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
14849         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
14850         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
14851         * sysdeps/s390/ffs.c (__ffs): Likewise.
14852         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
14853         Likewise.
14854         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
14855         Likewise.
14856         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
14857         Likewise.
14858         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
14859         (pthread_barrier_destroy): Likewise.
14860         * sysdeps/sparc/nptl/pthread_barrier_wait.c
14861         (__pthread_barrier_wait): Likewise.
14862         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
14863         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
14864         (__pthread_barrier_wait): Likewise.
14865         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
14866         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
14867         (memcmp_not_common_alignment): Likewise.
14868         (MEMCMP): Likewise.
14869         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
14870         (_wordcopy_fwd_dest_aligned): Likewise.
14871         (_wordcopy_bwd_aligned): Likewise.
14872         (_wordcopy_bwd_dest_aligned): Likewise.
14873         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
14874         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
14875         * sysdeps/unix/bsd/stty.c (stty): Likewise.
14876         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
14877         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
14878         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
14879         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
14880         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
14881         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
14882         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
14883         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
14884         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
14885         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
14886         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
14887         * sysdeps/unix/stime.c (stime): Likewise.
14888         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
14889         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
14890         Likewise.  Use internal_function.
14891         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
14892         Convert to prototype-style function definition.
14893         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
14894         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
14895         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
14896         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
14897         Likewise.  Use internal_function.
14898         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
14899         prototype-style function definition
14900         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
14901         Likewise.
14902         (__getlogin_r): Likewise.
14903         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
14904         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
14905         (__pthread_cond_broadcast): Likewise.
14906         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
14907         (__pthread_cond_destroy): Likewise.
14908         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
14909         (__pthread_cond_init): Likewise.
14910         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
14911         (__pthread_cond_signal): Likewise.
14912         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
14913         (__pthread_cond_wait): Likewise.
14914         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
14915         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
14916         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
14917         Likewise.
14918         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
14919         Likewise.
14920         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
14921         Likewise.
14922         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
14923         Likewise.
14924         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
14925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
14926         (__ftruncate64): Likewise.
14927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
14928         (truncate64): Likewise.
14929         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
14930         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
14931         (pthread_getcpuclockid): Likewise.
14932         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
14933         Likewise.
14934         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
14935         Likewise.
14936         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
14937         Likewise.
14938         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
14939         Likewise.
14940         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
14941         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
14942         (__libc_sigaction): Likewise.
14943         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
14944         Likewise.
14945         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
14946         (__sigprocmask): Likewise.
14947         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
14948         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
14949         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
14950         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
14951         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
14952         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
14953         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
14954         Likewise.
14955         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
14956         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
14957         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
14958         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
14959         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
14960         Likewise.
14961         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
14962         (__sigprocmask): Likewise.
14963         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
14964         (cfgetispeed): Likewise.
14965         (cfsetospeed): Likewise.
14966         (cfsetispeed): Likewise.
14967         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
14968         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
14969         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
14970         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
14971         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
14972         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
14973         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
14974         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
14975         Likewise.
14976         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
14977         Likewise.
14978         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
14979         Likewise.
14980         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
14981         Likewise.
14982         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
14983
14984 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14985
14986         sunrpc: Rewrite with explicit TLS access using __thread.
14987         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
14988         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
14989         directly.
14990         (__rpc_thread_variables): Access thread_rpc_vars directly.
14991         Eliminate redundant assignment of the tvp variable.
14992
14993 2015-10-17  Florian Weimer  <fweimer@redhat.com>
14994
14995         malloc: Rewrite with explicit TLS access using __thread.
14996         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
14997         (tsd_setspecific, tsd_getspecific): Remove.
14998         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
14999         (tsd_setspecific, tsd_getspecific): Likewise.
15000         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
15001         (tsd_setspecific, tsd_getspecific): Likewise.
15002         * malloc/arena.c (thread_arena): New TLS variable.
15003         (arena_key): Remove variable.
15004         (arena_get): Use thread_arena.
15005         (arena_lookup): Remove macro.
15006         (malloc_atfork, free_atfork, ptmalloc_lock_all)
15007         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
15008         (_int_new_arena, get_free_list, reused_arena)
15009         (arena_thread_freeres): Use thread_arena.
15010         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
15011         tsd_getspecific, tsd_setspecific from safety annotations.
15012         (Allocating Cleared Space): Remove arena_lookup from safety
15013         annotations.
15014
15015 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15016
15017         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
15018         struct scratch_buffer instead of extend_alloca.
15019
15020 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15021
15022         * sysdeps/unix/sysv/linux/kernel-features.h
15023         (__ASSUME_SOCK_CLOEXEC): Remove.
15024         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
15025         (__have_paccept): Remove unused macro.
15026         * include/unistd.h (__have_sock_cloexec): Remove declaration.
15027         * misc/syslog.c (openlog_internal): Remove fallback code for
15028         !__ASSUME_SOCK_CLOEXEC.
15029         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
15030         missing SOCK_CLOEXEC.
15031         * nscd/connections.c (have_sock_cloexec): Remove definition.
15032         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15033         * nscd/nscd_helper.c (open_socket): Remove fallback code for
15034         !__ASSUME_SOCK_CLOEXEC.
15035         * resolv/res_send.c (__have_o_nonblock): Remove definition.
15036         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
15037         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
15038         definition.
15039         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
15040         code for !__ASSUME_SOCK_CLOEXEC.
15041
15042 2015-10-17  Florian Weimer  <fweimer@redhat.com>
15043
15044         [BZ #18982]
15045         * manual/stdio.texi (Variable Arguments Output): Add portability
15046         note, explaining that vfprintf clobbers the va_list pointer.
15047
15048 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15049
15050         * math/libm-test.inc (fabs_test_data): Add more tests.
15051         (fdim_test_data): Likewise.
15052         (fma_test_data): Likewise.
15053         (fmax_test_data): Likewise.
15054         (fmin_test_data): Likewise.
15055         (fmod_test_data): Likewise.
15056
15057 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
15058
15059         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
15060         data.
15061
15062 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
15063
15064         * math/libm-test.inc (ceil_test_data): Add more tests and more
15065         expectations for "inexact".
15066         (floor_test_data): Add more tests.
15067         (round_test_data): Likewise.
15068         (trunc_test_data): Likewise.
15069
15070         * crypt/cert.c (good_bye): Convert to prototype-style function
15071         definition.
15072         (get8): Likewise.
15073         (put8): Likewise.
15074         * crypt/crypt-entry.c (crypt): Likewise.
15075         (__fcrypt): Likewise.
15076         * crypt/crypt_util.c (_ufc_prbits): Likewise.
15077         (_ufc_set_bits): Likewise.
15078         (_ufc_clearmem): Likewise.
15079         (__init_des_r): Likewise.
15080         (shuffle_sb): Likewise.
15081         (shuffle_sb): Likewise.
15082         (_ufc_setup_salt_r): Likewise.
15083         (_ufc_mk_keytab_r): Likewise.
15084         (_ufc_dofinalperm_r): Likewise.
15085         (encrypt): Likewise.
15086         (__setkey_r): Likewise.
15087         (setkey): Likewise.
15088         * crypt/md5.c (md5_init_ctx): Likewise.
15089         (md5_read_ctx): Likewise.
15090         (md5_finish_ctx): Likewise.
15091         (md5_stream): Likewise.
15092         (md5_buffer): Likewise.
15093         (md5_process_bytes): Likewise.
15094         * crypt/sha256.c (__sha256_init_ctx): Likewise.
15095         (__sha256_finish_ctx): Likewise.
15096         (__sha256_process_bytes): Likewise.
15097         * crypt/sha512.c (__sha512_init_ctx): Likewise.
15098         (__sha512_finish_ctx): Likewise.
15099         (__sha512_process_bytes): Likewise.
15100         * ctype/isctype.c (__isctype): Likewise.
15101         * debug/backtrace.c (__backtrace): Likewise.
15102         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
15103         * debug/fgets_chk.c (__fgets_chk): Likewise.
15104         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
15105         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
15106         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
15107         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
15108         * debug/memset_chk.c (__memset_chk): Likewise.
15109         * debug/strcat_chk.c (__strcat_chk): Likewise.
15110         * debug/strncat_chk.c (__strncat_chk): Likewise.
15111         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
15112         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
15113         * dirent/dirfd.c (dirfd): Likewise.
15114         * dirent/getdents.c (__getdirentries): Likewise.
15115         * dirent/getdents64.c (getdirentries64): Likewise.
15116         * dirent/rewinddir.c (__rewinddir): Likewise.
15117         * dirent/seekdir.c (seekdir): Likewise.
15118         * dirent/telldir.c (telldir): Likewise.
15119         * elf/sln.c (makesymlinks): Likewise.
15120         (makesymlink): Likewise.
15121         * gmon/gmon.c (__moncontrol): Likewise.
15122         (__monstartup): Likewise.
15123         (write_hist): Likewise.
15124         (write_call_graph): Likewise.
15125         (write_bb_counts): Likewise.
15126         * grp/setgroups.c (setgroups): Likewise.
15127         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15128         * inet/inet_net.c (inet_network): Likewise.
15129         * inet/inet_netof.c (inet_netof): Likewise.
15130         * inet/rcmd.c (rresvport_af): Likewise.
15131         (rresvport): Likewise.
15132         * io/access.c (__access): Likewise.
15133         * io/chdir.c (__chdir): Likewise.
15134         * io/chmod.c (__chmod): Likewise.
15135         * io/chown.c (__chown): Likewise.
15136         * io/close.c (__close): Likewise.
15137         * io/creat.c (creat): Likewise.
15138         * io/creat64.c (creat64): Likewise.
15139         * io/dup.c (__dup): Likewise.
15140         * io/dup2.c (__dup2): Likewise.
15141         * io/dup3.c (__dup3): Likewise.
15142         * io/euidaccess.c (__euidaccess): Likewise.
15143         * io/faccessat.c (faccessat): Likewise.
15144         * io/fchmod.c (__fchmod): Likewise.
15145         * io/fchmodat.c (fchmodat): Likewise.
15146         * io/fchown.c (__fchown): Likewise.
15147         * io/fchownat.c (fchownat): Likewise.
15148         * io/fcntl.c (__fcntl): Likewise.
15149         * io/flock.c (__flock): Likewise.
15150         * io/fts.c (fts_load): Likewise.
15151         (fts_close): Likewise.
15152         (fts_read): Likewise.
15153         (fts_set): Likewise.
15154         (fts_children): Likewise.
15155         (fts_build): Likewise.
15156         (fts_stat): Likewise.
15157         (fts_sort): Likewise.
15158         (fts_alloc): Likewise.
15159         (fts_lfree): Likewise.
15160         (fts_palloc): Likewise.
15161         (fts_padjust): Likewise.
15162         (fts_maxarglen): Likewise.
15163         (fts_safe_changedir): Likewise.
15164         * io/getwd.c (getwd): Likewise.
15165         * io/isatty.c (__isatty): Likewise.
15166         * io/lchown.c (__lchown): Likewise.
15167         * io/link.c (__link): Likewise.
15168         * io/linkat.c (linkat): Likewise.
15169         * io/lseek.c (__libc_lseek): Likewise.
15170         * io/mkdir.c (__mkdir): Likewise.
15171         * io/mkdirat.c (mkdirat): Likewise.
15172         * io/mkfifo.c (mkfifo): Likewise.
15173         * io/mkfifoat.c (mkfifoat): Likewise.
15174         * io/open.c (__libc_open): Likewise.
15175         * io/open64.c (__libc_open64): Likewise.
15176         * io/readlink.c (__readlink): Likewise.
15177         * io/readlinkat.c (readlinkat): Likewise.
15178         * io/rmdir.c (__rmdir): Likewise.
15179         * io/symlink.c (__symlink): Likewise.
15180         * io/symlinkat.c (symlinkat): Likewise.
15181         * io/ttyname.c (ttyname): Likewise.
15182         * io/ttyname_r.c (__ttyname_r): Likewise.
15183         * io/umask.c (__umask): Likewise.
15184         * io/unlink.c (__unlink): Likewise.
15185         * io/unlinkat.c (unlinkat): Likewise.
15186         * io/utime.c (utime): Likewise.
15187         * libio/clearerr.c (clearerr): Likewise.
15188         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
15189         * libio/feof.c (_IO_feof): Likewise.
15190         * libio/feof_u.c (feof_unlocked): Likewise.
15191         * libio/ferror.c (_IO_ferror): Likewise.
15192         * libio/ferror_u.c (ferror_unlocked): Likewise.
15193         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
15194         * libio/fileno.c (__fileno): Likewise.
15195         * libio/fputc.c (fputc): Likewise.
15196         * libio/fputc_u.c (fputc_unlocked): Likewise.
15197         * libio/fputwc.c (fputwc): Likewise.
15198         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
15199         * libio/freopen.c (freopen): Likewise.
15200         * libio/freopen64.c (freopen64): Likewise.
15201         * libio/fseek.c (fseek): Likewise.
15202         * libio/fseeko.c (fseeko): Likewise.
15203         * libio/fseeko64.c (fseeko64): Likewise.
15204         * libio/ftello.c (__ftello): Likewise.
15205         * libio/ftello64.c (ftello64): Likewise.
15206         * libio/fwide.c (fwide): Likewise.
15207         * libio/genops.c (_IO_un_link): Likewise.
15208         (_IO_link_in): Likewise.
15209         (_IO_least_marker): Likewise.
15210         (_IO_switch_to_main_get_area): Likewise.
15211         (_IO_switch_to_backup_area): Likewise.
15212         (_IO_switch_to_get_mode): Likewise.
15213         (_IO_free_backup_area): Likewise.
15214         (_IO_switch_to_put_mode): Likewise.
15215         (__overflow): Likewise.
15216         (__underflow): Likewise.
15217         (__uflow): Likewise.
15218         (_IO_setb): Likewise.
15219         (_IO_doallocbuf): Likewise.
15220         (_IO_default_underflow): Likewise.
15221         (_IO_default_uflow): Likewise.
15222         (_IO_default_xsputn): Likewise.
15223         (_IO_sgetn): Likewise.
15224         (_IO_default_xsgetn): Likewise.
15225         (_IO_sync): Likewise.
15226         (_IO_default_setbuf): Likewise.
15227         (_IO_default_seekpos): Likewise.
15228         (_IO_default_doallocate): Likewise.
15229         (_IO_init): Likewise.
15230         (_IO_old_init): Likewise.
15231         (_IO_default_sync): Likewise.
15232         (_IO_default_finish): Likewise.
15233         (_IO_default_seekoff): Likewise.
15234         (_IO_sputbackc): Likewise.
15235         (_IO_sungetc): Likewise.
15236         (_IO_set_column): Likewise.
15237         (_IO_set_column): Likewise.
15238         (_IO_adjust_column): Likewise.
15239         (_IO_get_column): Likewise.
15240         (_IO_init_marker): Likewise.
15241         (_IO_remove_marker): Likewise.
15242         (_IO_marker_difference): Likewise.
15243         (_IO_marker_delta): Likewise.
15244         (_IO_seekmark): Likewise.
15245         (_IO_unsave_markers): Likewise.
15246         (_IO_nobackup_pbackfail): Likewise.
15247         (_IO_default_pbackfail): Likewise.
15248         (_IO_default_seek): Likewise.
15249         (_IO_default_stat): Likewise.
15250         (_IO_default_read): Likewise.
15251         (_IO_default_write): Likewise.
15252         (_IO_default_showmanyc): Likewise.
15253         (_IO_default_imbue): Likewise.
15254         (_IO_iter_next): Likewise.
15255         (_IO_iter_file): Likewise.
15256         * libio/getc.c (_IO_getc): Likewise.
15257         * libio/getwc.c (_IO_getwc): Likewise.
15258         * libio/iofclose.c (_IO_new_fclose): Likewise.
15259         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15260         * libio/iofflush.c (_IO_fflush): Likewise.
15261         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
15262         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
15263         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
15264         * libio/iofgets.c (_IO_fgets): Likewise.
15265         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
15266         * libio/iofgetws.c (fgetws): Likewise.
15267         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
15268         * libio/iofopen64.c (_IO_fopen64): Likewise.
15269         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15270         (_IO_cookie_write): Likewise.
15271         (_IO_cookie_seek): Likewise.
15272         (_IO_cookie_close): Likewise.
15273         (_IO_cookie_seekoff): Likewise.
15274         (_IO_old_cookie_seek): Likewise.
15275         * libio/iofputs.c (_IO_fputs): Likewise.
15276         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
15277         * libio/iofputws.c (fputws): Likewise.
15278         * libio/iofputws_u.c (fputws_unlocked): Likewise.
15279         * libio/iofread.c (_IO_fread): Likewise.
15280         * libio/iofread_u.c (__fread_unlocked): Likewise.
15281         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
15282         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
15283         * libio/ioftell.c (_IO_ftell): Likewise.
15284         * libio/iofwrite.c (_IO_fwrite): Likewise.
15285         * libio/iogetdelim.c (_IO_getdelim): Likewise.
15286         * libio/iogets.c (_IO_gets): Likewise.
15287         * libio/iopadn.c (_IO_padn): Likewise.
15288         * libio/iopopen.c (_IO_new_proc_open): Likewise.
15289         (_IO_new_popen): Likewise.
15290         (_IO_new_proc_close): Likewise.
15291         * libio/ioputs.c (_IO_puts): Likewise.
15292         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
15293         (_IO_seekoff): Likewise.
15294         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
15295         (_IO_seekpos): Likewise.
15296         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
15297         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
15298         * libio/ioungetc.c (_IO_ungetc): Likewise.
15299         * libio/ioungetwc.c (ungetwc): Likewise.
15300         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15301         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
15302         * libio/iowpadn.c (_IO_wpadn): Likewise.
15303         * libio/libc_fatal.c (__libc_fatal): Likewise.
15304         * libio/memstream.c (__open_memstream): Likewise.
15305         (_IO_mem_sync): Likewise.
15306         (_IO_mem_finish): Likewise.
15307         * libio/oldfileops.c (_IO_old_file_init): Likewise.
15308         (_IO_old_file_close_it): Likewise.
15309         (_IO_old_file_finish): Likewise.
15310         (_IO_old_file_fopen): Likewise.
15311         (_IO_old_file_attach): Likewise.
15312         (_IO_old_file_setbuf): Likewise.
15313         (_IO_old_do_write): Likewise.
15314         (old_do_write): Likewise.
15315         (_IO_old_file_underflow): Likewise.
15316         (_IO_old_file_overflow): Likewise.
15317         (_IO_old_file_sync): Likewise.
15318         (_IO_old_file_seekoff): Likewise.
15319         (_IO_old_file_write): Likewise.
15320         (_IO_old_file_xsputn): Likewise.
15321         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
15322         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15323         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
15324         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
15325         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
15326         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
15327         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
15328         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
15329         (_IO_old_popen): Likewise.
15330         (_IO_old_proc_close): Likewise.
15331         * libio/oldpclose.c (__old_pclose): Likewise.
15332         * libio/pclose.c (__new_pclose): Likewise.
15333         * libio/peekc.c (_IO_peekc_locked): Likewise.
15334         * libio/putc.c (_IO_putc): Likewise.
15335         * libio/putc_u.c (putc_unlocked): Likewise.
15336         * libio/putchar.c (putchar): Likewise.
15337         * libio/putchar_u.c (putchar_unlocked): Likewise.
15338         * libio/putwc.c (putwc): Likewise.
15339         * libio/putwc_u.c (putwc_unlocked): Likewise.
15340         * libio/putwchar.c (putwchar): Likewise.
15341         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
15342         * libio/rewind.c (rewind): Likewise.
15343         * libio/setbuf.c (setbuf): Likewise.
15344         * libio/setlinebuf.c (setlinebuf): Likewise.
15345         * libio/vasprintf.c (_IO_vasprintf): Likewise.
15346         * libio/vscanf.c (_IO_vscanf): Likewise.
15347         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
15348         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
15349         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
15350         * libio/wgenops.c (_IO_least_wmarker): Likewise.
15351         (_IO_switch_to_main_wget_area): Likewise.
15352         (_IO_switch_to_wbackup_area): Likewise.
15353         (_IO_wsetb): Likewise.
15354         (_IO_wdefault_pbackfail): Likewise.
15355         (_IO_wdefault_finish): Likewise.
15356         (_IO_wdefault_uflow): Likewise.
15357         (__woverflow): Likewise.
15358         (__wuflow): Likewise.
15359         (__wunderflow): Likewise.
15360         (_IO_wdefault_xsputn): Likewise.
15361         (_IO_wdefault_xsgetn): Likewise.
15362         (_IO_wdoallocbuf): Likewise.
15363         (_IO_wdefault_doallocate): Likewise.
15364         (_IO_switch_to_wget_mode): Likewise.
15365         (_IO_free_wbackup_area): Likewise.
15366         (_IO_switch_to_wput_mode): Likewise.
15367         (_IO_sputbackwc): Likewise.
15368         (_IO_sungetwc): Likewise.
15369         (_IO_adjust_wcolumn): Likewise.
15370         (_IO_init_wmarker): Likewise.
15371         (_IO_wmarker_delta): Likewise.
15372         (_IO_seekwmark): Likewise.
15373         (_IO_unsave_wmarkers): Likewise.
15374         * libio/wmemstream.c (open_wmemstream): Likewise.
15375         (_IO_wmem_sync): Likewise.
15376         (_IO_wmem_finish): Likewise.
15377         * locale/nl_langinfo.c (nl_langinfo): Likewise.
15378         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
15379         * locale/programs/simple-hash.c (init_hash): Likewise.
15380         (delete_hash): Likewise.
15381         (insert_entry): Likewise.
15382         (set_entry): Likewise.
15383         (next_prime): Likewise.
15384         (is_prime): Likewise.
15385         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
15386         (xmalloc): Likewise.
15387         (xrealloc): Likewise.
15388         * locale/programs/xstrdup.c (xstrdup): Likewise.
15389         * localedata/collate-test.c (xstrcoll): Likewise.
15390         * localedata/xfrm-test.c (xstrcmp): Likewise.
15391         * login/getlogin_r.c (__getlogin_r): Likewise.
15392         * login/getpt.c (__posix_openpt): Likewise.
15393         * login/login_tty.c (login_tty): Likewise.
15394         * login/setlogin.c (setlogin): Likewise.
15395         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
15396         (mach_msg_destroy_port): Likewise.
15397         (mach_msg_destroy_memory): Likewise.
15398         * malloc/mcheck.c (flood): Likewise.
15399         * misc/acct.c (acct): Likewise.
15400         * misc/brk.c (__brk): Likewise.
15401         * misc/chflags.c (chflags): Likewise.
15402         * misc/chroot.c (chroot): Likewise.
15403         * misc/fchflags.c (fchflags): Likewise.
15404         * misc/fstab.c (getfsspec): Likewise.
15405         (getfsfile): Likewise.
15406         * misc/fsync.c (fsync): Likewise.
15407         * misc/ftruncate.c (__ftruncate): Likewise.
15408         * misc/ftruncate64.c (__ftruncate64): Likewise.
15409         * misc/getdomain.c (getdomainname): Likewise.
15410         (getdomainname): Likewise.
15411         * misc/gethostname.c (__gethostname): Likewise.
15412         * misc/getpass.c (getpass): Likewise.
15413         * misc/getttyent.c (skip): Likewise.
15414         (value): Likewise.
15415         * misc/gtty.c (gtty): Likewise.
15416         * misc/hsearch.c (hsearch): Likewise.
15417         (hcreate): Likewise.
15418         * misc/hsearch_r.c (__hcreate_r): Likewise.
15419         (__hdestroy_r): Likewise.
15420         * misc/ioctl.c (__ioctl): Likewise.
15421         * misc/mkdtemp.c (mkdtemp): Likewise.
15422         * misc/mkostemp.c (mkostemp): Likewise.
15423         * misc/mkostemp64.c (mkostemp64): Likewise.
15424         * misc/mkostemps.c (mkostemps): Likewise.
15425         * misc/mkostemps64.c (mkostemps64): Likewise.
15426         * misc/mkstemp.c (mkstemp): Likewise.
15427         * misc/mkstemp64.c (mkstemp64): Likewise.
15428         * misc/mkstemps.c (mkstemps): Likewise.
15429         * misc/mkstemps64.c (mkstemps64): Likewise.
15430         * misc/mktemp.c (__mktemp): Likewise.
15431         * misc/preadv.c (preadv): Likewise.
15432         * misc/preadv64.c (preadv64): Likewise.
15433         * misc/pwritev.c (pwritev): Likewise.
15434         * misc/pwritev64.c (pwritev64): Likewise.
15435         * misc/readv.c (__readv): Likewise.
15436         * misc/revoke.c (revoke): Likewise.
15437         * misc/setdomain.c (setdomainname): Likewise.
15438         * misc/setegid.c (setegid): Likewise.
15439         * misc/seteuid.c (seteuid): Likewise.
15440         * misc/sethostid.c (sethostid): Likewise.
15441         * misc/sethostname.c (sethostname): Likewise.
15442         * misc/setregid.c (__setregid): Likewise.
15443         * misc/setreuid.c (__setreuid): Likewise.
15444         * misc/sstk.c (sstk): Likewise.
15445         * misc/stty.c (stty): Likewise.
15446         * misc/syscall.c (syscall): Likewise.
15447         * misc/syslog.c (setlogmask): Likewise.
15448         * misc/truncate.c (__truncate): Likewise.
15449         * misc/truncate64.c (truncate64): Likewise.
15450         * misc/ualarm.c (ualarm): Likewise.
15451         * misc/usleep.c (usleep): Likewise.
15452         * misc/ustat.c (ustat): Likewise.
15453         * misc/writev.c (__writev): Likewise.
15454         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
15455         * nptl/old_pthread_cond_broadcast.c
15456         (__pthread_cond_broadcast_2_0): Likewise.
15457         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
15458         Likewise.
15459         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
15460         Likewise.
15461         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
15462         Likewise.
15463         * nptl/pt-raise.c (raise): Likewise.
15464         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
15465         Likewise.
15466         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
15467         * nptl/pthread_barrierattr_destroy.c
15468         (pthread_barrierattr_destroy): Likewise.
15469         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15470         Likewise.
15471         * nptl/pthread_barrierattr_setpshared.c
15472         (pthread_barrierattr_setpshared): Likewise.
15473         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
15474         Likewise.
15475         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
15476         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15477         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
15478         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
15479         Likewise.
15480         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
15481         Likewise.
15482         * nptl/pthread_condattr_getpshared.c
15483         (pthread_condattr_getpshared): Likewise.
15484         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
15485         Likewise.
15486         * nptl/pthread_condattr_setpshared.c
15487         (pthread_condattr_setpshared): Likewise.
15488         * nptl/pthread_detach.c (pthread_detach): Likewise.
15489         * nptl/pthread_equal.c (__pthread_equal): Likewise.
15490         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
15491         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
15492         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
15493         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
15494         Likewise.
15495         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
15496         Likewise.
15497         * nptl/pthread_mutex_getprioceiling.c
15498         (pthread_mutex_getprioceiling): Likewise.
15499         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
15500         Likewise.
15501         * nptl/pthread_mutexattr_getprotocol.c
15502         (pthread_mutexattr_getprotocol): Likewise.
15503         * nptl/pthread_mutexattr_getpshared.c
15504         (pthread_mutexattr_getpshared): Likewise.
15505         * nptl/pthread_mutexattr_getrobust.c
15506         (pthread_mutexattr_getrobust): Likewise.
15507         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
15508         Likewise.
15509         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
15510         Likewise.
15511         * nptl/pthread_mutexattr_setprioceiling.c
15512         (pthread_mutexattr_setprioceiling): Likewise.
15513         * nptl/pthread_mutexattr_setprotocol.c
15514         (pthread_mutexattr_setprotocol): Likewise.
15515         * nptl/pthread_mutexattr_setpshared.c
15516         (pthread_mutexattr_setpshared): Likewise.
15517         * nptl/pthread_mutexattr_setrobust.c
15518         (pthread_mutexattr_setrobust): Likewise.
15519         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
15520         Likewise.
15521         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
15522         Likewise.
15523         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
15524         Likewise.
15525         * nptl/pthread_rwlockattr_getkind_np.c
15526         (pthread_rwlockattr_getkind_np): Likewise.
15527         * nptl/pthread_rwlockattr_getpshared.c
15528         (pthread_rwlockattr_getpshared): Likewise.
15529         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
15530         Likewise.
15531         * nptl/pthread_rwlockattr_setkind_np.c
15532         (pthread_rwlockattr_setkind_np): Likewise.
15533         * nptl/pthread_rwlockattr_setpshared.c
15534         (pthread_rwlockattr_setpshared): Likewise.
15535         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
15536         Likewise.
15537         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
15538         Likewise.
15539         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
15540         Likewise.
15541         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
15542         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
15543         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
15544         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
15545         * nptl/sem_close.c (sem_close): Likewise.
15546         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
15547         * nptl/sem_init.c (__old_sem_init): Likewise.
15548         * nptl/sigaction.c (__sigaction): Likewise.
15549         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15550         * posix/_exit.c (_exit): Likewise.
15551         * posix/alarm.c (alarm): Likewise.
15552         * posix/confstr.c (confstr): Likewise.
15553         * posix/fpathconf.c (__fpathconf): Likewise.
15554         * posix/getgroups.c (__getgroups): Likewise.
15555         * posix/getpgid.c (__getpgid): Likewise.
15556         * posix/group_member.c (__group_member): Likewise.
15557         * posix/pathconf.c (__pathconf): Likewise.
15558         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
15559         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
15560         * posix/setgid.c (__setgid): Likewise.
15561         * posix/setpgid.c (__setpgid): Likewise.
15562         * posix/setuid.c (__setuid): Likewise.
15563         * posix/sleep.c (__sleep): Likewise.
15564         * posix/sysconf.c (__sysconf): Likewise.
15565         * posix/times.c (__times): Likewise.
15566         * posix/uname.c (__uname): Likewise.
15567         * posix/waitid.c (__waitid): Likewise.
15568         * pwd/getpw.c (__getpw): Likewise.
15569         * resolv/base64.c (b64_pton): Likewise.
15570         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
15571         * resolv/gethnamaddr.c (Dprintf): Likewise.
15572         (gethostbyname): Likewise.
15573         (gethostbyname2): Likewise.
15574         (gethostbyaddr): Likewise.
15575         (_sethtent): Likewise.
15576         (_gethtbyname): Likewise.
15577         (_gethtbyname2): Likewise.
15578         (_gethtbyaddr): Likewise.
15579         (map_v4v6_address): Likewise.
15580         (map_v4v6_hostent): Likewise.
15581         (addrsort): Likewise.
15582         (ht_sethostent): Likewise.
15583         (ht_gethostbyname): Likewise.
15584         (ht_gethostbyaddr): Likewise.
15585         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
15586         (inet_net_ntop_ipv4): Likewise.
15587         * resolv/inet_neta.c (inet_neta): Likewise.
15588         * resolv/inet_ntop.c (inet_ntop): Likewise.
15589         (inet_ntop4): Likewise.
15590         (inet_ntop6): Likewise.
15591         * resolv/inet_pton.c (__inet_pton): Likewise.
15592         (inet_pton4): Likewise.
15593         (inet_pton6): Likewise.
15594         * resolv/res_debug.c (loc_aton): Likewise.
15595         (loc_ntoa): Likewise.
15596         * resource/getpriority.c (__getpriority): Likewise.
15597         * resource/getrusage.c (__getrusage): Likewise.
15598         * resource/nice.c (nice): Likewise.
15599         * resource/setpriority.c (__setpriority): Likewise.
15600         * resource/setrlimit64.c (setrlimit64): Likewise.
15601         * resource/vlimit.c (vlimit): Likewise.
15602         * resource/vtimes.c (vtimes): Likewise.
15603         * rt/aio_error.c (aio_error): Likewise.
15604         * rt/aio_return.c (aio_return): Likewise.
15605         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
15606         * signal/kill.c (__kill): Likewise.
15607         * signal/killpg.c (killpg): Likewise.
15608         * signal/raise.c (raise): Likewise.
15609         * signal/sigaction.c (__sigaction): Likewise.
15610         * signal/sigaddset.c (sigaddset): Likewise.
15611         * signal/sigaltstack.c (sigaltstack): Likewise.
15612         * signal/sigandset.c (sigandset): Likewise.
15613         * signal/sigblock.c (__sigblock): Likewise.
15614         * signal/sigdelset.c (sigdelset): Likewise.
15615         * signal/sigempty.c (sigemptyset): Likewise.
15616         * signal/sigfillset.c (sigfillset): Likewise.
15617         * signal/sighold.c (sighold): Likewise.
15618         * signal/sigignore.c (sigignore): Likewise.
15619         * signal/sigintr.c (siginterrupt): Likewise.
15620         * signal/sigisempty.c (sigisemptyset): Likewise.
15621         * signal/sigismem.c (sigismember): Likewise.
15622         * signal/signal.c (signal): Likewise.
15623         * signal/sigorset.c (sigorset): Likewise.
15624         * signal/sigpause.c (__sigpause): Likewise.
15625         * signal/sigpending.c (sigpending): Likewise.
15626         * signal/sigprocmask.c (__sigprocmask): Likewise.
15627         * signal/sigrelse.c (sigrelse): Likewise.
15628         * signal/sigreturn.c (__sigreturn): Likewise.
15629         * signal/sigset.c (sigset): Likewise.
15630         * signal/sigsetmask.c (__sigsetmask): Likewise.
15631         * signal/sigstack.c (sigstack): Likewise.
15632         * signal/sigsuspend.c (__sigsuspend): Likewise.
15633         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
15634         * signal/sysv_signal.c (__sysv_signal): Likewise.
15635         * socket/accept.c (accept): Likewise.
15636         * socket/accept4.c (__libc_accept4): Likewise.
15637         * socket/bind.c (__bind): Likewise.
15638         * socket/connect.c (__connect): Likewise.
15639         * socket/getpeername.c (getpeername): Likewise.
15640         * socket/getsockname.c (__getsockname): Likewise.
15641         * socket/getsockopt.c (getsockopt): Likewise.
15642         * socket/listen.c (__listen): Likewise.
15643         * socket/recv.c (__recv): Likewise.
15644         * socket/recvmsg.c (__recvmsg): Likewise.
15645         * socket/send.c (__send): Likewise.
15646         * socket/sendmsg.c (__sendmsg): Likewise.
15647         * socket/shutdown.c (shutdown): Likewise.
15648         * socket/sockatmark.c (sockatmark): Likewise.
15649         * socket/socket.c (__socket): Likewise.
15650         * stdio-common/ctermid.c (ctermid): Likewise.
15651         * stdio-common/cuserid.c (cuserid): Likewise.
15652         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
15653         * stdio-common/remove.c (remove): Likewise.
15654         * stdio-common/rename.c (rename): Likewise.
15655         * stdio-common/renameat.c (renameat): Likewise.
15656         * stdio-common/tempname.c (__gen_tempname): Likewise.
15657         * stdio-common/xbug.c (InitBuffer): Likewise.
15658         (AppendToBuffer): Likewise.
15659         (ReadFile): Likewise.
15660         * stdlib/a64l.c (a64l): Likewise.
15661         * stdlib/drand48_r.c (drand48_r): Likewise.
15662         * stdlib/getcontext.c (getcontext): Likewise.
15663         * stdlib/getenv.c (getenv): Likewise.
15664         * stdlib/l64a.c (l64a): Likewise.
15665         * stdlib/llabs.c (llabs): Likewise.
15666         * stdlib/lldiv.c (lldiv): Likewise.
15667         * stdlib/lrand48_r.c (lrand48_r): Likewise.
15668         * stdlib/mrand48_r.c (mrand48_r): Likewise.
15669         * stdlib/putenv.c (putenv): Likewise.
15670         * stdlib/random.c (__srandom): Likewise.
15671         (__initstate): Likewise.
15672         (__setstate): Likewise.
15673         * stdlib/random_r.c (__srandom_r): Likewise.
15674         (__setstate_r): Likewise.
15675         (__random_r): Likewise.
15676         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
15677         * stdlib/setcontext.c (setcontext): Likewise.
15678         * stdlib/setenv.c (setenv): Likewise.
15679         (unsetenv): Likewise.
15680         * stdlib/srand48.c (srand48): Likewise.
15681         * stdlib/srand48_r.c (__srand48_r): Likewise.
15682         * stdlib/swapcontext.c (swapcontext): Likewise.
15683         * stdlib/system.c (__libc_system): Likewise.
15684         * stdlib/tst-strtod.c (expand): Likewise.
15685         * stdlib/tst-strtol.c (expand): Likewise.
15686         * stdlib/tst-strtoll.c (expand): Likewise.
15687         * streams/fattach.c (fattach): Likewise.
15688         * streams/fdetach.c (fdetach): Likewise.
15689         * streams/getmsg.c (getmsg): Likewise.
15690         * streams/isastream.c (isastream): Likewise.
15691         * string/ffs.c (__ffs): Likewise.
15692         * string/ffsll.c (ffsll): Likewise.
15693         * string/memcmp.c (memcmp_common_alignment): Likewise.
15694         (memcmp_not_common_alignment): Likewise.
15695         (MEMCMP): Likewise.
15696         * string/memcpy.c (memcpy): Likewise.
15697         * string/memmove.c (MEMMOVE): Likewise.
15698         * string/memset.c (memset): Likewise.
15699         * string/rawmemchr.c (RAWMEMCHR): Likewise.
15700         * string/strchrnul.c (STRCHRNUL): Likewise.
15701         * string/strerror.c (strerror): Likewise.
15702         * string/strndup.c (__strndup): Likewise.
15703         * string/strverscmp.c (__strverscmp): Likewise.
15704         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
15705         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
15706         (clnttcp_freeres): Likewise.
15707         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
15708         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
15709         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
15710         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
15711         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
15712         (xdr_callhdr): Likewise.
15713         * sunrpc/rpcinfo.c (udpping): Likewise.
15714         (tcpping): Likewise.
15715         (pstatus): Likewise.
15716         (pmapdump): Likewise.
15717         (brdcst): Likewise.
15718         (deletereg): Likewise.
15719         (getprognum): Likewise.
15720         (getvers): Likewise.
15721         (get_inet_address): Likewise.
15722         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
15723         * sunrpc/svc_udp.c (svcudp_create): Likewise.
15724         (svcudp_stat): Likewise.
15725         (svcudp_recv): Likewise.
15726         (svcudp_reply): Likewise.
15727         (svcudp_getargs): Likewise.
15728         (svcudp_freeargs): Likewise.
15729         (svcudp_destroy): Likewise.
15730         * sunrpc/xdr.c (xdr_bytes): Likewise.
15731         (xdr_netobj): Likewise.
15732         (xdr_string): Likewise.
15733         (xdr_wrapstring): Likewise.
15734         * sunrpc/xdr_float.c (xdr_float): Likewise.
15735         (xdr_double): Likewise.
15736         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
15737         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
15738         * sysvipc/ftok.c (ftok): Likewise.
15739         * sysvipc/msgctl.c (msgctl): Likewise.
15740         * sysvipc/msgget.c (msgget): Likewise.
15741         * sysvipc/msgrcv.c (msgrcv): Likewise.
15742         * sysvipc/msgsnd.c (msgsnd): Likewise.
15743         * sysvipc/semget.c (semget): Likewise.
15744         * sysvipc/semop.c (semop): Likewise.
15745         * sysvipc/shmat.c (shmat): Likewise.
15746         * sysvipc/shmctl.c (shmctl): Likewise.
15747         * sysvipc/shmdt.c (shmdt): Likewise.
15748         * sysvipc/shmget.c (shmget): Likewise.
15749         * termios/cfmakeraw.c (cfmakeraw): Likewise.
15750         * termios/speed.c (cfgetospeed): Likewise.
15751         (cfgetispeed): Likewise.
15752         (cfsetospeed): Likewise.
15753         (cfsetispeed): Likewise.
15754         * termios/tcflow.c (tcflow): Likewise.
15755         * termios/tcflush.c (tcflush): Likewise.
15756         * termios/tcgetattr.c (__tcgetattr): Likewise.
15757         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
15758         * termios/tcgetsid.c (tcgetsid): Likewise.
15759         * termios/tcsendbrk.c (tcsendbreak): Likewise.
15760         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
15761         * time/adjtime.c (__adjtime): Likewise.
15762         * time/dysize.c (dysize): Likewise.
15763         * time/ftime.c (ftime): Likewise.
15764         * time/getitimer.c (__getitimer): Likewise.
15765         * time/gettimeofday.c (__gettimeofday): Likewise.
15766         * time/gmtime.c (__gmtime_r): Likewise.
15767         (gmtime): Likewise.
15768         * time/localtime.c (__localtime_r): Likewise.
15769         (localtime): Likewise.
15770         * time/offtime.c (__offtime): Likewise.
15771         * time/settimeofday.c (__settimeofday): Likewise.
15772         * time/stime.c (stime): Likewise.
15773         * time/strftime_l.c (tm_diff): Likewise.
15774         (iso_week_days): Likewise.
15775         * time/strptime.c (strptime): Likewise.
15776         * time/time.c (time): Likewise.
15777         * time/timespec_get.c (timespec_get): Likewise.
15778         * time/tzset.c (tzset_internal): Likewise.
15779         (compute_change): Likewise.
15780         (__tz_compute): Likewise.
15781         * wcsmbs/btowc.c (__btowc): Likewise.
15782         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
15783         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
15784         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
15785         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
15786         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
15787         * wcsmbs/wcscat.c (__wcscat): Likewise.
15788         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15789         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
15790         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
15791         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15792         * wcsmbs/wcsdup.c (wcsdup): Likewise.
15793         * wcsmbs/wcslen.c (__wcslen): Likewise.
15794         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
15795         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
15796         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
15797         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
15798         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15799         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
15800         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15801         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15802         * wcsmbs/wcstok.c (wcstok): Likewise.
15803         * wcsmbs/wctob.c (wctob): Likewise.
15804         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
15805         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15806         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
15807         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
15808         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
15809         * wcsmbs/wmemset.c (__wmemset): Likewise.
15810         * wctype/wcfuncs.c (__towlower): Likewise.
15811         (__towupper): Likewise.
15812
15813         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
15814         (lll_unlock_elision): Add adapt_count parameter.
15815
15816 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
15817
15818         * sysdeps/nptl/configure.ac: Do not give errors based on the
15819         results of top-level configure tests.
15820         * sysdeps/nptl/configure: Regenerated.
15821
15822         * configure.ac (libc_cv_Bgroup): Remove configure test.
15823         * configure: Regenerated.
15824         * config.make.in (have-Bgroup): Remove variable.
15825
15826         * configure.ac (sizeof_long_double): Remove configure test.
15827         * configure: Regenerated.
15828         * config.make.in (sizeof-long-double): Remove variable.
15829
15830         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
15831         * configure: Regenerated.
15832         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
15833         variable.
15834         (exceptions): Likewise.
15835         * sysdeps/arm/configure: Regenerated.
15836         * config.make.in (exceptions): Remove variable.
15837         * Makeconfig (uses-callbacks): Use -fexceptions instead of
15838         $(exceptions).
15839         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
15840         (CFLAGS-vdprintf_chk.c): Likewise.
15841         (CFLAGS-printf_chk.c): Likewise.
15842         (CFLAGS-fprintf_chk.c): Likewise.
15843         (CFLAGS-vprintf_chk.c): Likewise.
15844         (CFLAGS-vfprintf_chk.c): Likewise.
15845         (CFLAGS-gets_chk.c): Likewise.
15846         (CFLAGS-fgets_chk.c): Likewise.
15847         (CFLAGS-fgets_u_chk.c): Likewise.
15848         (CFLAGS-fread_chk.c): Likewise.
15849         (CFLAGS-fread_u_chk.c): Likewise.
15850         (CFLAGS-wprintf_chk.c): Likewise.
15851         (CFLAGS-fwprintf_chk.c): Likewise.
15852         (CFLAGS-vwprintf_chk.c): Likewise.
15853         (CFLAGS-vfwprintf_chk.c): Likewise.
15854         (CFLAGS-fgetws_chk.c): Likewise.
15855         (CFLAGS-fgetws_u_chk.c): Likewise.
15856         * libio/Makefile (CFLAGS-fileops.c): Likewise.
15857         (CFLAGS-fputc.c): Likewise.
15858         (CFLAGS-fputwc.c): Likewise.
15859         (CFLAGS-freopen64.c): Likewise.
15860         (CFLAGS-freopen.c): Likewise.
15861         (CFLAGS-fseek.c): Likewise.
15862         (CFLAGS-fseeko64.c): Likewise.
15863         (CFLAGS-fseeko.c): Likewise.
15864         (CFLAGS-ftello64.c): Likewise.
15865         (CFLAGS-ftello.c): Likewise.
15866         (CFLAGS-fwide.c): Likewise.
15867         (CFLAGS-genops.c): Likewise.
15868         (CFLAGS-getc.c): Likewise.
15869         (CFLAGS-getchar.c): Likewise.
15870         (CFLAGS-getwc.c): Likewise.
15871         (CFLAGS-getwchar.c): Likewise.
15872         (CFLAGS-iofclose.c): Likewise.
15873         (CFLAGS-iofflush.c): Likewise.
15874         (CFLAGS-iofgetpos64.c): Likewise.
15875         (CFLAGS-iofgetpos.c): Likewise.
15876         (CFLAGS-iofgets.c): Likewise.
15877         (CFLAGS-iofgetws.c): Likewise.
15878         (CFLAGS-iofputs.c): Likewise.
15879         (CFLAGS-iofputws.c): Likewise.
15880         (CFLAGS-iofread.c): Likewise.
15881         (CFLAGS-iofsetpos64.c): Likewise.
15882         (CFLAGS-iofsetpos.c): Likewise.
15883         (CFLAGS-ioftell.c): Likewise.
15884         (CFLAGS-iofwrite.c): Likewise.
15885         (CFLAGS-iogetdelim.c): Likewise.
15886         (CFLAGS-iogetline.c): Likewise.
15887         (CFLAGS-iogets.c): Likewise.
15888         (CFLAGS-iogetwline.c): Likewise.
15889         (CFLAGS-ioputs.c): Likewise.
15890         (CFLAGS-ioseekoff.c): Likewise.
15891         (CFLAGS-ioseekpos.c): Likewise.
15892         (CFLAGS-iosetbuffer.c): Likewise.
15893         (CFLAGS-iosetvbuf.c): Likewise.
15894         (CFLAGS-ioungetc.c): Likewise.
15895         (CFLAGS-ioungetwc.c): Likewise.
15896         (CFLAGS-oldfileops.c): Likewise.
15897         (CFLAGS-oldiofclose.c): Likewise.
15898         (CFLAGS-oldiofgetpos64.c): Likewise.
15899         (CFLAGS-oldiofgetpos.c): Likewise.
15900         (CFLAGS-oldiofsetpos64.c): Likewise.
15901         (CFLAGS-oldiofsetpos.c): Likewise.
15902         (CFLAGS-peekc.c): Likewise.
15903         (CFLAGS-putc.c): Likewise.
15904         (CFLAGS-putchar.c): Likewise.
15905         (CFLAGS-putwc.c): Likewise.
15906         (CFLAGS-putwchar.c): Likewise.
15907         (CFLAGS-rewind.c): Likewise.
15908         (CFLAGS-wfileops.c): Likewise.
15909         (CFLAGS-wgenops.c): Likewise.
15910         (CFLAGS-oldiofopen.c): Likewise.
15911         (CFLAGS-iofopen.c): Likewise.
15912         (CFLAGS-iofopen64.c): Likewise.
15913         (CFLAGS-oldtmpfile.c): Likewise.
15914         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
15915         (CFLAGS-fprintf.c): Likewise.
15916         (CFLAGS-printf.c): Likewise.
15917         (CFLAGS-vfwprintf.c): Likewise.
15918         (CFLAGS-vfscanf.c): Likewise.
15919         (CFLAGS-vfwscanf.c): Likewise.
15920         (CFLAGS-fscanf.c): Likewise.
15921         (CFLAGS-scanf.c): Likewise.
15922         (CFLAGS-isoc99_vfscanf.c): Likewise.
15923         (CFLAGS-isoc99_vscanf.c): Likewise.
15924         (CFLAGS-isoc99_fscanf.c): Likewise.
15925         (CFLAGS-isoc99_scanf.c): Likewise.
15926         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
15927         (CFLAGS-isoc99_fwscanf.c): Likewise.
15928         (CFLAGS-isoc99_vwscanf.c): Likewise.
15929         (CFLAGS-isoc99_vfwscanf.c): Likewise.
15930
15931         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
15932         after mkstemp64.
15933         * login/tst-utmp.c (do_prepare): Likewise.
15934         * rt/tst-aio.c (do_prepare): Likewise.
15935         * rt/tst-aio64.c (do_prepare): Likewise.
15936
15937 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15938
15939         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
15940         (__lll_lock_elision): Remove adapt_count decrement...
15941         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15942         (__lll_trylock_elision): Likewise.
15943         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15944         (__lll_unlock_elision): ... to here. And utilize
15945         new adapt_count parameter.
15946         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
15947         (__lll_unlock_elision): Update to include adapt_count
15948         parameter.
15949         (lll_unlock_elision): Pass pointer to adapt_count
15950         variable.
15951
15952 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15953
15954         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
15955         Add elision adapt_count parameter to list of arguments.
15956         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
15957         (lll_unlock_elision): Update with new parameter list
15958         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
15959         (lll_unlock_elision): Likewise.
15960         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
15961         (lll_unlock_elision): Likewise.
15962
15963 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
15964
15965         [BZ #19122]
15966         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
15967         attribute_hidden.
15968
15969         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
15970         attribute_hidden.
15971         [IS_IN (rtld)] (__strdup): Likewise.
15972         [IS_IN (rtld)] (__strerror_r): Likewise.
15973         [IS_IN (rtld)] (__strsep_g): Likewise.
15974         [IS_IN (rtld)] (memchr): Likewise.
15975         [IS_IN (rtld)] (memcmp): Likewise.
15976         [IS_IN (rtld)] (memcpy): Likewise.
15977         [IS_IN (rtld)] (memmove): Likewise.
15978         [IS_IN (rtld)] (memset): Likewise.
15979         [IS_IN (rtld)] (rawmemchr): Likewise.
15980         [IS_IN (rtld)] (stpcpy): Likewise.
15981         [IS_IN (rtld)] (strchr): Likewise.
15982         [IS_IN (rtld)] (strcmp): Likewise.
15983         [IS_IN (rtld)] (strlen): Likewise.
15984         [IS_IN (rtld)] (strnlen): Likewise.
15985         [IS_IN (rtld)] (strsep): Likewise.
15986
15987         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
15988         attribute_hidden.
15989         [IS_IN (rtld)] (__strtoul_internal): Likewise.
15990
15991         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
15992         attribute_hidden.
15993         [IS_IN (rtld)] (__libc_sigaction): Likewise.
15994
15995         * include/setjmp.h (__longjmp): Add attribute_hidden.
15996         [IS_IN (rtld)] (__sigsetjmp): Likewise.
15997
15998         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
15999         Add attribute_hidden.
16000
16001         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
16002         [IS_IN (rtld)] (__open): Likewise.
16003         [IS_IN (rtld)] (__fcntl): Likewise.
16004
16005         * include/dirent.h (__opendirat): Add attribute_hidden.
16006         (__getdents): Likewise.
16007         (__getdents64): Likewise.
16008         (__alloc_dir): Likewise.
16009         [IS_IN (rtld)] (__closedir): Likewise.
16010         [IS_IN (rtld)] (__fdopendir): Likewise.
16011         [IS_IN (rtld)] (__readdir): Likewise.
16012         [IS_IN (rtld)] (__readdir64): Likewise.
16013         [IS_IN (rtld)] (__rewinddir): Likewise.
16014
16015         * include/dlfcn.h (_dl_catch_error): Moved to ...
16016         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
16017         attribute_hidden.
16018
16019         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
16020         (_itoa_word): Likewise.
16021
16022         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
16023         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
16024         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
16025         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
16026         (_dl_higher_prime_number): Likewise.
16027         (_dl_debug_printf_c): Likewise.
16028         (_dl_signal_cerror): Likewise.
16029         (_dl_receive_error): Likewise.
16030         (_dl_reloc_bad_type): Likewise.
16031         (_dl_resolve_conflicts): Likewise.
16032         (_dl_check_all_versions): Likewise.
16033         (_dl_check_map_versions): Likewise.
16034         (_dl_sort_fini): Likewise.
16035         (_dl_debug_initialize): Likewise.
16036         (_dl_init_paths): Likewise.
16037         (_dl_show_auxv): Likewise.
16038         (_dl_next_ld_env_entry): Likewise.
16039         (_dl_important_hwcaps): Likewise.
16040         (_dl_load_cache_lookup): Likewise.
16041         (_dl_update_slotinfo): Likewise.
16042         (_dl_show_scope): Likewise.
16043
16044         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
16045         attribute_hidden.
16046         (_wordcopy_fwd_dest_aligned): Likewise.
16047         (_wordcopy_bwd_aligned): Likewise.
16048         (_wordcopy_bwd_dest_aligned): Likewise.
16049
16050         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
16051         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16052         Likewise.
16053         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
16054         Likewise.
16055         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
16056
16057 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16058
16059         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
16060         GCC 5 requirement.
16061
16062 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
16063
16064         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
16065         test.
16066         * sysdeps/i386/configure: Regenerated.
16067         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
16068         code unconditional.
16069
16070         * configure.ac (libc_cv_asm_previous_directive): Remove configure
16071         test.
16072         (libc_cv_asm_popsection_directive): Likewise.
16073         * configure: Regenerated.
16074         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
16075         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
16076         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
16077         (__make_section_unallocated): Make definition unconditional.
16078         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
16079         Remove conditional definition.
16080         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
16081         (__make_section_unallocated): Likewise.
16082
16083         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
16084         * configure: Regenerated.
16085         * config.make.in (static-libgcc): Remove variable.
16086         * Makerules (build-shlib-helper): Use -static-libgcc instead of
16087         $(static-libgcc).
16088         (build-module-helper): Likewise.
16089
16090         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
16091         * configure: Regenerated.
16092
16093 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16094
16095         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
16096         (struct char_buffer): New type.
16097         (char_buffer_start, char_buffer_size, char_buffer_error)
16098         (char_buffer_rewind, char_buffer_add): New functions.
16099         (ADDW): Remove macro, replaced by the char_buffer_add function.
16100         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
16101         of extend_alloca.  Make control flow more explicit.
16102
16103 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16104
16105         [BZ #19137]
16106         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
16107         Add -fomit-frame-pointer.
16108         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
16109
16110 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16111
16112         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
16113         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
16114         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
16115         only if !__GNUC_PREREQ (5,0).
16116         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
16117         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
16118         (INTERNAL_SYSCALL_NCS): Likewise.
16119         (LOADREGS_0): New macro for GCC 5.
16120         (ASMARGS_0): Likewise.
16121         (LOADREGS_1): Likewise.
16122         (ASMARGS_1): Likewise.
16123         (LOADREGS_2): Likewise.
16124         (ASMARGS_2): Likewise.
16125         (LOADREGS_3): Likewise.
16126         (ASMARGS_3): Likewise.
16127         (LOADREGS_4): Likewise.
16128         (ASMARGS_4): Likewise.
16129         (LOADREGS_5): Likewise.
16130         (ASMARGS_5): Likewise.
16131         (LOADREGS_6): Likewise.
16132         (ASMARGS_6): Likewise.
16133
16134 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
16135
16136         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
16137         -fomit-frame-pointer.
16138         (CFLAGS-mmap64.c): Likewise.
16139         (CFLAGS-semtimedop.c): Likewise.
16140         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
16141         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
16142         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
16143         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
16144
16145 2015-10-15  Florian Weimer  <fweimer@redhat.com>
16146
16147         [BZ #18928]
16148         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
16149         _dl_pointer_guard member.
16150         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
16151         initializer.
16152         (security_init): Always set up pointer guard.
16153         (process_envvars): Do not process LD_POINTER_GUARD.
16154
16155 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
16156
16157         [BZ #19134]
16158         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
16159         (.LC2): Likewise.
16160         (.LC3): Likewise.
16161         (__lround): Do not add 0.5 to integer or out-of-range arguments.
16162
16163 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16164
16165         [BZ #19129]
16166         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
16167         r0 and r1.
16168
16169 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
16170
16171         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
16172
16173 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
16174
16175         * include/stap-probe.h: Fix macro definition formatting.
16176
16177 2015-10-14  Florian Weimer  <fweimer@redhat.com>
16178
16179         [BZ #19074]
16180         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
16181         load and store num_ifs.
16182
16183 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16184
16185         [BZ #18822]
16186         * sysdeps/unix/sysv/linux/sched_getaffinity.c
16187         (__sched_getaffinity_new): Add libc_hidden_proto and
16188         libc_hidden_def.
16189
16190 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16191
16192         [BZ #19007]
16193         * scripts/localplt.awk: Also allow GOT references.
16194         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
16195         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
16196         with "+ REL R_386_GLOB_DAT".
16197         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
16198         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
16199
16200 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
16201
16202         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
16203         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16204         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
16205         Likewise.
16206         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
16207         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
16208         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
16209         INTERNAL_SYSCALLINTERNAL_SYSCALL and
16210         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16211         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
16212         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
16213         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
16214         Likewise.
16215         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
16216
16217 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16218
16219         [BZ #19125]
16220         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
16221         <math_private.h> and <stdint.h>.
16222         (__llround): Avoid conversions to and from long long int, and
16223         subtractions, where those might raise spurious exceptions.
16224         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16225         <math_private.h> and <stdint.h>.
16226         (__llroundf): Avoid conversions to and from long long int, and
16227         subtractions, where those might raise spurious exceptions.
16228
16229 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16230
16231         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
16232         INLINE_SYSCALL_ERROR_RETURN_VALUE.
16233         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
16234         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
16235         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
16236         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
16237         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
16238         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
16239         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
16240         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
16241         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
16242         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
16243         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
16244         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
16245         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
16246         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
16247         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
16248         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
16249         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
16250         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
16251         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
16252         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
16253         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
16254         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
16255         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
16256         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
16257         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
16258         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
16259         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
16260         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
16261         (__xstat64_conv): Likewise.
16262         (__xstat32_conv): Likewise.
16263
16264 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16265
16266         * sysdeps/unix/sysv/linux/sysdep.h: New file.
16267         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
16268         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
16269         <sysdeps/unix/sysv/linux/sysdep.h>.
16270         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
16271         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
16272         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
16273         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
16274         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
16275         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
16276         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
16277         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
16278         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
16279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
16280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
16281         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16282         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16283         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16284         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
16285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16286         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
16287         (sysdep-dl-routines): Add sysdep.
16288         [$(subdir) == nptl] (libpthread-routines): Likewise.
16289         [$(subdir) == rt] (librt-routines): Likewise.
16290         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
16291         PIC when branching to SYSCALL_ERROR_LABEL.
16292         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
16293         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
16294         <sysdeps/unix/sysv/linux/sysdep.h>.
16295         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
16296         (SYSCALL_ERROR_ERRNO): Removed.
16297         (SYSCALL_ERROR_HANDLER): Changed to empty.
16298         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
16299         (__syscall_error): New prototype.
16300         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
16301         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
16302
16303 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
16304
16305         [BZ #19124]
16306         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
16307         (_dl_runtime_resolve_avx512): Make it a hidden alias of
16308         _dl_runtime_resolve_avx.
16309         (_dl_runtime_profile_avx512): Make it a hidden alias of
16310         _dl_runtime_profile_avx.
16311
16312 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
16313
16314         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
16315         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
16316         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
16317         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
16318
16319         [BZ #16422]
16320         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
16321         New configure test.
16322         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
16323         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
16324         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
16325         <math_private.h> and <stdint.h>.
16326         (__llrint): Avoid conversions to long long int where those might
16327         raise spurious exceptions.
16328         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16329         <math_private.h> and <stdint.h>.
16330         (__llrintf): Avoid conversions to long long int where those might
16331         raise spurious exceptions.
16332
16333 2015-10-12  Andreas Schwab  <schwab@suse.de>
16334
16335         [BZ #18969]
16336         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
16337         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
16338         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
16339         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
16340         $(gen-locales).
16341         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
16342         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
16343         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
16344         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
16345         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
16346         $(gen-locales).
16347         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
16348         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
16349         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
16350         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
16351         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
16352         ($(objpfx)tst-ftell-active-handler.out)
16353         ($(objpfx)tst-ftell-append.out)
16354         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
16355         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
16356         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
16357         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
16358         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
16359         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
16360         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
16361         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
16362         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
16363         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
16364         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
16365         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
16366         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
16367         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
16368         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
16369         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
16370         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
16371         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
16372         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
16373         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
16374         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
16375         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
16376         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
16377         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
16378         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
16379         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
16380         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
16381         $(gen-locales).
16382         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
16383         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
16384         $(gen-locales).
16385         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
16386         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
16387         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
16388         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
16389         $(gen-locales).
16390         * libio/tst_wprintf2.c (main): Use explicit locale.
16391         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
16392
16393 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16394
16395         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
16396         __msg_sig_post.
16397         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
16398
16399 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16400
16401         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
16402         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16403
16404         * sysdeps/arm/libm-test-ulps: Regenerated.
16405
16406         [BZ #15470]
16407         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
16408
16409         [BZ #16399]
16410         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
16411         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
16412         and <fix-fp-int-convert-overflow.h>.
16413         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16414         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16415         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
16416         and <fix-fp-int-convert-overflow.h>.
16417         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
16418         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16419         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
16420         <fix-fp-int-convert-overflow.h>.
16421         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
16422         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16423         * sysdeps/ieee754/dbl-64/s_lround.c: Include
16424         <fix-fp-int-convert-overflow.h>.
16425         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
16426         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16427         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
16428         and <fix-fp-int-convert-overflow.h>.
16429         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16430         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16431         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
16432         <limits.h> and <fix-fp-int-convert-overflow.h>.
16433         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16434         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16435         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
16436         and <fix-fp-int-convert-overflow.h>.
16437         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
16438         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16439         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
16440         and <fix-fp-int-convert-overflow.h>.
16441         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
16442         FIX_DBL_LLONG_CONVERT_OVERFLOW.
16443         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
16444
16445 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
16446
16447         [BZ #18589]
16448         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
16449         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
16450         $(gen-locales).
16451
16452 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16453             Phil Blundell <pb@pbcl.net>
16454
16455         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
16456         * nptl/tst-cancel26.c: New file.
16457         * nptl/tst-cancel27.c: Likewise.
16458
16459 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
16460
16461         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
16462         __ILP32__ isn't defined.
16463         (lrint): Likewise.
16464         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
16465         (lrintf): Likewise.
16466         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
16467         (lrintl): Likewise.
16468         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
16469         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
16470         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
16471
16472 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16473
16474         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16475         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16476
16477         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
16478         file.
16479         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
16480         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
16481
16482 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
16483
16484         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
16485         configure test.
16486         * sysdeps/i386/configure: Regenerated.
16487         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
16488         configure test.
16489         * sysdeps/x86_64/configure: Regenerated.
16490         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
16491         Make code unconditional.
16492
16493         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
16494         test.
16495         * sysdeps/i386/configure: Regenerated.
16496         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
16497         test.
16498         * sysdeps/x86_64/configure: Regenerated.
16499         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
16500         Make code unconditional.
16501         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
16502         Likewise.
16503         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
16504         Likewise.
16505         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16506         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
16507         code unconditional.
16508         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16509         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
16510         code unconditional.
16511         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16512         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
16513         code unconditional.
16514         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
16515         code unconditional.
16516         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16517         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
16518         code unconditional.
16519         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16520         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
16521         code unconditional.
16522         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16523         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
16524         code unconditional.
16525         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16526         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
16527         code unconditional.
16528         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
16529         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
16530
16531         [BZ #19095]
16532         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
16533         mantissa to long int before shifting left.
16534
16535 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16536
16537         [BZ #19094]
16538         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
16539         <limits.h>.
16540         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16541         when result overflows but exception would not result from cast.
16542         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
16543         <limits.h>.
16544         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16545         when result overflows but exception would not result from cast.
16546         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
16547         <limits.h>.
16548         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16549         when result overflows but exception would not result from cast.
16550         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
16551         <limits.h>.
16552         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16553         when result overflows but exception would not result from cast.
16554         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
16555         <limits.h>.
16556         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
16557         when result overflows but exception would not result from cast.
16558         * math/libm-test.inc (lrint_test_data): Add more tests.
16559         (llrint_test_data): Likewise.
16560
16561 2015-10-08  Roland McGrath  <roland@hack.frob.com>
16562
16563         [BZ #18872]
16564         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
16565         Move out from under [$(run-built-tests) = yes] conditional.
16566         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
16567         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
16568
16569 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
16570
16571         [BZ #18589]
16572         * string/Makefile (tests): Add bug-strcoll2.
16573         (LOCALES): Add cs_CZ.UTF-8.
16574         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
16575
16576         [BZ #18589]
16577         * string/bug-strcoll2.c: New file.
16578         * locale/categories.def: Revert commit
16579         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
16580         * locale/langinfo.h: Likewise.
16581         * locale/localeinfo.h: Likewise.
16582         * locale/C-collate.c: Likewise.
16583         * locale/programs/ld-collate.c (collate_output): Likewise.
16584         * string/strcoll_l.c (STRDIFF): Likewise.
16585         (STRCOLL): Likewise.
16586         * wcsmbs/wcscoll_l.c: Likewise.
16587
16588 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
16589
16590         * math/libm-test.inc (lround_test_data): Do not expect the absence
16591         of "inexact" for some tests with non-integer arguments.
16592         (llround_test_data): Likewise.
16593
16594         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
16595         test.
16596         (libc_cv_cc_sse2avx): Likewise.
16597         * sysdeps/i386/configure: Regenerated.
16598         * sysdeps/i386/i686/multiarch/Makefile
16599         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
16600         [$(subdir) = math].
16601         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
16602         code unconditional.
16603         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16604         Likewise.
16605         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
16606         Likewise.
16607         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16608         Likewise.
16609         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
16610         test.
16611         (libc_cv_cc_sse2avx): Likewise.
16612         * sysdeps/x86_64/configure: Regenerated.
16613         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
16614         unconditional.
16615         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
16616         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
16617         unconditional.
16618         (_dl_runtime_profile)
16619         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
16620         conditional code.
16621         * sysdeps/x86_64/fpu/multiarch/Makefile
16622         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
16623         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
16624         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16625         * sysdeps/x86_64/fpu/multiarch/e_exp.c
16626         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16627         * sysdeps/x86_64/fpu/multiarch/e_log.c
16628         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16629         * sysdeps/x86_64/fpu/multiarch/s_atan.c
16630         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16631         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
16632         Likewise.
16633         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
16634         Likewise.
16635         * sysdeps/x86_64/fpu/multiarch/s_sin.c
16636         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16637         * sysdeps/x86_64/fpu/multiarch/s_tan.c
16638         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
16639         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
16640         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
16641         (HAVE_SSE2AVX_SUPPORT): Likewise.
16642
16643 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
16644
16645         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
16646         instead of #pragma optimize.
16647
16648 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16649
16650         [BZ #17195]
16651         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
16652         as is similarly done in systrim and _int_free already.
16653
16654 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16655
16656         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
16657
16658 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16659
16660         [BZ #19088]
16661         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
16662         <limits.h>.
16663         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16664         overflows but exception would not result from cast.
16665         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
16666         and <limits.h>.
16667         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
16668         overflows but exception would not result from cast.
16669         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
16670         <limits.h>.
16671         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16672         overflows but exception would not result from cast.
16673         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
16674         <limits.h>.
16675         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16676         overflows but exception would not result from cast.
16677         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
16678         <limits.h>.
16679         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
16680         overflows but exception would not result from cast.
16681         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
16682         <limits.h>.
16683         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
16684         overflows but exception would not result from cast.
16685         * math/libm-test.inc (lround_test_data): Add more tests.
16686         (llround_test_data): Likewise.
16687
16688 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
16689
16690         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
16691         (CFLAGS-ialloc.c): Ditto.
16692         (CFLAGS-scheck.c): Ditto.
16693
16694 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
16695
16696         [BZ #19086]
16697         * manual/filesys.texi (Storage Allocation): Fix argument order for
16698         posix_fallocate64.
16699
16700 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16701
16702         [BZ #19085]
16703         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
16704         exponent below 48 inside case for non-overflowing exponent.
16705         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
16706
16707 2015-10-07  Florian Weimer  <fweimer@redhat.com>
16708
16709         * iconvdata/cp737.h (from_idx): Add const.
16710         * iconvdata/cp775.h (from_idx): Likewise.
16711
16712 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
16713
16714         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
16715         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
16716         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
16717
16718         [BZ #19079]
16719         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
16720         file, conditioned on [!_LP64].
16721         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
16722         [!_LP64] (__lround): Do not define as function or alias.
16723         [!_LP64] (lround): Likewise.
16724         [!_LP64] (__lroundl): Likewise.
16725         [!_LP64] (lroundl): Likewise.
16726         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
16727         macro.
16728         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
16729         Likewise.
16730
16731 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16732
16733         * math/libm-test.inc (lrint_test_data): Add more tests.
16734         (llrint_test_data): Likewise.
16735         (lround_test_data): Likewise.
16736         (llround_test_data): Likewise.
16737
16738         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
16739         (llrint_test_data): Add tests used for lrint.
16740
16741         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
16742         test.
16743         * sysdeps/i386/configure: Regenerated.
16744         * sysdeps/i386/i686/multiarch/Makefile
16745         [$(config-cflags-sse4) = yes]: Make code unconditional.
16746         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16747         Likewise.
16748         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
16749         Likewise.
16750         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
16751         test.
16752         * sysdeps/x86_64/configure: Regenerated.
16753         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
16754         Make code unconditional.
16755         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
16756         Likewise.
16757         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
16758         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
16759
16760         * scripts/rpm2dynsym.sh: Remove file.
16761
16762 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16763
16764         * configure.ac (libc_cv_cxx_thread_local): Define.
16765         * configure: Regenerate.
16766         * config.make.in (have-cxx-thread_local): Define.
16767         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
16768         (LDLIBS-tst-thread_local1): Define.
16769         (tests): Add tst-thread_local1.
16770         [have-cxx-thread_local != yes] (tests-unsupported): Add
16771         tst-thread_local1.
16772         * nptl/tst-thread_local1.cc: New file.
16773
16774 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
16775
16776         [BZ #19078]
16777         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
16778         (u_thres): Likewise.
16779         (__expl): Determine whether to call __kernel_standard_l based on
16780         value of result, not argument.
16781
16782         * math/libm-test.inc (scalb_test_data): Add more expectations for
16783         the "inexact" exception.
16784
16785         [BZ #19077]
16786         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
16787         0.0L for argument 1.0L.
16788
16789         [BZ #19076]
16790         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
16791         constant 0.0L when computing infinite result.
16792
16793 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16794
16795         [BZ #10432]
16796         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
16797         malloc_usable_size.
16798
16799 2015-10-06  Florian Weimer  <fweimer@redhat.com>
16800
16801         [BZ #19018]
16802         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
16803         Mangle function pointer before storing it.
16804         (__call_tls_dtors): Demangle function pointer before calling it.
16805
16806 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16807
16808         [BZ #19012]
16809         * iconv/gconv_db.c (gen_steps): Check for additional errors.
16810         Clean up on failure.
16811
16812 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
16813
16814         [BZ #19071]
16815         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
16816         long int variable to store possibly incremented high part of
16817         mantissa.
16818         * math/libm-test.inc (lround_test_data): Add tests used for
16819         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
16820         for tests requiring 64-bit long.  Do not condition tests on
16821         [TEST_FLOAT] unnecessarily.
16822         (llround_test_data): Add tests used for lround.  Add another
16823         expectation for the "inexact" exception.  Do not condition tests
16824         on [TEST_FLOAT] unnecessarily.
16825
16826         [BZ #887]
16827         [BZ #19049]
16828         [BZ #19050]
16829         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
16830         * sysdeps/ieee754/dbl-64/e_log10.c: Include
16831         <fix-int-fp-convert-zero.h>.
16832         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16833         * sysdeps/ieee754/dbl-64/e_log2.c: Include
16834         <fix-int-fp-convert-zero.h>.
16835         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16836         * sysdeps/ieee754/dbl-64/s_erf.c: Include
16837         <fix-int-fp-convert-zero.h>.
16838         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16839         * sysdeps/ieee754/dbl-64/s_logb.c: Include
16840         <fix-int-fp-convert-zero.h>.
16841         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16842         * sysdeps/ieee754/flt-32/e_log10f.c: Include
16843         <fix-int-fp-convert-zero.h>.
16844         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16845         * sysdeps/ieee754/flt-32/e_log2f.c: Include
16846         <fix-int-fp-convert-zero.h>.
16847         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16848         * sysdeps/ieee754/flt-32/s_erff.c: Include
16849         <fix-int-fp-convert-zero.h>.
16850         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16851         * sysdeps/ieee754/flt-32/s_logbf.c: Include
16852         <fix-int-fp-convert-zero.h>.
16853         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16854         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
16855         <fix-int-fp-convert-zero.h>.
16856         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16857         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
16858         <fix-int-fp-convert-zero.h>.
16859         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
16860         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
16861         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
16862         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
16863         file.
16864         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
16865
16866 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
16867
16868         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16869
16870 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
16871
16872         [BZ #19059]
16873         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
16874         overflowing computation.
16875         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16876         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
16877         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16878         Likewise.
16879         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16880         Likewise.
16881         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
16882         Likewise.
16883         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16884         Likewise.
16885         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16886         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16887         Likewise.
16888         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16889         Likewise.
16890         * math/libm-test.inc (nexttoward_test_data): Add more tests.
16891
16892         * nss/rewrite_field.c (__nss_rewrite_field): Use
16893         internal_function.
16894         * nss/valid_field.c (__nss_valid_field): Likewise.
16895         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
16896
16897 2015-10-02  Florian Weimer  <fweimer@redhat.com>
16898
16899         [BZ #18724]
16900         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
16901         (__nss_invalid_field_characters, __nss_valid_field)
16902         (__nss_valid_list_field, __nss_rewrite_field): Declare.
16903         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
16904         tst-field.c: New file.
16905         * nss/Makefile (routines): Add valid_field, rewrite_field.
16906         (tests-static): Define unconditionally.
16907         (tests): Include tests-static.
16908         [build-static-nss] (tests-static): Use append.
16909         [build-static-nss] (tests): Remove modification.
16910         * nss/getent.c (print_group): Call putgrent.  Report error.
16911         (print_gshadow): Call putsgent.  Report error.
16912         (print_passwd): Call putpwent.  Report error.
16913         (print_shadow): Call putspent.  Report error.
16914         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
16915         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
16916         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
16917         name, password, directory, shell fields for valid syntax.  Rewrite
16918         GECOS field to match syntax.
16919         * pwd/Makefile (tests): Add tst-putpwent.
16920         * pwd/tst-putpwent.c: New file.
16921         * grp/putgrent.c (putgrent): Convert to ISO function definition.
16922         Check grName, grpasswd, gr_mem fields for valid syntax.
16923         Change loop variable i to size_t.
16924         * grp/Makefile (tests): Add tst-putgrent.
16925         * grp/tst-putgrent.c: New file.
16926         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
16927         valid syntax.
16928         * shadow/Makefile (tests): Add tst-putspent.
16929         * shadow/tst-putspent.c: New file.
16930         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
16931         sg_mem fields for valid syntax.
16932         * gshadow/Makefile (tests): Add tst-putsgent.
16933         * gshadow/tst-putsgent.c: New file.
16934
16935 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16936
16937         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
16938         assembly instructions.
16939
16940 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16941
16942         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
16943         prefix from operands.
16944
16945 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
16946
16947         [BZ #16347]
16948         [BZ #19046]
16949         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
16950         <libc-internal.h>.
16951         (MAXLGM): Do not use diagnostic control macros.
16952         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
16953         threshold for ldbl-128ibm.
16954         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
16955         instead of multiplying by log then subtracting.
16956         * math/auto-libm-test-in: Add more tests of lgamma.
16957         * math/auto-libm-test-out: Regenerated.
16958
16959         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
16960         (TYPE_HEX_DIG): Likewise.
16961         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
16962         precisions when printing floating-point numbers.
16963         (check_float_internal): Likewise.
16964
16965 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
16966
16967         [BZ #16620]
16968         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
16969         of log (10) rounded downward to 48 bits.
16970         (log10_low): Use corresponding low part of log (10).
16971
16972         [BZ #19032]
16973         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
16974         compute result as (x - x) / (x - x) not as 0 / 0.
16975         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
16976         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
16977
16978         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
16979         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
16980         and expm1.
16981         * math/auto-libm-test-out: Regenerated.
16982         * math/libm-test.inc (acos_test_data): Add more tests.
16983         (asin_test_data): Likewise.
16984         (asinh_test_data): Likewise.
16985         (atan_test_data): Likewise.
16986         (atanh_test_data): Likewise.
16987         (atan2_test_data): Likewise.
16988         (cbrt_test_data): Likewise.
16989         (ceil_test_data): Likewise.
16990         (copysign_test_data): Likewise.
16991         (cos_test_data): Likewise.
16992         (cosh_test_data): Likewise.
16993         (erf_test_data): Likewise.
16994         (erfc_test_data): Likewise.
16995         (exp_test_data): Likewise.
16996         (exp10_test_data): Likewise.
16997         (exp2_test_data): Likewise.
16998         (expm1_test_data): Likewise.
16999         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17000
17001 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
17002
17003         [BZ #19006]
17004         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
17005         to ...
17006         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
17007         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
17008         to ...
17009         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
17010         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
17011         to ...
17012         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
17013         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
17014         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
17015         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
17016         to ...
17017         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
17018         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
17019         Moved to ...
17020         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
17021         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
17022         Moved to ...
17023         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
17024         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
17025         to ...
17026         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
17027         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
17028         Moved to ...
17029         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
17030         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
17031         to ...
17032         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
17033         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
17034         Removed.
17035         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
17036         Likewise.
17037         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
17038         Likewise.
17039         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
17040         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
17041         Likewise.
17042         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
17043         Likewise.
17044         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
17045         Likewise.
17046         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
17047         Likewise.
17048         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
17049         Likewise.
17050         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
17051         Likewise.
17052         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
17053         Likewise.
17054         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
17055         Likewise.
17056         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
17057         Likewise.
17058         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
17059         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
17060         Likewise.
17061         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
17062         Likewise.
17063         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
17064         Likewise.
17065         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
17066         Likewise.
17067         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
17068         Likewise.
17069         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
17070         Replace ../i486/pthread_cond_timedwait.S with
17071         ../pthread_cond_timedwait.S.
17072
17073 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
17074
17075         * math/libm-test.inc (acos_test_data): Refine expectations for
17076         errno and "inexact" exceptions.
17077         (acosh_test_data): Likewise.
17078         (asin_test_data): Likewise.
17079         (asinh_test_data): Likewise.
17080         (atan_test_data): Likewise.
17081         (atanh_test_data): Likewise.
17082         (atan2_test_data): Likewise.
17083         (cbrt_test_data): Likewise.
17084         (ceil_test_data): Likewise.
17085         (copysign_test_data): Likewise.
17086         (cosh_test_data): Likewise.
17087         (erf_test_data): Likewise.
17088         (erfc_test_data): Likewise.
17089         (exp_test_data): Likewise.
17090         (exp10_test_data): Likewise.
17091         (exp2_test_data): Likewise.
17092         (expm1_test_data): Likewise.
17093         (fabs_test_data): Likewise.
17094         (floor_test_data): Likewise.
17095         (fma_test_data): Likewise.
17096         (fmax_test_data): Likewise.
17097         (fmin_test_data): Likewise.
17098         (fmod_test_data): Likewise.
17099         (fpclassify_test_data): Likewise.
17100         (frexp_test_data): Likewise.
17101         (hypot_test_data): Likewise.
17102         (ilogb_test_data): Likewise.
17103         (isgreater_test_data): Likewise.
17104         (isgreaterequal_test_data): Likewise.
17105         (isinf_test_data): Likewise.
17106         (isless_test_data): Likewise.
17107         (islessequal_test_data): Likewise.
17108         (islessgreater_test_data): Likewise.
17109         (isnan_test_data): Likewise.
17110         (isnormal_test_data): Likewise.
17111         (issignaling_test_data): Likewise.
17112         (isunordered_test_data): Likewise.
17113         (j0_test_data): Likewise.
17114         (j1_test_data): Likewise.
17115         (jn_test_data): Likewise.
17116         (lgamma_test_data): Likewise.
17117         (lrint_test_data): Likewise.
17118         (llrint_test_data): Likewise.
17119         (log_test_data): Likewise.
17120         (log10_test_data): Likewise.
17121         (log1p_test_data): Likewise.
17122         (log2_test_data): Likewise.
17123         (logb_test_data): Likewise.
17124         (lround_test_data): Likewise.
17125         (llround_test_data): Likewise.
17126         (modf_test_data): Likewise.
17127         (nearbyint_test_data): Likewise.
17128         (nextafter_test_data): Likewise.
17129         (nexttoward_test_data): Likewise.
17130         (pow_test_data): Likewise.
17131         (remainder_test_data): Likewise.
17132         (remquo_test_data): Likewise.
17133         (rint_test_data): Likewise.
17134         (round_test_data): Likewise.
17135         (signbit_test_data): Likewise.
17136         (sinh_test_data): Likewise.
17137         (sqrt_test_data): Likewise.
17138         (tanh_test_data): Likewise.
17139         (tgamma_test_data): Likewise.
17140         (trunc_test_data): Likewise.
17141         (y0_test_data): Likewise.
17142         (y1_test_data): Likewise.
17143         (yn_test_data): Likewise.
17144         (significand_test_data): Likewise.
17145
17146 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
17147
17148         * manual/filesys.texi (Storage Allocation): Document that
17149         posix_fallocate emulation fails when fd is open with O_WRONLY.
17150
17151 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
17152
17153         [BZ #19016]
17154         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
17155         allow more cases with X^2 + Y^2 >= 0.5.
17156         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
17157         normal element in sum instead of special-casing based on values of
17158         arguments.
17159         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
17160         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
17161         -1 as normal element in sum instead of special-casing based on
17162         values of arguments.
17163         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
17164         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
17165         (__x2y2m1): Update comment.
17166         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
17167         as normal element in sum instead of special-casing based on values
17168         of arguments.
17169         * math/s_clog.c (__clog): Handle more cases using log1p without
17170         hypot.
17171         * math/s_clog10.c (__clog10): Likewise.
17172         * math/s_clog10f.c (__clog10f): Likewise.
17173         * math/s_clog10l.c (__clog10l): Likewise.
17174         * math/s_clogf.c (__clogf): Likewise.
17175         * math/s_clogl.c (__clogl): Likewise.
17176         * math/auto-libm-test-in: Add more tests of clog and clog10.
17177         * math/auto-libm-test-out: Regenerated.
17178         * sysdeps/i386/fpu/libm-test-ulps: Update.
17179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17180
17181 2015-09-28  Martin Sebor  <msebor@redhat.com>
17182
17183         [BZ #18969]
17184         * string/Makefile (LOCALES): Define.
17185         (gen-locales.mk): Include.
17186         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
17187         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
17188         * string/tst-strxfrm2.c (do_test): Print the name of the locale
17189         on setlocale failure.
17190
17191 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
17192
17193         [BZ #18985]
17194         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
17195         (__strftime_internal): Likewise.
17196         * time/tst-strftime.c (do_bz18985): New test.
17197         (do_test): Call it.
17198
17199 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
17200
17201         [BZ #18956]
17202         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
17203         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
17204         extracting high part.
17205         * math/auto-libm-test-in: Add another test of pow.
17206         * math/auto-libm-test-out: Regenerated.
17207         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17208
17209 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17210
17211         [BZ #18825]
17212         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
17213         New macro.
17214         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
17215         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17216         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
17217         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
17218         DBL_NARROW_EVAL, reloading the PIC register as needed.
17219         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
17220         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
17221         FLT_NARROW_EVAL.  Use separate return path for case when first
17222         argument is NaN.
17223         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
17224         DEFINE_LDBL_MIN.
17225         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
17226         PIC register.
17227         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
17228         math_check_force_underflow_nonneg.
17229         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
17230         underflow for subnormal result.
17231         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17232         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
17233         math_check_force_underflow_nonneg.
17234         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
17235         math_check_force_underflow.
17236         * sysdeps/x86_64/fpu/x86_64-math-asm.h
17237         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
17238         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
17239         DEFINE_LDBL_MIN.
17240         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
17241         * math/auto-libm-test-in: Add more tests of pow.
17242         * math/auto-libm-test-out: Regenerated.
17243
17244 2015-09-25  Florian Weimer  <fweimer@redhat.com>
17245
17246         * nss/bug17079.c (init_test_items): Add diagnostic for
17247         inconsistent entries.
17248         (test_buffer_size): Skip inconsistent entries.
17249
17250 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
17251
17252         [BZ #13304]
17253         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
17254         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17255         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
17256
17257         [BZ #13304]
17258         * sysdeps/microblaze/s_fma.c: New file.
17259         * sysdeps/microblaze/s_fmaf.c: Likewise.
17260         * sysdeps/microblaze/sfp-machine.h: Likewise.
17261
17262 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
17263
17264         [BZ #17250]
17265         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
17266         member.
17267
17268 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17269
17270         [BZ #18803]
17271         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
17272         (MO): New macro.
17273         (__ieee754_hypot) [PIC]: Load PIC register.
17274         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
17275         DBL_NARROW_EVAL.
17276         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
17277         math_check_force_underflow_nonneg in case where result might be
17278         tiny.
17279         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
17280         Likewise.
17281         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
17282         Likewise.
17283         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17284         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17285         * math/auto-libm-test-in: Add more tests of hypot.
17286         * math/auto-libm-test-out: Regenerated.
17287
17288 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
17289
17290         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
17291
17292 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
17293
17294         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
17295         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
17296         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17297         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17298         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
17299         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17300         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17301
17302         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
17303         LOAD_PIC_REG.
17304
17305         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
17306         (FLT_CHECK_FORCE_UFLOW): Likewise.
17307         (DBL_CHECK_FORCE_UFLOW): Likewise.
17308         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
17309         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
17310         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
17311         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17312         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
17313         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17314         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17315         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
17316         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
17317         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17318         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
17319         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
17320         (flt_min): Replace with use of DEFINE_FLT_MIN.
17321         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
17322         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
17323         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17324         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
17325         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
17326         (flt_min): Replace with use of DEFINE_FLT_MIN.
17327         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
17328         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
17329         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17330         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
17331         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
17332         (flt_min): Replace with use of DEFINE_FLT_MIN.
17333         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
17334         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
17335         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
17336         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
17337         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
17338         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
17339         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
17340         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
17341         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17342         (__atan): Use DBL_CHECK_FORCE_UFLOW.
17343         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
17344         (flt_min): Replace with use of DEFINE_FLT_MIN.
17345         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
17346         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
17347         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17348         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
17349         main computation.
17350         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
17351         (flt_min): Replace with use of DEFINE_FLT_MIN.
17352         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
17353         main computation.
17354         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
17355         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17356         (MO): New macro.
17357         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
17358         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
17359         (flt_min): Replace with use of DEFINE_FLT_MIN.
17360         (MO): New macro.
17361         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
17362         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
17363         (__log1pl): Use MO.
17364
17365         [BZ #19003]
17366         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
17367         $(config-cflags-nofma).
17368
17369 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17370
17371         * sysdeps/aarch64/libm-test-ulps: Regenerated.
17372
17373 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
17374
17375         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
17376         (TWO127): Likewise.
17377
17378         * sysdeps/generic/math_private.h (fabs_tg): New macro.
17379         (min_of_type): Likewise.
17380         (math_check_force_underflow): Likewise.
17381         (math_check_force_underflow_nonneg): Likewise.
17382         (math_check_force_underflow_complex): Likewise.
17383         * math/e_exp2l.c (__ieee754_exp2l): Use
17384         math_check_force_underflow_nonneg.
17385         * math/k_casinh.c (__kernel_casinh): Likewise.
17386         * math/k_casinhf.c (__kernel_casinhf): Likewise.
17387         * math/k_casinhl.c (__kernel_casinhl): Likewise.
17388         * math/s_catan.c (__catan): Use
17389         math_check_force_underflow_complex.
17390         * math/s_catanf.c (__catanf): Likewise.
17391         * math/s_catanh.c (__catanh): Likewise.
17392         * math/s_catanhf.c (__catanhf): Likewise.
17393         * math/s_catanhl.c (__catanhl): Likewise.
17394         * math/s_catanl.c (__catanl): Likewise.
17395         * math/s_ccosh.c (__ccosh): Likewise.
17396         * math/s_ccoshf.c (__ccoshf): Likewise.
17397         * math/s_ccoshl.c (__ccoshl): Likewise.
17398         * math/s_cexp.c (__cexp): Likewise.
17399         * math/s_cexpf.c (__cexpf): Likewise.
17400         * math/s_cexpl.c (__cexpl): Likewise.
17401         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
17402         * math/s_clog10.c (__clog10): Likewise.
17403         * math/s_clog10f.c (__clog10f): Likewise.
17404         * math/s_clog10l.c (__clog10l): Likewise.
17405         * math/s_clogf.c (__clogf): Likewise.
17406         * math/s_clogl.c (__clogl): Likewise.
17407         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
17408         * math/s_csinf.c (__csinf): Likewise.
17409         * math/s_csinh.c (__csinh): Likewise.
17410         * math/s_csinhf.c (__csinhf): Likewise.
17411         * math/s_csinhl.c (__csinhl): Likewise.
17412         * math/s_csinl.c (__csinl): Likewise.
17413         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
17414         * math/s_csqrtf.c (__csqrtf): Likewise.
17415         * math/s_csqrtl.c (__csqrtl): Likewise.
17416         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
17417         * math/s_ctanf.c (__ctanf): Likewise.
17418         * math/s_ctanh.c (__ctanh): Likewise.
17419         * math/s_ctanhf.c (__ctanhf): Likewise.
17420         * math/s_ctanhl.c (__ctanhl): Likewise.
17421         * math/s_ctanl.c (__ctanl): Likewise.
17422         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
17423         instead of volatile.
17424         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
17425         math_check_force_underflow.
17426         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
17427         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
17428         volatile when forcing underflow.
17429         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17430         math_check_force_underflow_nonneg.
17431         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
17432         Likewise.
17433         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
17434         math_check_force_underflow.
17435         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17436         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17437         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17438         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
17439         math_check_force_underflow_nonneg.
17440         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
17441         math_check_force_underflow.
17442         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
17443         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
17444         instead of volatile.
17445         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
17446         math_check_force_underflow.
17447         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
17448         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
17449         math_check_force_underflow_nonneg.
17450         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
17451         math_check_force_underflow.
17452         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17453         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
17454         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
17455         math_check_force_underflow_nonneg.
17456         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17457         Likewise.
17458         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
17459         math_check_force_underflow.
17460         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
17461         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17462         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
17463         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
17464         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17465         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
17466         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
17467         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
17468         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
17469         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
17470         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17471         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
17472         Likewise.
17473         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
17474         math_check_force_underflow_nonneg.
17475         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17476         Likewise.
17477         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
17478         math_check_force_underflow.
17479         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17480         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
17481         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17482         Likewise.
17483         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
17484         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
17485         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
17486         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
17487         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
17488         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
17489         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
17490         instead of volatile.
17491         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
17492         math_check_force_underflow.
17493         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
17494         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
17495         math_check_force_underflow.
17496         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
17497         Likewise.
17498         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17499         Use math_check_force_underflow_nonneg.
17500         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
17501         math_check_force_underflow.
17502         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
17503         Likewise.
17504         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17505         Likewise.
17506         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17507         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
17508         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
17509         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
17510         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
17511         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
17512         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17513         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
17514         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
17515         math_check_force_underflow_nonneg.
17516         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
17517         math_check_force_underflow.
17518         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17519         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
17520         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
17521         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
17522         math_check_force_underflow_nonneg.
17523         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
17524         math_check_force_underflow.
17525         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
17526         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
17527         instead of volatile.
17528         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
17529         math_check_force_underflow.
17530
17531         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
17532         * stdlib/strtod_l.c: Include <math_private.h>.
17533         (overflow_value): Use math_narrow_eval.
17534         (underflow_value): Likewise.
17535         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
17536         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
17537         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17538         (__ieee754_gamma_r): Likewise.
17539         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
17540         Likewise.
17541         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
17542         Likewise.
17543         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
17544         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
17545         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
17546         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
17547         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17548         (__ieee754_gammaf_r): Likewise.
17549         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17550         Likewise.
17551         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
17552         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
17553         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
17554         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
17555         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
17556         volatile.
17557         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
17558         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
17559         math_narrow_eval.
17560         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
17561         Likewise.
17562         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
17563         Likewise.
17564         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
17565         Likewise.
17566         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
17567         volatile.
17568         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
17569         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
17570         math_narrow_eval.
17571         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
17572         Likewise.
17573         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
17574         Likewise.
17575
17576 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
17577
17578         * nptl/Versions: Remove ignored symbols.
17579
17580 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17581
17582         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
17583         * nss/Makefile (tests): Update.
17584
17585 2015-09-22  Florian Weimer  <fweimer@redhat.com>
17586
17587         * nss/bug18287.c: New file.
17588         * nss/Makefile (tests): Add bug18287.
17589
17590 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17591
17592         * mach/Versions (__mach_host_self_): Add symbol.
17593
17594 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17595
17596         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
17597         vm_page_size.
17598
17599 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17600
17601         Really fix sysdeps/i386/fpu/s_scalbn.S build
17602
17603         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
17604         (libc: GLIBC_2_22): Remove unused version set.
17605
17606 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17607
17608         * config.make.in (enable-timezone-tools): New variable.
17609         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
17610         (enable_timezone_tools): Export to generated files.
17611         * configure: Regenerate.
17612         * INSTALL: Regenerate.
17613         * manual/install.texi (--disable-timezone-tools): Document new flag.
17614         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
17615         ifeq ($(enable-timezone-tools),yes) check.
17616
17617 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17618
17619         * timezone/Makefile: Revert previous change.
17620
17621         [BZ #18980]
17622         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
17623         (DEFINE_DBL_MIN): Likewise.
17624         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17625         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
17626         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17627         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
17628         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
17629         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17630         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17631         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
17632         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
17633         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17634         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17635         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
17636         (flt_min): Replace with use of DEFINE_FLT_MIN.
17637         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17638         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
17639         (dbl_min): Replace with use of DEFINE_DBL_MIN.
17640         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
17641         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
17642         (flt_min): Replace with use of DEFINE_FLT_MIN.
17643         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17644         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
17645         (flt_min): Replace with use of DEFINE_FLT_MIN.
17646         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
17647         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
17648         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
17649         (__ieee754_hypot): Use DBL_NARROW_EVAL.
17650         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
17651         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
17652         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
17653         (__ieee754_pow): Use DBL_NARROW_EVAL.
17654         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
17655         (__ieee754_powf): Use FLT_NARROW_EVAL.
17656         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
17657         (__ieee754_expf_sse2): Convert double-precision result to single
17658         precision.
17659         * sysdeps/i386/fpu/libm-test-ulps: Update.
17660
17661 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17662
17663         * timezone/Makefile: Ignore unused variable errors due to private.h
17664         (time_t_min) and (time_t_max).
17665         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
17666         Likewise.
17667
17668 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17669
17670         [BZ #18981]
17671         * sysdeps/i386/fpu/i386-math-asm.h: New file.
17672         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
17673         (__ieee754_scalb): Use DBL_NARROW_EVAL.
17674         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
17675         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
17676         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
17677         (__scalbn): Use DBL_NARROW_EVAL.
17678         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
17679         (__scalbnf): Use FLT_NARROW_EVAL.
17680
17681 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17682
17683         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
17684         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
17685         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
17686         * stdio-common/printf_fp.c (___printf_fp):
17687         Use signbit to get the sign. Use isinf macro to allow inlining.
17688         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
17689         * stdio-common/printf_size.c (__printf_size): Likewise.
17690
17691 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
17692
17693         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
17694
17695 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
17696
17697         [BZ #18980]
17698         * sysdeps/generic/math_private.h: Include <float.h>.
17699         (math_narrow_eval): New macro.
17700         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17701         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
17702         math_narrow_eval on overflowing return value.
17703         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
17704         Likewise.
17705         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
17706         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
17707         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
17708         Likewise.
17709         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
17710
17711 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17712
17713         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
17714         * math/Makefile: Remove isinf_ns.c.
17715         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
17716         * math/multc3.c (__multc3): Likewise.
17717         * math/s_casin.c (__casin): Likewise.
17718         * math/s_casinf.c (__casinf): Likewise.
17719         * math/s_casinl.c (__casinl): Likewise.
17720         * math/s_cproj.c (__cproj): Likewise.
17721         * math/s_cprojf.c (__cprojf): Likewise.
17722         * math/s_cprojl.c (__cprofl): Likewise.
17723         * math/s_ctan.c (__ctan): Likewise.
17724         * math/s_ctanf.c (__ctanf): Likewise.
17725         * math/s_ctanh.c (__ctanh): Likewise.
17726         * math/s_ctanhf.c (__ctanhf): Likewise.
17727         * math/s_ctanhl.c (__ctanhl): Likewise.
17728         * math/s_ctanl.c (__ctanl): Likewise.
17729         * math/w_fmod.c (__fmod): Likewise.
17730         * math/w_fmodf.c (__fmodf): Likewise.
17731         * math/w_fmodl.c (_fmodl): Likewise.
17732         * math/w_remainder.c (__remainder): Likewise.
17733         * math/w_remainderf.c (__remainderf): Likewise.
17734         * math/w_remainderl.c (__remainderl): Likewise.
17735         * math/w_scalb.c (__scalb): Likewise.
17736         * math/w_scalbf.c (__scalbf): Likewise.
17737         * math/w_scalbl.c (__scalbl): Likewise.
17738         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
17739         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
17740         with isinf.
17741         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
17742         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
17743         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
17744         __isinf_nsf with isinf.
17745         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
17746         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
17747         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
17748         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
17749         with isinf.
17750         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
17751         __isinf_nsl with isinf.
17752         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
17753         with isinf.
17754         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
17755         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
17756         __isinf_nsl with isinf.
17757         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
17758         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
17759         with isinf.
17760
17761 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17762
17763         * resolv/base64.c (rcsid): Remove unused static.
17764         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
17765         static.  (tqpi1): Likewise.
17766         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
17767         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
17768         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
17769         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
17770         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
17771         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
17772         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
17773         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
17774         Likewise.
17775
17776 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
17777
17778         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
17779         <nptl/pthreadP.h>.
17780         (_longjmp_unwind): Use __libc_ptf_call.
17781         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
17782
17783 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
17784
17785         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
17786         * sysdeps/arm/__longjmp.S: Likewise.
17787
17788 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17789
17790         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
17791         Use __builtin_signbit.
17792         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
17793         Use __builtin_signbitf.
17794         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
17795         Use __builtin_signbitl.
17796         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
17797         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
17798
17799 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17800
17801         [BZ #15367]
17802         [BZ #17441]
17803
17804         * math/Makefile: Build test-snan.c with -fsignaling-nans.
17805         * math/math.h (fpclassify): Use __builtin_fpclassify when
17806         available.  (signbit): Use __builtin_signbit(f/l).
17807         (isfinite): Use__builtin_isfinite.  (isnormal): Use
17808         __builtin_isnormal.  (isnan): Use __builtin_isnan.
17809         (isinf): Use __builtin_isinf_sign.
17810
17811 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
17812
17813         * benchtests/Makefile: Add bench-math-inlines, link with libm.
17814         * benchtests/bench-math-inlines.c: New benchmark.
17815         * benchtests/bench-util.h: New file.
17816         * benchtests/bench-util.c: New file.
17817         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
17818
17819 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
17820
17821         * elf/tst-dlmopen1.c: Define TEST_SO.
17822         (do_test): Use TEST_SO.
17823
17824         * elf/dl-load.c: Include libc-internal.h.
17825         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
17826
17827 2015-09-18  Vincent Bernat  <vincent@bernat.im>
17828
17829         [BZ #17887]
17830         * time/strptime_l.c (__strptime_internal): Make %z accept
17831         [+-]HH:MM time zones.
17832
17833 2015-09-18  Vincent Bernat  <vincent@bernat.im>
17834
17835         [BZ #17886]
17836         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
17837         valid time zone.
17838
17839 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
17840
17841         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
17842         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
17843         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
17844         (__ASSUME_FDATASYNC): Delete.
17845
17846 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
17847
17848         * conform/linknamespace.pl: Require weak undefined symbols to be
17849         in the standard namespace.
17850         (%strong_syms): Rename to %seen_syms.
17851         (%strong_seen): Rename to %seen_where.
17852
17853 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
17854
17855         [BZ #18970]
17856         * misc/error.c (error): Replace pthread_setcancelstate with
17857         __pthread_setcancelstate.
17858         (error_at_line): Likewise.
17859         * posix/wordexp.c (parse_comm): Likewise.
17860         * stdlib/fmtmsg.c (fmtmsg): Likewise.
17861         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
17862         (__pthread_setcancelstate): This.
17863         (pthread_setcancelstate): Add an alias.
17864         * nptl/nptl-init.c (pthread_functions): Replace
17865         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
17866         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
17867         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
17868         hidden_proto.
17869         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
17870         it with hidden_def.
17871         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
17872         (pthread_setcancelstate): Renamed to ...
17873         (__pthread_setcancelstate): This.
17874         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
17875         __libc_ptf_call with __pthread_setcancelstate.
17876
17877 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
17878             Andreas Schwab  <schwab@suse.de>
17879
17880         [BZ #17118]
17881         * math/s_ctan.c (__ctan): Determine sign of zero real part of
17882         result when imaginary part of argument is infinite using sine and
17883         cosine.
17884         * math/s_ctanf.c (__ctanf): Likewise.
17885         * math/s_ctanl.c (__ctanl): Likewise.
17886         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
17887         of result when real part of argument is infinite using sine and
17888         cosine.
17889         * math/s_ctanhf.c (__ctanhf): Likewise.
17890         * math/s_ctanhl.c (__ctanhl): Likewise.
17891         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
17892         (ctanh_test_data): Add more tests of ctanh.
17893
17894 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
17895
17896         [BZ #15384]
17897         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
17898         bit-mask as in subtraction.
17899         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
17900         Likewise.
17901         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
17902         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
17903         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
17904
17905         [BZ #18951]
17906         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
17907         underflow exception for small results.
17908         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
17909         Likewise.
17910         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
17911         Likewise.
17912         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
17913         Likewise.
17914         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
17915         Likewise.
17916         * math/auto-libm-test-in: Add more tests of tgamma.
17917         * math/auto-libm-test-out: Regenerated.
17918
17919 2015-09-17  Andreas Schwab  <schwab@suse.de>
17920
17921         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
17922
17923 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
17924
17925         [BZ #18977]
17926         * math/bits/mathcalls.h
17927         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
17928         not declare.
17929         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
17930         Likewise.
17931         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
17932         Likewise.
17933         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
17934         Likewise.
17935         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
17936         Likewise.
17937         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
17938         Likewise.
17939         * conform/data/math.h-data
17940         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
17941         function.
17942         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
17943         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
17944         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
17945         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
17946         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
17947         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
17948         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
17949         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
17950         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
17951         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
17952         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
17953
17954         [BZ #6803]
17955         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
17956         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
17957         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
17958         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
17959         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
17960         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
17961         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
17962         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
17963         [NO_LONG_DOUBLE] (scalbnl): Likewise.
17964         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
17965         Likewise.
17966         [NO_LONG_DOUBLE] (scalbnl): Likewise.
17967         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
17968         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
17969         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
17970         long_double_symbol calls.
17971         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
17972         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
17973         strong alias of __ldexpl.
17974         (scalbnl): Define using long_double_symbol.
17975         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
17976         Remove alias.
17977         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
17978         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
17979         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
17980         (scalbln_test_data): Add more errno expectations.
17981
17982 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
17983
17984         Cache the host port like we cache the task port.  This way we do not
17985         need to call the kernel just to get the port.  Furthermore, we no
17986         longer increase the reference count on every invocation of
17987         `mach_host_self'.
17988
17989         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
17990         Protect declarations against the macro expansion.
17991         * mach/mach_init.c (__mach_host_self_): New variable.
17992         (mach_init): Initialize `__mach_host_self_'.
17993         * mach/mach_init.h (__mach_host_self_): New declaration.
17994         (__mach_host_self, mach_host_self): New macros.
17995         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
17996         Release reference.
17997
17998 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
17999
18000         [BZ #4404]
18001         * po/de.po: Update from Translation Project.
18002
18003         [BZ #16415]
18004         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
18005         (__expm1l): Remove code to handle positive infinity and overflow.
18006         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
18007         variable.
18008         (__expm1l): Remove code to handle positive infinity and overflow.
18009
18010 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18011             Paul Pluzhnikov  <ppluzhnikov@google.com>
18012
18013         [BZ #18872]
18014         * stdio-common/Makefile (tst-printf-bz18872): New test.
18015         (tst-printf-bz18872-mem.out): Likewise.
18016         * stdio-common/tst-printf-bz18872.sh: Generate new test.
18017         * stdio-common/vfprintf.c: Fix memory leaks.
18018
18019 2015-09-16  Andreas Schwab  <schwab@suse.de>
18020
18021         [BZ #17244]
18022         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
18023         Remove extra va_start/va_end calls.
18024
18025         [BZ #17243]
18026         * posix/execl.c (execl): Add missing va_end.
18027         * posix/execle.c (execle): Likewise.
18028         * posix/execlp.c (execlp): Likewise.
18029
18030 2015-09-15  Roland McGrath  <roland@hack.frob.com>
18031
18032         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
18033         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
18034
18035 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
18036
18037         [BZ #18967]
18038         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
18039         undefine around includes of <bits/mathcalls.h>.
18040         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
18041         not declare function.
18042         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
18043         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
18044         (scalb): Likewise.
18045         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
18046         not define macro.
18047         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
18048         variable.
18049         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
18050         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
18051         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
18052
18053         [BZ #18857]
18054         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
18055         return non-finite argument without doing ordered comparisons on
18056         it.
18057
18058         [BZ #16296]
18059         * math/fenv.h (fegetround): Use __attribute_pure__.
18060         * include/fenv.h (__fegetround): Likewise.
18061
18062         [BZ #18595]
18063         * math/s_ctan.c (__ctan): Force underflow exception for results
18064         whose real or imaginary part has small absolute value.
18065         * math/s_ctanf.c (__ctanf): Likewise.
18066         * math/s_ctanh.c (__ctanh): Likewise.
18067         * math/s_ctanhf.c (__ctanhf): Likewise.
18068         * math/s_ctanhl.c (__ctanhl): Likewise.
18069         * math/s_ctanl.c (__ctanl): Likewise.
18070         * math/auto-libm-test-in: Do not allow missing underflow for ctan
18071         and ctanh.  Add more tests of ctan and ctanh.
18072
18073         [BZ #15918]
18074         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
18075         handling of cases where one argument is an infinity.
18076
18077         [BZ #18875]
18078         [BZ #18966]
18079         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
18080         (MO): New macro.
18081         (__ieee754_exp10): For small results, force underflow exception
18082         and remove excess range and precision from return value.
18083         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
18084         (MO): New macro.
18085         (__ieee754_exp10f): For small results, force underflow exception
18086         and remove excess range and precision from return value.
18087         * math/auto-libm-test-in: Add more tests of exp10.
18088         * math/auto-libm-test-out: Regenerated.
18089
18090 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
18091
18092         [BZ #18875]
18093         [BZ #18961]
18094         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
18095         (MO): New macro.
18096         (__ieee754_exp): For small results, force underflow exception and
18097         remove excess range and precision from return value.
18098         (__exp_finite): Likewise.
18099         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
18100         (MO): New macro.
18101         (__ieee754_expf): For small results, force underflow exception and
18102         remove excess range and precision from return value.
18103         (__expf_finite): Likewise.
18104         * math/auto-libm-test-in: Add more tests of exp.
18105         * math/auto-libm-test-out: Regenerated.
18106
18107         [BZ #16521]
18108         [BZ #18875]
18109         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
18110         small results.
18111         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
18112         (MO): New macro.
18113         (__ieee754_exp2): For small results, force underflow exception and
18114         remove excess range and precision from return value.
18115         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
18116         (MO): New macro.
18117         (__ieee754_exp2f): For small results, force underflow exception
18118         and remove excess range and precision from return value.
18119         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
18120         (MO): New macro.
18121         (__ieee754_exp2l): Force underflow exception for small results.
18122         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
18123         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
18124         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
18125         (MO): New macro.
18126         (__ieee754_exp2l): Force underflow exception for small results.
18127         * math/auto-libm-test-in: Add more tests or exp2.
18128         * math/auto-libm-test-out: Regenerated.
18129
18130 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
18131
18132         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
18133
18134         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
18135         /dev/null.
18136
18137 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18138
18139         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18140         io fs process)): Drop spurious backslash.
18141
18142 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18143
18144         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
18145         Use sysinfo system call instead of parsing /proc/meminfo.
18146         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
18147         Likewise.
18148
18149 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
18150
18151         [BZ #16985]
18152         * programs/localedef.c (main): Display argv[remaining] when
18153         output_path is NULL.
18154
18155 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18156
18157         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
18158         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
18159         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
18160         tanh.
18161         * math/auto-libm-test-out: Regenerated.
18162         * sysdeps/i386/fpu/libm-test-ulps: Update.
18163         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
18164         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18166
18167 2015-09-11  Roland McGrath  <roland@hack.frob.com>
18168
18169         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
18170         Use 'override' keyword to freeze the value here, preventing
18171         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
18172
18173 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
18174
18175         [BZ #14912]
18176         * sysdeps/aarch64/bits/atomic.h: Move to ...
18177         * sysdeps/aarch64/atomic-machine.h: ...here.
18178         (_AARCH64_BITS_ATOMIC_H): Rename macro to
18179         _AARCH64_ATOMIC_MACHINE_H.
18180         * sysdeps/alpha/bits/atomic.h: Move to ...
18181         * sysdeps/alpha/atomic-machine.h: ...here.
18182         * sysdeps/arm/bits/atomic.h: Move to ...
18183         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
18184         * bits/atomic.h: Move to ...
18185         * sysdeps/generic/atomic-machine.h: ...here.
18186         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18187         * sysdeps/i386/bits/atomic.h: Move to ...
18188         * sysdeps/i386/atomic-machine.h: ...here.
18189         * sysdeps/ia64/bits/atomic.h: Move to ...
18190         * sysdeps/ia64/atomic-machine.h: ...here.
18191         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
18192         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
18193         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18194         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
18195         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
18196         * sysdeps/microblaze/bits/atomic.h: Move to ...
18197         * sysdeps/microblaze/atomic-machine.h: ...here.
18198         * sysdeps/mips/bits/atomic.h: Move to ...
18199         * sysdeps/mips/atomic-machine.h: ...here.
18200         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
18201         * sysdeps/powerpc/bits/atomic.h: Move to ...
18202         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
18203         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
18204         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
18205         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
18206         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
18207         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
18208         <atomic-machine.h> instead of <bits/atomic.h>.
18209         * sysdeps/s390/bits/atomic.h: Move to ...
18210         * sysdeps/s390/atomic-machine.h: ...here.
18211         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
18212         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
18213         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18214         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
18215         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
18216         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
18217         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
18218         * sysdeps/tile/bits/atomic.h: Move to ...
18219         * sysdeps/tile/atomic-machine.h: ...here.
18220         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
18221         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
18222         <sysdeps/tile/atomic-machine.h> instead of
18223         <sysdeps/tile/bits/atomic.h>.
18224         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18225         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
18226         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
18227         <sysdeps/tile/atomic-machine.h> instead of
18228         <sysdeps/tile/bits/atomic.h>.
18229         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18230         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
18231         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
18232         <sysdeps/arm/atomic-machine.h> instead of
18233         <sysdeps/arm/bits/atomic.h>.
18234         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
18235         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
18236         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18237         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
18238         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
18239         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
18240         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
18241         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
18242         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
18243         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
18244         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
18245         * sysdeps/x86_64/bits/atomic.h: Move to ...
18246         * sysdeps/x86_64/atomic-machine.h: ...here.
18247         * include/atomic.h: Include <atomic-machine.h> instead of
18248         <bits/atomic.h>.
18249
18250         * sysdeps/mips/mips32/libm-test-ulps: Update.
18251         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18252
18253         [BZ #18952]
18254         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
18255         not convert non-integer negative arguments to int to determine the
18256         value of signgam.
18257         * math/auto-libm-test-in: Add more tests of lgamma.
18258         * math/auto-libm-test-out: Regenerated.
18259
18260         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
18261         cosh, csqrt, erfc, expm1 and lgamma.
18262         * math/auto-libm-test-out: Regenerated.
18263         * sysdeps/i386/fpu/libm-test-ulps: Update.
18264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18265
18266 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
18267
18268         [BZ #2542]
18269         [BZ #2543]
18270         [BZ #2558]
18271         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
18272         __lgamma_neg for arguments from -28.0 to -2.0.
18273         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
18274         __lgamma_negf for arguments from -15.0 to -2.0.
18275         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
18276         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
18277         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
18278         Call __lgamma_negl for arguments from -33.0 to -2.0.
18279         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
18280         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
18281         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18282         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
18283         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
18284         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
18285         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
18286         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
18287         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
18288         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
18289         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
18290         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
18291         (__lgamma_neg): Likewise.
18292         (__lgamma_negl): Likewise.
18293         (__lgamma_product): Likewise.
18294         (__lgamma_productl): Likewise.
18295         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
18296         * math/auto-libm-test-in: Add more tests of lgamma.
18297         * math/auto-libm-test-out: Regenerated.
18298         * sysdeps/i386/fpu/libm-test-ulps: Update.
18299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18300
18301 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
18302
18303         [BZ #18675]
18304         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
18305
18306 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
18307
18308         [BZ #14912]
18309         * bits/libc-lock.h: Move to ...
18310         * sysdeps/generic/libc-lock.h: ...here.
18311         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18312         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
18313         * sysdeps/mach/hurd/libc-lock.h: ...here.
18314         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18315         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
18316         * sysdeps/mach/bits/libc-lock.h: Move to ...
18317         * sysdeps/mach/libc-lock.h: ...here.
18318         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18319         * sysdeps/nptl/bits/libc-lock.h: Move to ...
18320         * sysdeps/nptl/libc-lock.h: ...here.
18321         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
18322         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
18323         * sysdeps/nptl/libc-lockP.h: ...here.
18324         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
18325         * crypt/crypt_util.c: Include <libc-lock.h> instead of
18326         <bits/libc-lock.h>.
18327         * dirent/scandir-tail.c: Likewise.
18328         * dlfcn/dlerror.c: Likewise.
18329         * elf/dl-close.c: Likewise.
18330         * elf/dl-iteratephdr.c: Likewise.
18331         * elf/dl-lookup.c: Likewise.
18332         * elf/dl-open.c: Likewise.
18333         * elf/dl-support.c: Likewise.
18334         * elf/dl-writev.h: Likewise.
18335         * elf/rtld.c: Likewise.
18336         * grp/fgetgrent.c: Likewise.
18337         * gshadow/fgetsgent.c: Likewise.
18338         * gshadow/sgetsgent.c: Likewise.
18339         * iconv/gconv_conf.c: Likewise.
18340         * iconv/gconv_db.c: Likewise.
18341         * iconv/gconv_dl.c: Likewise.
18342         * iconv/gconv_int.h: Likewise.
18343         * iconv/gconv_trans.c: Likewise.
18344         * include/link.h: Likewise.
18345         * inet/getnameinfo.c: Likewise.
18346         * inet/getnetgrent.c: Likewise.
18347         * inet/getnetgrent_r.c: Likewise.
18348         * intl/bindtextdom.c: Likewise.
18349         * intl/dcigettext.c: Likewise.
18350         * intl/finddomain.c: Likewise.
18351         * intl/gettextP.h: Likewise.
18352         * intl/loadmsgcat.c: Likewise.
18353         * intl/localealias.c: Likewise.
18354         * intl/textdomain.c: Likewise.
18355         * libidn/idn-stub.c: Likewise.
18356         * libio/libioP.h: Likewise.
18357         * locale/duplocale.c: Likewise.
18358         * locale/freelocale.c: Likewise.
18359         * locale/newlocale.c: Likewise.
18360         * locale/setlocale.c: Likewise.
18361         * login/getutent_r.c: Likewise.
18362         * login/getutid_r.c: Likewise.
18363         * login/getutline_r.c: Likewise.
18364         * login/utmp-private.h: Likewise.
18365         * login/utmpname.c: Likewise.
18366         * malloc/mtrace.c: Likewise.
18367         * misc/efgcvt.c: Likewise.
18368         * misc/error.c: Likewise.
18369         * misc/fstab.c: Likewise.
18370         * misc/getpass.c: Likewise.
18371         * misc/mntent.c: Likewise.
18372         * misc/syslog.c: Likewise.
18373         * nis/nis_call.c: Likewise.
18374         * nis/nis_callback.c: Likewise.
18375         * nis/nss-default.c: Likewise.
18376         * nis/nss_compat/compat-grp.c: Likewise.
18377         * nis/nss_compat/compat-initgroups.c: Likewise.
18378         * nis/nss_compat/compat-pwd.c: Likewise.
18379         * nis/nss_compat/compat-spwd.c: Likewise.
18380         * nis/nss_nis/nis-alias.c: Likewise.
18381         * nis/nss_nis/nis-ethers.c: Likewise.
18382         * nis/nss_nis/nis-grp.c: Likewise.
18383         * nis/nss_nis/nis-hosts.c: Likewise.
18384         * nis/nss_nis/nis-network.c: Likewise.
18385         * nis/nss_nis/nis-proto.c: Likewise.
18386         * nis/nss_nis/nis-pwd.c: Likewise.
18387         * nis/nss_nis/nis-rpc.c: Likewise.
18388         * nis/nss_nis/nis-service.c: Likewise.
18389         * nis/nss_nis/nis-spwd.c: Likewise.
18390         * nis/nss_nisplus/nisplus-alias.c: Likewise.
18391         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
18392         * nis/nss_nisplus/nisplus-grp.c: Likewise.
18393         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
18394         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
18395         * nis/nss_nisplus/nisplus-network.c: Likewise.
18396         * nis/nss_nisplus/nisplus-proto.c: Likewise.
18397         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
18398         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
18399         * nis/nss_nisplus/nisplus-service.c: Likewise.
18400         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
18401         * nis/ypclnt.c: Likewise.
18402         * nptl/libc_pthread_init.c: Likewise.
18403         * nss/getXXbyYY.c: Likewise.
18404         * nss/getXXent.c: Likewise.
18405         * nss/getXXent_r.c: Likewise.
18406         * nss/nss_db/db-XXX.c: Likewise.
18407         * nss/nss_db/db-netgrp.c: Likewise.
18408         * nss/nss_db/nss_db.h: Likewise.
18409         * nss/nss_files/files-XXX.c: Likewise.
18410         * nss/nss_files/files-alias.c: Likewise.
18411         * nss/nsswitch.c: Likewise.
18412         * posix/regex_internal.h: Likewise.
18413         * posix/wordexp.c: Likewise.
18414         * pwd/fgetpwent.c: Likewise.
18415         * resolv/res_hconf.c: Likewise.
18416         * resolv/res_libc.c: Likewise.
18417         * shadow/fgetspent.c: Likewise.
18418         * shadow/lckpwdf.c: Likewise.
18419         * shadow/sgetspent.c: Likewise.
18420         * socket/opensock.c: Likewise.
18421         * stdio-common/reg-modifier.c: Likewise.
18422         * stdio-common/reg-printf.c: Likewise.
18423         * stdio-common/reg-type.c: Likewise.
18424         * stdio-common/vfprintf.c: Likewise.
18425         * stdio-common/vfscanf.c: Likewise.
18426         * stdlib/abort.c: Likewise.
18427         * stdlib/cxa_atexit.c: Likewise.
18428         * stdlib/fmtmsg.c: Likewise.
18429         * stdlib/random.c: Likewise.
18430         * stdlib/setenv.c: Likewise.
18431         * string/strsignal.c: Likewise.
18432         * sunrpc/auth_none.c: Likewise.
18433         * sunrpc/bindrsvprt.c: Likewise.
18434         * sunrpc/create_xid.c: Likewise.
18435         * sunrpc/key_call.c: Likewise.
18436         * sunrpc/rpc_thread.c: Likewise.
18437         * sysdeps/arm/backtrace.c: Likewise.
18438         * sysdeps/generic/ldsodefs.h: Likewise.
18439         * sysdeps/generic/stdio-lock.h: Likewise.
18440         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
18441         * sysdeps/i386/backtrace.c: Likewise.
18442         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
18443         * sysdeps/m68k/backtrace.c: Likewise.
18444         * sysdeps/mach/hurd/cthreads.c: Likewise.
18445         * sysdeps/mach/hurd/dirstream.h: Likewise.
18446         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18447         * sysdeps/nptl/malloc-machine.h: Likewise.
18448         * sysdeps/nptl/stdio-lock.h: Likewise.
18449         * sysdeps/posix/dirstream.h: Likewise.
18450         * sysdeps/posix/getaddrinfo.c: Likewise.
18451         * sysdeps/posix/system.c: Likewise.
18452         * sysdeps/pthread/aio_suspend.c: Likewise.
18453         * sysdeps/s390/s390-32/backtrace.c: Likewise.
18454         * sysdeps/s390/s390-64/backtrace.c: Likewise.
18455         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18456         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
18457         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
18458         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
18459         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
18460         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
18461         * sysdeps/unix/sysv/linux/system.c: Likewise.
18462         * sysdeps/x86_64/backtrace.c: Likewise.
18463         * time/alt_digit.c: Likewise.
18464         * time/era.c: Likewise.
18465         * time/tzset.c: Likewise.
18466         * wcsmbs/wcsmbsload.c: Likewise.
18467         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
18468         instead of <bits/libc-lock.h> in comment.
18469
18470 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
18471
18472         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
18473         Only use .set mips2 if the current ISA is below mips2.
18474         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
18475         Likewise.
18476         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
18477         mips32r2 if the current ISA is below mips32r2.
18478         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
18479         (TLS_IE): Updated to use the TLD_RDHWR macro.
18480         (TLS_LE): Likewise.
18481         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
18482         __ASSEMBLER__ condition.
18483
18484 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18485
18486         Fix parallel build of before-compile targets.
18487
18488         * sysdeps/mach/Makefile ($(patsubst
18489         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
18490         mach-before-compile target.
18491         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18492         io fs process)): Move rule to dedicated hurd-before-compile target.
18493
18494 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18495
18496         Fix rules generating headers in hurd/ and mach/ when initial make call
18497         has subdir= explicitly set.
18498
18499         * sysdeps/mach/Makefile ($(patsubst
18500         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
18501         calling $(MAKE).
18502         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
18503         io fs process)): Force subdir to hurd when calling $(MAKE).
18504         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
18505         subdir to mach when calling $(MAKE).
18506
18507 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
18508
18509         Check sysheaders when looking for Mach and Hurd headers
18510
18511         * sysdeps/mach/configure.ac: Add sysheaders check.
18512         * sysdeps/mach/configure: Regenerate.
18513         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
18514         * sysdeps/mach/hurd/configure: Regenerate.
18515
18516 2015-09-04  Roland McGrath  <roland@hack.frob.com>
18517
18518         [BZ #18921]
18519         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
18520         Fix inverted sense of test of 'o_directory_works' value.
18521         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
18522         Bernhard Voelker <mail@bernhard-voelker.de>.
18523
18524 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18525
18526         [BZ #14912]
18527         * bits/linkmap.h: Move to ...
18528         * sysdeps/generic/linkmap.h: ...here.
18529         * sysdeps/aarch64/bits/linkmap.h: Move to ...
18530         * sysdeps/aarch64/linkmap.h: ...here.
18531         * sysdeps/arm/bits/linkmap.h: Move to ...
18532         * sysdeps/arm/linkmap.h: ...here.
18533         * sysdeps/hppa/bits/linkmap.h: Move to ...
18534         * sysdeps/hppa/linkmap.h: ...here.
18535         * sysdeps/ia64/bits/linkmap.h: Move to ...
18536         * sysdeps/ia64/linkmap.h: ...here.
18537         * sysdeps/mips/bits/linkmap.h: Move to ...
18538         * sysdeps/mips/linkmap.h: ...here.
18539         * sysdeps/s390/bits/linkmap.h: Move to ...
18540         * sysdeps/s390/linkmap.h: ...here.
18541         * sysdeps/sh/bits/linkmap.h: Move to ...
18542         * sysdeps/sh/linkmap.h: ...here.
18543         * sysdeps/x86/bits/linkmap.h: Move to ...
18544         * sysdeps/x86/linkmap.h: ...here.
18545         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
18546
18547 2015-09-04  Andreas Schwab  <schwab@suse.de>
18548
18549         [BZ #18635]
18550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
18551         (__makecontext): Terminate FDE before return label.
18552         (__novec_makecontext): Likewise.
18553
18554 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18555
18556         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
18557         first member of struct sv in syscall macro.
18558
18559 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
18560
18561         [BZ #14912]
18562         * bits/stdio-lock.h: Move to ...
18563         * sysdeps/generic/stdio-lock.h: ...here.
18564         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18565         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
18566         * sysdeps/nptl/stdio-lock.h: ...here.
18567         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
18568         * include/libio.h: Include <stdio-lock.h> instead of
18569         <bits/stdio-lock.h>.
18570         * sysdeps/nptl/fork.c: Likewise.
18571         * sysdeps/pthread/flockfile.c: Likewise.
18572         * sysdeps/pthread/ftrylockfile.c: Likewise.
18573         * sysdeps/pthread/funlockfile.c: Likewise.
18574
18575         [BZ #14912]
18576         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
18577         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
18578         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
18579         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
18580         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
18581         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
18582         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
18583
18584 2015-09-03  Roland McGrath  <roland@hack.frob.com>
18585
18586         * elf/Makefile (test-xfail-tst-protected1a): New variable.
18587         (test-xfail-tst-protected1b): New variable.
18588
18589 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
18590
18591         [BZ #14912]
18592         * bits/libc-tsd.h: Move to ...
18593         * sysdeps/generic/libc-tsd.h: ...here.
18594         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
18595         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
18596         * sysdeps/mach/hurd/libc-tsd.h: ...here.
18597         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
18598         * include/ctype.h: Include <libc-tsd.h> instead of
18599         <bits/libc-tsd.h>.
18600         * include/rpc/rpc.h: Likewise.
18601         * locale/localeinfo.h: Likewise.
18602         * sunrpc/rpc_thread.c: Likewise.
18603         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
18604         * sysdeps/nptl/malloc-machine.h: Likewise.
18605
18606         * Makefile (headers): Remove bits/libc-lock.h.
18607         * libio/Makefile (headers): Remove bits/stdio-lock.h.
18608
18609         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
18610         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
18611         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
18612         <bits/stdio-lock.h>.
18613         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
18614         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
18615
18616 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18617
18618         [BZ #18757]
18619         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
18620         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
18621         BZ #18757.
18622
18623 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
18624
18625         * malloc/mtrace.pl: Filter out NULL entries.
18626
18627 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
18628
18629         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
18630         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
18631         macro.
18632
18633         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
18634         (TCP_CC_INFO): Likewise.
18635         (TCP_SAVE_SYN): Likewise.
18636         (TCP_SAVED_SYN): Likewise.
18637
18638 2015-08-31  Brett Neumeier <brett@neumeier.us>
18639
18640         [BZ #18870]
18641         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
18642
18643 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18644
18645         [BZ #18873]
18646         Fix broken overflow check in posix_fallocate
18647         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
18648         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
18649         Fix parenthesization typo.
18650
18651 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
18652
18653         [BZ #18887]
18654         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
18655         tst-mntent-blank-passno.
18656         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
18657         * misc/tst-mntent-blank-corrupt.c: New test.
18658         * misc/tst-mntent-blank-passno.c: New test ripped from ...
18659         * misc/tst-mntent.c (do_test): ... here.
18660
18661 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
18662
18663         [BZ #4404]
18664         * po/de.po: Fix SIGALRM typo.
18665
18666 2015-08-28  James Perkins  <james@loowit.net>
18667
18668         * time/tst-strptime2.c (tests): Replace short list of test
18669         strings for strptime %z specifier with code which exhaustively
18670         tests every combination of sign and 0 to 5 digits. Tests for
18671         rejection of invalid strings.
18672
18673 2015-08-28  James Perkins  <james@loowit.net>
18674
18675         [BZ #16141]
18676         * time/strptime_l.c (__strptime_internal): Fix %z minutes
18677         calculation, removing incorrect decimal time rounding, so that
18678         all minute values result in a valid seconds value.
18679         * time/strptime_l.c (__strptime_internal): Extend %z time zone
18680         offset range limits to UTC-99:59 through UTC+99:59 to parse
18681         current and historical use cases.
18682         * time/tst-strptime2.c (tests): Modify and add tests for the
18683         strptime %z input field descriptor, specifically conversion of
18684         minutes to seconds and validating an offset range of -9959 to
18685         +9959.
18686
18687 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18688             Dmitry V. Levin  <ldv@altlinux.org>
18689
18690         [BZ #18877]
18691         * posix/Makefile (tests): Add tst-mmap-offset.
18692         * posix/tst-mmap.c: New file.
18693         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
18694         offset calculation for negative values.
18695
18696 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18697
18698         * sysdeps/i386/init-arch.h: New file.
18699         * sysdeps/i386/i586/init-arch.h: Likewise.
18700         * sysdeps/i386/i686/init-arch.h: Likewise.
18701         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
18702         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
18703         * sysdeps/x86/cpu-features.h (bit_I586): New.
18704         (bit_I686): Likewise.
18705         (bit_CX8): Likewise.
18706         (bit_CMOV): Likewise.
18707         (index_CX8): Likewise.
18708         (index_CMOV): Likewise.
18709         (index_I586): Likewise.
18710         (index_I686): Likewise.
18711         (reg_CX8): Likewise.
18712         (reg_CMOV): Likewise.
18713         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
18714         available at compile-time.
18715         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
18716         available at compile-time.
18717         * sysdeps/x86/init-arch.h (USE_I586): New macro.
18718         (USE_I686): Likewise.
18719
18720 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18721
18722         * sysdeps/i386/bcopy.S: New file.
18723         * sysdeps/i386/bzero.S: Likewise.
18724         * sysdeps/i386/memcpy.S: Likewise.
18725         * sysdeps/i386/memmove.S: Likewise.
18726         * sysdeps/i386/mempcpy.S: Likewise.
18727         * sysdeps/i386/memset.S: Likewise.
18728         * sysdeps/i386/bzero.c: Removed.
18729         * sysdeps/i386/memset.c: Likewise.
18730         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
18731         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
18732         * sysdeps/i386/i586/memset_chk.S: Likewise.
18733         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
18734         * sysdeps/i386/memcpy_chk.S: Here.
18735         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
18736         * sysdeps/i386/memmove_chk.S: Here.
18737         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
18738         * sysdeps/i386/mempcpy_chk.S: Likewise.
18739         * sysdeps/i386/i686/memset_chk.S: Moved to ...
18740         * sysdeps/i386/memset_chk.S: Likewise.
18741
18742 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
18743
18744         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
18745         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
18746         file, move DIAG_POP_NEEDS_COMMENT to end of file.
18747         * soft-fp/fmadf4.c: Ditto.
18748         * soft-fp/fmatf4.c: Ditto.
18749
18750 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18751
18752         * sysdeps/i386/i586/Implies: Removed.
18753         * sysdeps/i386/i686/Implies: Likewise.
18754
18755 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18756
18757         * sysdeps/i386/i486/strlen.S: Moved to ...
18758         * sysdeps/i386/strlen.S: Here.
18759
18760 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18761
18762         * sysdeps/i386/i486/strcat.S: Moved to ...
18763         * sysdeps/i386/strcat.S: Here.
18764
18765 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18766
18767         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
18768         * sysdeps/i386/pthread_spin_trylock.S: Here.
18769         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
18770         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
18771
18772 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18773
18774         * sysdeps/i386/i486/string-inlines.c: Moved to ...
18775         * sysdeps/i386/string-inlines.c: Here.
18776
18777 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18778
18779         * sysdeps/i386/i486/htonl.S: Moved ...
18780         * sysdeps/i386/htonl.S: here.
18781
18782 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18783
18784         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
18785         * sysdeps/i386/bits/atomic.h: Here.
18786
18787 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
18788
18789         * sysdeps/i386/i486/Versions: Removed.
18790
18791 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
18792
18793         [BZ #2898]
18794         * misc/mktemp.c: Add mkdtemp to the link_warning message.
18795         Based on patch by Aurelien Jarno.
18796
18797 2015-08-26  Stan Shebs  <stanshebs@google.com>
18798
18799         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
18800         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18801
18802 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18803
18804         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
18805         * sysdeps/powerpc/dl-procinfo.c:
18806         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
18807         feature so it shows when LD_SHOW_AUXV=1.
18808
18809 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
18810
18811         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
18812         (__arch_compare_and_exchange_val_32_acq): Remove and use common
18813         definition.  ISA 2.07B no longer requires full sync.
18814
18815 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
18816
18817         [BZ #18863]
18818         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
18819         (si_call_addr): Define.
18820         (si_syscall): Define.
18821         (si_arch): Define.
18822
18823 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18824
18825         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
18826         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
18827         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
18828         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
18829         (__memset_zero_constant_len_parameter): New.
18830         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
18831         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
18832         (__memset_zero_constant_len_parameter): Don't define if
18833         __memset_chk or USE_AS_BZERO are defined.
18834
18835         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
18836         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
18837         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
18838
18839         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
18840         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
18841         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
18842         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
18843         comments.
18844         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
18845         -mno-mmx for $(all-rtld-routines).
18846         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
18847         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
18848         i386.
18849
18850 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
18851
18852         * sysdeps/generic/unwind.h
18853         (_Unwind_Word): Use __mode__(__unwind_word__)
18854         instead of __mode__(__word__).
18855         (_Unwind_Sword): Likewise.
18856
18857         * sysdeps/s390/s390-64/utf8-utf16-z9.c
18858         (MAX_NEEDED_INPUT): New define.
18859         (MAX_NEEDED_OUTPUT): New define.
18860
18861         * NEWS: New item for IBM z13 string optimizations.
18862
18863         * sysdeps/s390/multiarch/memrchr-c.c: New File.
18864         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
18865         * sysdeps/s390/multiarch/memrchr.c: Likewise.
18866         * sysdeps/s390/multiarch/Makefile
18867         (sysdep_routines): Add memrchr functions.
18868         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18869         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
18870
18871         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
18872         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
18873         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
18874         * sysdeps/s390/multiarch/Makefile
18875         (sysdep_routines): Add wmemcmp functions.
18876         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18877         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
18878         * benchtests/bench-wmemcmp.c: New File.
18879         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
18880
18881         * sysdeps/s390/multiarch/wmemset-c.c: New File.
18882         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
18883         * sysdeps/s390/multiarch/wmemset.c: Likewise.
18884         * sysdeps/s390/multiarch/Makefile
18885         (sysdep_routines): Add wmemset functions.
18886         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18887         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
18888         * wcsmbs/wmemset.c: Use WMEMSET if defined.
18889         * string/test-memset.c: Add wmemset support.
18890         * wcsmbs/test-wmemset.c: New File.
18891         * wcsmbs/Makefile (strop-tests): Add wmemset.
18892         * benchtests/bench-memset.c: Add wmemset support.
18893         * benchtests/bench-wmemset.c: New File.
18894         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
18895
18896         * sysdeps/s390/multiarch/memccpy-c.c: New File.
18897         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
18898         * sysdeps/s390/multiarch/memccpy.c: Likewise.
18899         * sysdeps/s390/multiarch/Makefile
18900         (sysdep_routines): Add memccpy functions.
18901         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18902         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
18903         * string/memccpy.c: Use MEMCCPY if defined.
18904
18905         * sysdeps/s390/multiarch/memchr-vx.S: New File.
18906         * sysdeps/s390/multiarch/memchr.c: Likewise.
18907         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
18908         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
18909         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
18910         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
18911         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
18912         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
18913         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
18914         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
18915         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
18916         and rawmemchr functions.
18917         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
18918         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
18919         and wmemchr.
18920         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
18921         * string/test-memchr.c: Add wmemchr support.
18922         * wcsmbs/test-wmemchr.c: New File.
18923         * wcsmbs/Makefile (strop-tests): Add wmemchr.
18924         * benchtests/bench-memchr.c: Add wmemchr support.
18925         * benchtests/bench-wmemchr.c: New File.
18926         * benchtests/Makefile (wcsmbs-bench): wmemchr.
18927
18928         * sysdeps/s390/multiarch/strcspn-c.c: New File.
18929         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
18930         * sysdeps/s390/multiarch/strcspn.c: Likewise.
18931         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
18932         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
18933         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
18934         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
18935         wcscspn functions.
18936         * sysdeps/s390/multiarch/ifunc-impl-list.c
18937         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
18938         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
18939         * string/test-strcspn.c: Add wcscspn support.
18940         * wcsmbs/test-wcscspn.c: New File.
18941         * wcsmbs/Makefile (strop-tests): Add wcscspn.
18942         * benchtests/bench-strcspn.c: Add wcscspn support.
18943         * benchtests/bench-wcscspn.c: New File.
18944         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
18945
18946         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
18947         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
18948         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
18949         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
18950         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
18951         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
18952         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
18953         wcspbrk functions.
18954         * sysdeps/s390/multiarch/ifunc-impl-list.c
18955         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
18956         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
18957         * string/test-strpbrk.c: Add wcspbrk support.
18958         * wcsmbs/test-wcspbrk.c: New File.
18959         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
18960         * benchtests/bench-strpbrk.c: Add wcspbrk support.
18961         * benchtests/bench-wcspbrk.c: New File.
18962         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
18963
18964         * sysdeps/s390/multiarch/strspn-c.c: New File.
18965         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
18966         * sysdeps/s390/multiarch/strspn.c: Likewise.
18967         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
18968         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
18969         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
18970         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
18971         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
18972         wcsspn functions.
18973         * sysdeps/s390/multiarch/ifunc-impl-list.c
18974         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
18975         * string/test-strspn.c: Add wcsspn support.
18976         * wcsmbs/test-wcsspn.c: New File.
18977         * wcsmbs/Makefile (strop-tests): Add wcsspn.
18978         * benchtests/bench-strspn.c: Add wcsspn support.
18979         * benchtests/bench-wcsspn.c: New File.
18980         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
18981
18982         * sysdeps/s390/multiarch/strrchr-c.c: New File.
18983         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
18984         * sysdeps/s390/multiarch/strrchr.c: Likewise.
18985         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
18986         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
18987         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
18988         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
18989         wcsrchr functions.
18990         * sysdeps/s390/multiarch/ifunc-impl-list.c
18991         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
18992         * benchtests/bench-wcsrchr.c: New File.
18993         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
18994
18995         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
18996         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
18997         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
18998         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
18999         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
19000         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
19001         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
19002         wcschrnul functions.
19003         * sysdeps/s390/multiarch/ifunc-impl-list.c
19004         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
19005         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
19006         * string/test-strchr.c: Add wcschrnul support.
19007         * wcsmbs/test-wcschrnul.c: New File.
19008         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
19009         * benchtests/bench-strchr.c: Add wcschrnul support.
19010         * benchtests/bench-wcschrnul.c: New File.
19011         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
19012
19013         * sysdeps/s390/multiarch/strchr-c.c: New File.
19014         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
19015         * sysdeps/s390/multiarch/strchr.c: Likewise.
19016         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
19017         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
19018         * sysdeps/s390/multiarch/wcschr.c: Likewise.
19019         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
19020         wcschr functions.
19021         * sysdeps/s390/multiarch/ifunc-impl-list.c
19022         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
19023         * string/strchr.c (STRCHR): Define and use macro.
19024         * benchtests/bench-wcschr.c: New File.
19025         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
19026
19027         * sysdeps/s390/multiarch/strncmp-c.c: New File.
19028         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
19029         * sysdeps/s390/multiarch/strncmp.c: Likewise.
19030         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
19031         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
19032         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
19033         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
19034         wcsncmp functions.
19035         * sysdeps/s390/multiarch/ifunc-impl-list.c
19036         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
19037         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
19038         * benchtests/bench-strncmp.c: Add wcsncmp support.
19039         * benchtests/bench-wcsncmp.c: New File.
19040         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
19041
19042         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
19043         * sysdeps/s390/multiarch/strcmp.c: Likewise.
19044         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
19045         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
19046         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
19047         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
19048         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
19049         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
19050         wcscmp functions.
19051         * sysdeps/s390/multiarch/ifunc-impl-list.c
19052         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
19053         * string/strcmp.c (STRCMP): Define and use macro.
19054         * benchtests/bench-wcscmp.c: New File.
19055         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
19056         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
19057         instead of _HAVE_STRING_ARCH_memchr.
19058
19059         * sysdeps/s390/multiarch/strncat-c.c: New File.
19060         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
19061         * sysdeps/s390/multiarch/strncat.c: Likewise.
19062         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
19063         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
19064         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
19065         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
19066         wcsncat functions.
19067         * sysdeps/s390/multiarch/ifunc-impl-list.c
19068         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
19069         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
19070         * string/test-strncat.c: Add wcsncat support.
19071         * wcsmbs/test-wcsncat.c: New File.
19072         * wcsmbs/Makefile (strop-tests): Add wcsncat.
19073         * benchtests/bench-strncat.c: Add wcsncat support.
19074         * benchtests/bench-wcsncat.c: New File.
19075         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
19076
19077         * sysdeps/s390/multiarch/strcat-c.c: New File.
19078         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
19079         * sysdeps/s390/multiarch/strcat.c: Likewise.
19080         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
19081         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
19082         * sysdeps/s390/multiarch/wcscat.c: Likewise.
19083         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
19084         wcscat functions.
19085         * sysdeps/s390/multiarch/ifunc-impl-list.c
19086         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
19087         * string/strcat.c (STRCAT): Define and use macro.
19088         * wcsmbs/wcscat.c: Use WCSCAT if defined.
19089         * string/test-strcat.c: Add wcscat support.
19090         * wcsmbs/test-wcscat.c: New File.
19091         * wcsmbs/Makefile (strop-tests): Add wcscat.
19092         * benchtests/bench-strcat.c: Add wcscat support.
19093         * benchtests/bench-wcscat.c: New File.
19094         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
19095
19096         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
19097         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
19098         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
19099         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
19100         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
19101         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
19102         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
19103         wcpncpy functions.
19104         * sysdeps/s390/multiarch/ifunc-impl-list.c
19105         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
19106         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
19107         * string/test-stpncpy.c: Add wcpncpy support.
19108         * wcsmbs/test-wcpncpy.c: New File.
19109         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
19110         * benchtests/bench-stpncpy.c: Add wcpncpy support.
19111         * benchtests/bench-wcpncpy.c: New File.
19112         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
19113
19114         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
19115         * sysdeps/s390/multiarch/strncpy.c: Likewise.
19116         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
19117         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
19118         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
19119         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
19120         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
19121         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
19122         wcsncpy functions.
19123         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
19124         * sysdeps/s390/multiarch/ifunc-impl-list.c
19125         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
19126         * string/test-strncpy.c: Add wcsncpy support.
19127         * wcsmbs/test-wcsncpy.c: New File.
19128         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
19129         * benchtests/bench-strncpy.c: Add wcsncpy support.
19130         * benchtests/bench-wcsncpy.c: New File.
19131         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
19132
19133         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
19134         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
19135         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
19136         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
19137         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
19138         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
19139         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
19140         wcpcpy functions.
19141         * string/stpcpy.c: Use STPCPY if defined.
19142         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
19143         * sysdeps/s390/multiarch/ifunc-impl-list.c
19144         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
19145         * string/test-stpcpy.c: Add wcpcpy support.
19146         * wcsmbs/test-wcpcpy.c: New File.
19147         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
19148         * benchtests/bench-stpcpy.c: Add wcpcpy support.
19149         * benchtests/bench-wcpcpy.c: New File.
19150         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
19151
19152         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
19153         * sysdeps/s390/multiarch/strcpy.c: Likewise.
19154         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
19155         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
19156         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
19157         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
19158         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
19159         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
19160         wcscpy functions.
19161         * sysdeps/s390/multiarch/ifunc-impl-list.c
19162         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
19163         * benchtests/bench-wcscpy.c: New File.
19164         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
19165
19166         * sysdeps/s390/multiarch/strnlen-c.c: New File.
19167         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
19168         * sysdeps/s390/multiarch/strnlen.c: Likewise.
19169         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
19170         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
19171         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
19172         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
19173         wcsnlen functions.
19174         * sysdeps/s390/multiarch/ifunc-impl-list.c
19175         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
19176         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
19177         * string/test-strnlen.c: Add wcsnlen support.
19178         * wcsmbs/test-wcsnlen.c: New File.
19179         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
19180         * benchtests/bench-strnlen.c: Add wcsnlen support.
19181         * benchtests/bench-wcsnlen.c: New File.
19182         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
19183
19184         * sysdeps/s390/multiarch/Makefile: New File.
19185         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
19186         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
19187         * sysdeps/s390/multiarch/strlen.c: Likewise.
19188         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
19189         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
19190         * sysdeps/s390/multiarch/wcslen.c: Likewise.
19191         * string/strlen.c (STRLEN): Define and use macro.
19192         * sysdeps/s390/multiarch/ifunc-impl-list.c
19193         (IFUNC_VX_IMPL): New macro function.
19194         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
19195         * benchtests/Makefile (wcsmbs-bench): New variable.
19196         (string-bench-all): Added wcsmbs-bench.
19197         * benchtests/bench-wcslen.c: New File.
19198
19199         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
19200         s390_vx_libc_ifunc2): New macro function.
19201
19202         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
19203         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
19204         assembler support.
19205         * sysdeps/s390/configure: Regenerated.
19206
19207         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
19208         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
19209
19210         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
19211         * sysdeps/s390/dl-procinfo.h: Add vector capability.
19212         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
19213
19214         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
19215         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
19216         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
19217         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
19218         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
19219         (memcmp, bcmp): Use __memcmp_default as alias source.
19220         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
19221         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
19222         Rename to __memcmp_default.
19223         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
19224         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
19225         (memcpy): Use __memcpy_default as alias source.
19226         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
19227         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
19228         Rename to __memcpy_default.
19229         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
19230         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
19231         (memset): Use __memset_default as alias source.
19232         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
19233         * sysdeps/s390/s390-32/memset.S (__memset_g5):
19234         Rename to __memset_default.
19235         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
19236         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
19237         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
19238         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
19239         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
19240         (memcmp, bcmp): Use __memcmp_default as alias source.
19241         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
19242         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
19243         Rename to __memcmp_default.
19244         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
19245         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
19246         (memcpy): Use __memcpy_default as alias source.
19247         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
19248         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
19249         Rename to __memcpy_default.
19250         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
19251         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
19252         (memset): Use __memset_default as alias source.
19253         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
19254         * sysdeps/s390/s390-64/memset.S (__memset_z900):
19255         Rename to __memset_default.
19256         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
19257         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
19258
19259         [BZ #18610]
19260         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
19261         __ieee_instruction_pointer to __unused.
19262         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
19263         __ieee_instruction_pointer.
19264         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
19265         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
19266         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19267         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19268         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
19269         Mark dxc-field as reserved.
19270
19271 2015-08-25  Roland McGrath  <roland@hack.frob.com>
19272
19273         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
19274         if the weak reference is not null.
19275
19276 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19277
19278         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
19279
19280         [BZ #11214]
19281         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
19282
19283 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19284
19285         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
19286         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
19287         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
19288         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
19289         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
19290         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
19291         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
19292         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
19293         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
19294         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
19295         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
19296         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
19297         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
19298         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
19299         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
19300         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
19301         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
19302         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
19303
19304 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19305
19306         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
19307         register other than r0 for tabort, it has special meaning.
19308         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
19309         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
19310         transaction before starting syscall.
19311
19312 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19313
19314         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
19315
19316 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19317
19318         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
19319
19320         * sysdeps/x86_64/rtld-memcmp.c: Removed.
19321         * sysdeps/x86_64/rtld-memset.S: Likewise.
19322         * sysdeps/x86_64/rtld-strchr.S: Likewise.
19323         * sysdeps/x86_64/rtld-strlen.S: Likewise.
19324         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
19325         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
19326
19327         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
19328
19329 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
19330
19331         * debug/strcpy_chk.c: Improve performance.
19332         * debug/stpcpy_chk.c: Likewise.
19333         * sysdeps/x86_64/strcpy_chk.S: Remove.
19334         * sysdeps/x86_64/stpcpy_chk.S: Remove.
19335
19336         [BZ #18240]
19337         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
19338
19339 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19340
19341         [BZ #15128]
19342         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
19343         ifuncmain8.
19344         (modules-names): Add ifuncmod8.
19345         ($(objpfx)ifuncmain8): New rule.
19346         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
19347         <cpuid.h>.
19348         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
19349         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
19350         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
19351         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
19352         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
19353         * sysdeps/x86_64/dl-trampoline.h: Likewise.
19354         * sysdeps/x86_64/ifuncmain8.c: New file.
19355         * sysdeps/x86_64/ifuncmod8.c: Likewise.
19356         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
19357         Removed.
19358         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
19359         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
19360         Change rtld_savespace_sse to __glibc_unused2.
19361         (RTLD_CHECK_FOREIGN_CALL): Removed.
19362         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
19363         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
19364         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
19365
19366 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19367
19368         * sysdeps/aarch64/bzero.S (__bzero): Remove.
19369
19370 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
19371
19372         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
19373         Unconditionally set __fpcr to avoid uninialized warning.
19374         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
19375
19376 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19377
19378         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
19379         is corrupt.
19380
19381         * malloc/arena.c (arena_get2): Drop unused argument.
19382         (arena_lock): Adjust.
19383         (arena_get_retry): Likewise.
19384
19385 2015-08-24  Andreas Schwab  <schwab@suse.de>
19386
19387         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
19388         Don't define.
19389         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
19390         (__ASSUME_IPC64): Don't undef.
19391         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
19392         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
19393         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
19394         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
19395         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
19396         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
19397         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
19398         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
19399         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
19400         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
19401         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
19402         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
19403         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
19404         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
19405         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
19406         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
19407         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
19408         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
19409         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
19410         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
19411         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
19412
19413 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
19414
19415         * manual/Makefile (install): Only build manual when perl is available.
19416
19417 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19418
19419         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
19420         '#undef memcpy' by '#undef memchr'.
19421
19422 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19423
19424         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
19425         memchr not point to the internal __GI_memchr implementation.
19426
19427 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19428
19429         * timezone/Makefile (CFLAGS-zdump.c): Remove
19430         -Wno-strict-prototypes.
19431         (CFLAGS-zic.c): Likewise.
19432         (CFLAGS-ialloc.c): Likewise.
19433         (CFLAGS-scheck.c): Likewise.
19434
19435         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
19436         -Wno-error=undef.
19437
19438 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19439
19440         * i386/i686/multiarch/strcasestr-c.c: Removed.
19441         * x86_64/multiarch/strcasestr.c: Likewise.
19442         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19443         Remove strcasestr.
19444
19445 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
19446
19447         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
19448
19449         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
19450         variables for high and low parts before possibly modifying them.
19451
19452 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19453
19454         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
19455         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
19456         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
19457         of "multiarch/init-arch.h".
19458         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
19459         * sysdeps/x86/init-arch.h: This.
19460
19461 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
19462
19463         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
19464         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
19465
19466 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
19467
19468         [BZ #17787]
19469         * manual/macros.texi: Add twoexp macro.
19470         * manual/filesys.texi: Fix exponents.
19471         * manual/llio.texi: Likewise.
19472         * manual/stdio.texi: Likewise.
19473
19474 2015-08-20  Florian Weimer  <fweimer@redhat.com>
19475
19476         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
19477         incorrect use.
19478
19479 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19480
19481         [BZ #18370]
19482         * math/s_csqrt.c (__csqrt): Force underflow exception for results
19483         whose real or imaginary part has small absolute value.
19484         * math/s_csqrtf.c (__csqrtf): Likewise.
19485         * math/s_csqrtl.c (__csqrtl): Likewise.
19486         * math/auto-libm-test-in: Add more tests of csqrt.
19487         * math/auto-libm-test-out: Regenerated.
19488         * sysdeps/i386/fpu/libm-test-ulps: Update.
19489
19490 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
19491
19492         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
19493         __ppc_set_ppr_very_low): New functions.
19494         * manual/platform.texi: Add documentation about
19495         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
19496
19497 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
19498
19499         * string/stpncpy.c (stpncpy): Improve performance using
19500         __strnlen/memcpy/memset.
19501
19502 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19503
19504         [BZ #18796]
19505         * scripts/test-installation.pl: Don't add -lmvec to build options if
19506         libmvec wasn't built.
19507
19508 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
19509
19510         [BZ #14341]
19511         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
19512         case when there is a gap between DT_REL and DT_JMPREL sections.
19513         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
19514         (LDFLAGS-tst-split-dynreloc): New.
19515         (tst-split-dynreloc-ENV): Likewise.
19516         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
19517         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
19518
19519 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19520
19521         [BZ #18822]
19522         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
19523         attribute_hidden.
19524         (__xstat64_conv): Likewise.
19525         (__xstat32_conv): Likewise.
19526
19527 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19528
19529         [BZ #18822]
19530         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19531         Don't load %ebx when calling __setcontext.  Call __setcontext
19532         with HIDDEN_JUMPTARGET.
19533         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
19534         libc_hidden_def.
19535
19536 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19537
19538         * sysdeps/i386/i686/Makefile
19539         [$(subdir) == string] (sysdep_routines): Moved to ...
19540         * sysdeps/i386/Makefile: Here.
19541         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
19542         * sysdeps/i386/cacheinfo.c: Here.
19543         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
19544         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
19545         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
19546         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
19547
19548 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
19549
19550         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
19551         __i586__ is defined.
19552         (HAS_I686): Defined to 1 if __i686__ is defined.
19553
19554 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
19555
19556         * elf/Makefile [$(have-z-execstack) = yes]
19557         (CPPFLAGS-tst-execstack.c): New variable.
19558
19559         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
19560         conditional to [defined UTMPX || _HAVE_UT_TYPE].
19561         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
19562         UTMPX || _HAVE_UT_TV].
19563         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
19564         UTMPX || _HAVE_UT_TV - 0].
19565
19566 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
19567
19568         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
19569         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
19570         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
19571
19572 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19573
19574         * sysdeps/powerpc/dl-procinfo.c:
19575         (_dl_powerpc_cap_flags): Added missing strings for some
19576         hwcap features.
19577         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
19578
19579 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19580
19581         Port the 0x7efe...feff pattern to GCC 6.
19582         See Steve Ellcey's bug report in:
19583         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
19584         * string/memrchr.c (MEMRCHR):
19585         * string/rawmemchr.c (RAWMEMCHR):
19586         * string/strchr.c (strchr):
19587         * string/strchrnul.c (STRCHRNUL):
19588         Rewrite code to avoid issues with signed shift overflow.
19589
19590 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
19591
19592         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
19593         whether cpuid is available only if HAS_CPUID is 0.
19594         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
19595         (HAS_I586): Likewise.
19596         (HAS_I686): Likewise.
19597
19598 2015-08-18  Zack Weinberg  <zackw@panix.com>
19599
19600         * misc/Versions (libc): Add GLIBC_2.23.
19601
19602 2015-08-18  Alan Modra  <amodra@gmail.com>
19603
19604         [BZ #18421]
19605         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
19606         .Lp__global.
19607         (_start): Load %dp via .Lp__global.
19608         [!SHARED]: Use .section .rodata.
19609
19610 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19611
19612         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
19613         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
19614
19615 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19616
19617         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
19618         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
19619
19620 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19621
19622         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
19623         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
19624
19625 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19626
19627         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
19628         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
19629
19630 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19631
19632         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
19633         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
19634
19635 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19636
19637         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
19638         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
19639
19640 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19641
19642         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
19643
19644 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19645
19646         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
19647         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
19648         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19649         (__ASSUME_LWS_CAS): Delete.
19650
19651 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
19652
19653         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
19654         * sysdeps/hppa/configure: Regenerated.
19655         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
19656         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
19657         * sysdeps/hppa/nptl/tls.h: Likewise.
19658
19659 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
19660
19661         [BZ #18823]
19662         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
19663         for scaling up small arguments.
19664         * math/s_csqrtf.c (__csqrtf): Likewise.
19665         * math/s_csqrtl.c (__csqrtl): Likewise.
19666         * math/auto-libm-test-in: Add more tests of csqrt.
19667         * math/auto-libm-test-out: Regenerated.
19668
19669 2015-08-17  Andreas Schwab  <schwab@suse.de>
19670
19671         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
19672         version set GLIBC_2.19.
19673
19674 2015-08-16  Zack Weinberg  <zackw@panix.com>
19675
19676         [BZ #18681]
19677         * misc/regexp.h: This interface is no longer supported.
19678         Remove all contents, leaving only an #error directive.
19679         * misc/regexp.c (loc1, loc2, locs, step, advance):
19680         Demote to compatibility symbols.
19681
19682 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
19683
19684         [BZ #18084]
19685         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
19686         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
19687         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
19688         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
19689         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
19690         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
19691         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
19692         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
19693         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
19694
19695 2015-08-15  Zack Weinberg  <zackw@panix.com>
19696
19697         [BZ #18795]
19698         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
19699         buffer length is known to be too large, not if it's known to be
19700         small enough.
19701         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
19702         overflow at runtime, involving a length parameter, twice: once
19703         with a compile-time constant length parameter, once without.
19704
19705 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
19706
19707         [BZ #18824]
19708         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
19709         scaling x * y up instead of down.
19710         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19711         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19712         * math/auto-libm-test-in: Add more tests of fma.
19713         * math/auto-libm-test-out: Regenerated.
19714
19715 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
19716
19717         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
19718
19719 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19720
19721         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
19722         unnecessary movq.
19723         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
19724         Likewise.
19725
19726 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
19727
19728         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
19729         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
19730         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
19731         and tgamma.
19732         * math/auto-libm-test-out: Regenerated.
19733         * sysdeps/i386/fpu/libm-test-ulps: Update.
19734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19735
19736         [BZ #16520]
19737         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
19738         (__tanh): Force underflow exception for arguments with small
19739         absolute value.
19740         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
19741         (__tanhf): Force underflow exception for arguments with small
19742         absolute value.
19743         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
19744         (__tanhl): Force underflow exception for arguments with small
19745         absolute value.
19746         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
19747         (__tanhl): Force underflow exception for arguments with small
19748         absolute value.
19749         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
19750         (__tanhl): Force underflow exception for arguments with small
19751         absolute value.
19752         * math/auto-libm-test-in: Add more tests of tanh.
19753         * math/auto-libm-test-out: Regenerated.
19754         * sysdeps/i386/fpu/libm-test-ulps: Update.
19755
19756 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19757
19758         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
19759         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
19760
19761 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19762
19763         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
19764         <cpuid.h>.
19765
19766 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19767
19768         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
19769         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
19770
19771 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19772
19773         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
19774         Remove $(objpfx)init-arch.o.
19775         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
19776         init-arch.
19777         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
19778         (INIT_ARCH_EXT): Defined as empty.
19779         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
19780         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
19781         __init_cpu_features call.  Replace HAS_XXX with
19782         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19783         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
19784         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
19785         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
19786         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
19787         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
19788         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
19789         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
19790         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
19791         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
19792         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
19793         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
19794         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
19795         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
19796         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
19797         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
19798         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
19799         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
19800         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
19801         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
19802         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
19803         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
19804         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
19805         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
19806         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
19807         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
19808         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
19809         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
19810         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
19811         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
19812         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
19813         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
19814         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
19815         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
19816         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
19817         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
19818
19819 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19820
19821         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
19822         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19823         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
19824         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
19825         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
19826         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
19827         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
19828         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
19829         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
19830         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
19831         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
19832         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
19833         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19834         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
19835         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
19836         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
19837         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
19838         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
19839         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
19840         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
19841         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
19842         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
19843         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
19844         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
19845         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
19846         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
19847         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
19848         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
19849         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
19850         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19851         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
19852         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
19853         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
19854         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19855         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
19856         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
19857         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
19858         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
19859         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
19860         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
19861         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
19862         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
19863         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
19864
19865 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19866
19867         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
19868         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19869         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
19870         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19871         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19872         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
19873         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19874         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
19875         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
19876         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19877         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19878         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
19879         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
19880         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
19881         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
19882         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
19883         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
19884         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
19885         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
19886         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
19887         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
19888         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
19889         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
19890         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19891         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19892         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
19893         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
19894         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
19895         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
19896         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
19897         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19898         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19899         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19900         * sysdeps/x86_64/multiarch/memset.S: Likewise.
19901         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19902         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
19903         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
19904         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
19905         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
19906         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
19907         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
19908         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
19909         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
19910
19911 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
19912
19913         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
19914         (dl_platform_init): Call init_cpu_features.
19915         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
19916         * sysdeps/i386/i686/cacheinfo.c
19917         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
19918         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
19919         * sysdeps/i386/i686/multiarch/Versions: Removed.
19920         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
19921         Removed.
19922         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
19923         * sysdeps/unix/sysv/linux/x86/Makefile
19924         (libpthread-sysdep_routines): Remove init-arch.
19925         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
19926         <sysdeps/x86_64/dl-procinfo.c> instead of
19927         sysdeps/generic/dl-procinfo.c>.
19928         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
19929         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
19930         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
19931         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
19932         [$(subdir) == elf] (tests-static): Add
19933         tst-get-cpu-features-static.
19934         * sysdeps/x86/Versions: New file.
19935         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
19936         * sysdeps/x86/cpu-features.c: Likewise.
19937         * sysdeps/x86/cpu-features.h: Likewise.
19938         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
19939         * sysdeps/x86/libc-start.c: Likewise.
19940         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
19941         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
19942         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
19943         * sysdeps/x86_64/dl-procinfo.c: Likewise.
19944         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
19945         Assume USE_MULTIARCH is defined and don't check it.
19946         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
19947         (is_amd): Likewise.
19948         (max_cpuid): Likewise.
19949         (intel_check_word): Likewise.
19950         (__cache_sysconf): Don't call __init_cpu_features.
19951         (__x86_preferred_memory_instruction): Removed.
19952         (init_cacheinfo): Don't call __init_cpu_features. Replace
19953         __cpu_features with GLRO(dl_x86_cpu_features).
19954         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
19955         (dl_platform_init): Call init_cpu_features.
19956         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
19957         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
19958         * sysdeps/x86_64/multiarch/Versions: Removed.
19959         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
19960         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
19961         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
19962         Removed.
19963         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
19964
19965 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
19966
19967         [BZ #18820]
19968         * libio/Makefile (test-fmemopen-mem): New test.
19969         * libio/test-fmemopen.c (do_bz18820): New test.
19970         * libio/fmemopen.c (__fmemopen): Fix memory leak.
19971         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
19972
19973 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
19974
19975         [BZ #16734]
19976         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
19977         (FREE_BUF): Delete.
19978         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
19979         * libio/genops.c (_IO_setb): Use malloc and free directly.
19980         (_IO_default_doallocate, _IO_default_finish): Likewise.
19981         ( _IO_unbuffer_all): Likewise.
19982         ( libc_freeres_fn): Likewise.
19983         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
19984         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
19985         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
19986         (_IO_wdefault_doallocate): Likewise.
19987
19988 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19989
19990         [BZ #18086]
19991         * sysdeps/posix/nice.c (nice): Restore old errno.
19992         * posix/tst-nice.c (do_test): Add test for BZ #18086.
19993
19994 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
19995
19996         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
19997
19998 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19999
20000         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
20001         __bcopy and add a weak_alias to bcopy.
20002         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
20003         for static build.
20004
20005         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
20006         cleanup macro usage.
20007         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
20008         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
20009         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
20010         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
20011         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
20012         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
20013         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
20014         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20015         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
20016         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
20017         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20018         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
20019         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
20020         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
20021         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
20022         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
20023         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
20024         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
20025         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
20026
20027         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
20028         libc_hidden_def.
20029         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
20030
20031         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
20032         (sysdep_routines): Add strstr-ppc64.
20033         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
20034
20035 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
20036
20037         [BZ #18778]
20038         * elf/Makefile (tests): Add Add tst-nodelete2.
20039         (modules-names): Add tst-nodelete2mod.
20040         (tst-nodelete2mod.so-no-z-defs): New.
20041         ($(objpfx)tst-nodelete2): Likewise.
20042         ($(objpfx)tst-nodelete2.out): Likewise.
20043         (LDFLAGS-tst-nodelete2): Likewise.
20044         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
20045         out of loop through all loaded libraries.
20046         * elf/tst-nodelete2.c: New file.
20047         * elf/tst-nodelete2mod.c: Likewise.
20048         * elf/tst-znodelete-zlib.cc: Delete.
20049
20050 2015-08-11  Andreas Schwab  <schwab@suse.de>
20051
20052         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
20053         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
20054         (__openat64_nocancel): Likewise.
20055
20056 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
20057
20058         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
20059         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
20060         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
20061         * math/auto-libm-test-out: Regenerated.
20062         * sysdeps/i386/fpu/libm-test-ulps: Update.
20063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20064
20065 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20066
20067         [BZ #18790]
20068         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
20069         threshold for returning +/- 1.
20070         * math/auto-libm-test-in: Add more tests of tanh.
20071         * math/auto-libm-test-out: Regenerated.
20072         * sysdeps/i386/fpu/libm-test-ulps: Update.
20073
20074 2015-08-10  Andreas Schwab  <schwab@suse.de>
20075
20076         [BZ #18781]
20077         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
20078         MORE_OFLAGS to oflag.
20079         * io/test-lfs.c (do_test): Test openat64.
20080
20081 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
20082
20083         [BZ #18789]
20084         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
20085         smaller threshold for returning the argument.
20086         * math/auto-libm-test-in: Add more tests of sinh.
20087         * math/auto-libm-test-out: Regenerated.
20088         * sysdeps/i386/fpu/libm-test-ulps: Update.
20089
20090 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
20091
20092         [BZ #18674]
20093         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
20094         break.
20095
20096 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
20097
20098         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
20099         (generated): Don't add $(addprefix z.,$(tzfiles)).
20100
20101 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20102
20103         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
20104         * scripts/sysd-rules.awk: Likewise.
20105
20106 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20107
20108         * iconvdata/tst-tables.sh: Change echo -n to printf.
20109         * nss/db-Makefile: Likewise.
20110         * posix/tst-getconf.sh: Likewise.
20111         * stdio-common/tst-unbputc.sh: Likewise.
20112
20113 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
20114
20115         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
20116         MADV_*_PAGES defines behind this feature check.
20117
20118 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
20119
20120         [BZ #18480]
20121         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
20122         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
20123         Define.
20124         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
20125         LOAD_REGS_5, LOAD_REGS_6): Update.
20126         (INTERNAL_SYSCALL): Update using new LOAD defines.
20127         (INTERNAL_SYSCALL_NCS): Likewise.
20128         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
20129
20130 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20131
20132         [BZ #16734]
20133         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
20134
20135 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20136
20137         [BZ #17905]
20138         * catgets/Makefile (tst-catgets-mem): New test.
20139         * catgets/catgets.c (catopen): Don't use unbounded alloca.
20140         * catgets/open_catalog.c (__open_catalog): Likewise.
20141         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
20142
20143 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
20144
20145         [BZ #18787]
20146         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
20147         clobber registers.
20148         (atomic_compare_and_exchange_val_acq): Use register asms to assign
20149         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
20150         Cast return to __typeof (oldval).
20151
20152 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
20153
20154         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
20155         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
20156         and delete sys/syscall.h include.
20157
20158 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
20159
20160         [BZ #16517]
20161         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
20162         (tan): Force underflow exception for arguments with small absolute
20163         value.
20164         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
20165         (__kernel_tanf): Force underflow exception for arguments with
20166         small absolute value.
20167         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
20168         (__kernel_tanl): Force underflow exception for arguments with
20169         small absolute value.
20170         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
20171         (__kernel_tanl): Force underflow exception for arguments with
20172         small absolute value.
20173         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
20174         (__kernel_tanl): Force underflow exception for arguments with
20175         small absolute value.
20176         * math/auto-libm-test-in: Add more tests of tan.
20177         * math/auto-libm-test-out: Regenerated.
20178
20179 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20180
20181         Fix sysdeps/i386/fpu/s_scalbn.S build
20182
20183         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
20184
20185 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
20186
20187         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20188
20189 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20190
20191         Fix gcrt0.o compilation
20192
20193         When static-start-installed-name is different from
20194         start-installed-name, we must not use the shared objects.
20195
20196         * csu/Makefile
20197         (extra-objs): Add gmon-start.o when building shared library and
20198         $(static-start-installed-name) is different from
20199         $(start-installed-name).
20200         $(objpfx)g$(static-start-installed-name): When building shared
20201         library and $(static-start-installed-name) is different from
20202         $(static-start-installed-name), revert to non-shared rule,
20203         i.e. using $(objpfx)% and gmon-start.o.
20204
20205 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
20206
20207         [BZ #16519]
20208         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
20209         (__ieee754_sinh): Force underflow exception for arguments with
20210         small absolute value.
20211         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
20212         (__ieee754_sinhf): Force underflow exception for arguments with
20213         small absolute value.
20214         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
20215         (__ieee754_sinhl): Force underflow exception for arguments with
20216         small absolute value.
20217         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
20218         (__ieee754_sinhl): Force underflow exception for arguments with
20219         small absolute value.
20220         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
20221         (__ieee754_sinhl): Force underflow exception for arguments with
20222         small absolute value.
20223         * math/auto-libm-test-in: Add more tests of sinh.
20224         * math/auto-libm-test-out: Regenerated.
20225         * sysdeps/i386/fpu/libm-test-ulps: Update.
20226
20227 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20228
20229         * libio/oldfileops.c: Include unistd.h.
20230
20231 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
20232
20233         * stdlib/isomac.c: Include ctype.h.
20234
20235 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
20236
20237         * dirent/tst-seekdir.c (main): Converted to ...
20238         (do_test): ... this.
20239         (TEST_FUNCTION): New macro.
20240         Include test-skeleton.c.
20241         * elf/tst-dlmodcount.c (main): Converted to ...
20242         (do_test): ... this.
20243         (TEST_FUNCTION): New macro.
20244         Include test-skeleton.c.
20245         * elf/tst-order-main.c (main): Converted to ...
20246         (do_test): ... this.
20247         (TEST_FUNCTION): New macro.
20248         Include test-skeleton.c.
20249         * elf/tst-pie2.c (main): Converted to ...
20250         (do_test): ... this.
20251         (TEST_FUNCTION): New macro.
20252         Include test-skeleton.c.
20253         * inet/tst-ether_aton.c (main): Converted to ...
20254         (do_test): ... this.
20255         (TEST_FUNCTION): New macro.
20256         Include test-skeleton.c.
20257         * misc/tst-mntent.c (main): Converted to ...
20258         (do_test): ... this.
20259         (TEST_FUNCTION): New macro.
20260         Include test-skeleton.c.
20261         * misc/tst-tsearch.c (main): Converted to ...
20262         (do_test): ... this.
20263         (TEST_FUNCTION): New macro.
20264         Include test-skeleton.c.
20265         * posix/tst-regexloc.c (main): Converted to ...
20266         (do_test): ... this.
20267         (TEST_FUNCTION): New macro.
20268         Include test-skeleton.c.
20269         * resolv/tst-aton.c (main): Converted to ...
20270         (do_test): ... this.
20271         (TEST_FUNCTION): New macro.
20272         Include test-skeleton.c.
20273         * stdio-common/test-fwrite.c (main): Converted to ...
20274         (do_test): ... this.
20275         (TEST_FUNCTION): New macro.
20276         Include test-skeleton.c.
20277         * stdio-common/tst-ferror.c (main): Converted to ...
20278         (do_test): ... this.
20279         (TEST_FUNCTION): New macro.
20280         Include test-skeleton.c.
20281         * stdio-common/tst-printf.c (main): Converted to ...
20282         (do_test): ... this.
20283         (TEST_FUNCTION): New macro.
20284         Include test-skeleton.c.
20285         * stdio-common/tst-printfsz.c (main): Converted to ...
20286         (do_test): ... this.
20287         (TEST_FUNCTION): New macro.
20288         Include test-skeleton.c.
20289         * stdlib/tst-strtod.c (main): Converted to ...
20290         (do_test): ... this.
20291         (TEST_FUNCTION): New macro.
20292         Include test-skeleton.c.
20293         * string/tst-strlen.c (main): Converted to ...
20294         (do_test): ... this.
20295         (TEST_FUNCTION): New macro.
20296         Include test-skeleton.c.
20297         * string/tst-svc.c (main): Converted to ...
20298         (do_test): ... this.
20299         (TEST_FUNCTION): New macro.
20300         Include test-skeleton.c.
20301         * time/tst-strptime.c (main): Converted to ...
20302         (do_test): ... this.
20303         (TEST_FUNCTION): New macro.
20304         Include test-skeleton.c.
20305         * timezone/tst-timezone.c (main): Converted to ...
20306         (do_test): ... this.
20307         (TEST_FUNCTION): New macro.
20308         Include test-skeleton.c.
20309
20310 2015-08-05  Zack Weinberg  <zackw@panix.com>
20311
20312         * misc/regexp.h: Update comments.
20313
20314 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
20315
20316         [BZ #18635]
20317         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
20318         before return label.
20319
20320 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20321
20322         [BZ #18661]
20323         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
20324         when calling __errno_location.
20325         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
20326         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
20327
20328 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20329
20330         [BZ #18661]
20331         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
20332         (__lll_timedwait_tid): Align stack to 16 bytes when calling
20333         __gettimeofday.
20334
20335 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20336
20337         [BZ #18661]
20338         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20339         (__start_context): Don't use pop to restore %rdi so that stack
20340         is aligned to 16 bytes when calling __setcontext.
20341
20342 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20343
20344         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
20345         only for libc.
20346         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20347
20348 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20349
20350         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
20351         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
20352         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
20353
20354 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20355
20356         * string/memccpy.c (memccpy):
20357         Improve performance by using memchr/memcpy/__mempcpy.
20358
20359 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20360
20361         * string/strncpy.c (strncpy):
20362         Improve performance by using __strnlen/memcpy.
20363
20364 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20365
20366         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
20367         Optimize to avoid an unnecessary FPCR read.
20368
20369 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
20370
20371         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
20372         Optimize to reduce FPCR/FPSR accesses.
20373
20374 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
20375
20376         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
20377         dead->data[category] != NULL.
20378
20379 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
20380
20381         [BZ #18647]
20382         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
20383         and |x| close to 1, use absolute value of x when computing log.
20384         * math/auto-libm-test-in: Add more tests of pow.
20385         * math/auto-libm-test-out: Regenerated.
20386
20387 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20388
20389         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
20390         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
20391         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
20392
20393 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
20394
20395         [BZ #18525]
20396         * locales/km_KH: Remove timezone definition.
20397         * locales/lo_LA: Likewise.
20398         * locales/my_MM: Likewise.
20399         * locales/nan_TW@latin: Likewise.
20400         * locales/th_TH: Likewise.
20401         * locales/uk_UA: Likewise.
20402
20403 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
20404
20405         [BZ #18265]
20406         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
20407         (wcsncat): Likewise.
20408         (wcscmp): Likewise.
20409         (wcsncmp): Likewise.
20410
20411 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20412
20413         * test-skeleton.c (usage): New function.
20414         (main): Call usage when opt is '?'.
20415
20416 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20417
20418         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
20419         before first use.
20420
20421 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
20422
20423         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
20424         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
20425         in there too.
20426
20427 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
20428
20429         * version.h (RELEASE): Set to "development".
20430         (VERSION): Set to "2.22.90"
20431
20432         * version.h (RELEASE): Set to "stable".
20433         (VERSION): Set to "2.22"
20434         * include/features.h (__GLIBC_MINOR__): Set to 22.
20435
20436 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
20437
20438         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
20439         Restructure macro to avoid "value computed is not used" warning.
20440         (atomic_compare_and_exchange_val_acq): Likewise.
20441
20442 2015-08-04  Andreas Schwab  <schwab@suse.de>
20443
20444         [BZ #18635]
20445         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
20446         ret.
20447         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
20448
20449 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
20450
20451         * po/pl.po: Updated translation.
20452         * po/uk.po: Likewise.
20453         * po/fi.po: Likewise.
20454         * po/ko.po: Likewise.
20455         * po/ru.po: Likewise.
20456         * po/vi.po: Likewise.
20457
20458 2015-07-31  Zack Weinberg  <zackw@panix.com>
20459
20460         [BZ #18681]
20461         * regexp.h: Add unconditional #warning stating that this header
20462         will be removed soon.  Revise banner comment to match.
20463         (compile): Consistently use ERROR instead of RETURN to report
20464         errors (partial fix for bz#18681).
20465         * regexp.c: Don't include regexp.h. Remove some unnecessary
20466         declarations.
20467
20468 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
20469
20470         * po/libc.pot: Regenerated.
20471
20472 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
20473
20474         [BZ #18740]
20475         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
20476         float-vlen4-arch-ext-cflags): Removed.
20477         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
20478         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
20479
20480 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20481
20482         [BZ #14113]
20483         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
20484         aligned to __aligned__.
20485         (pthread_cond_t, pthread_rwlock_t): Likewise.
20486
20487 2015-07-30  Torvald Riegel  <triegel@redhat.com>
20488
20489         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
20490
20491 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20492
20493         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
20494         (struct sigaction): Change sa_flags from a long to an int, and add
20495         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
20496
20497 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20498
20499         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
20500         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
20501         sysdeps/generic/sysdep.h include.
20502         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
20503         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
20504         sysdeps/hppa/sysdep.h.
20505         (ENTRY, PSEUDO): Undefine before defining.
20506
20507 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
20508
20509         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
20510         from scratch to use INTERNAL_SYSCALL.
20511
20512 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20513
20514         [BZ #18078]
20515         * scripts/check-localplt.awk: Support alternate relocations.
20516         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
20517         sections.
20518         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
20519         malloc entries with + REL R_386_GLOB_DAT.
20520         * sysdeps/x86_64/localplt.data: New file.
20521
20522 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
20523
20524         [BZ #18731]
20525         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
20526         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
20527         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
20528
20529 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20530
20531         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
20532
20533 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20534
20535         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
20536         directly in terms of __sync_fetch_and_add and delete (int) cast.
20537
20538 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20539
20540         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
20541         the -D_ASM_IA64_CURRENT_H flag.
20542
20543 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
20544
20545         [BZ #18641]
20546         * pwd/pwd.h (putpwent): Delete __nonnull markings.
20547
20548 2015-07-27  Andreas Schwab  <schwab@suse.de>
20549
20550         * conform/conformtest.pl (checknamespace): Filter out string
20551         literals while tokenizing.
20552
20553 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20554
20555         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20556         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
20557         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20558
20559 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
20560
20561         * nptl/tst-join7mod.c: Add #include <string.h>.
20562
20563 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20564
20565         * sysdeps/nios2/libm-test-ulps: Update.
20566
20567 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
20568
20569         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
20570         Fix order of arguments to the rt_sigprocmask syscall.
20571         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
20572         Likewise.
20573
20574 2015-07-24  Roland McGrath  <roland@hack.frob.com>
20575
20576         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
20577
20578 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20579
20580         [BZ #18457]
20581         * nptl/Makefile (tests): New test case tst-join7.
20582         (modules-names): New test case module tst-join7mod.
20583         * nptl/tst-join7.c: New file.
20584         * nptl/tst-join7mod.c: New file.
20585         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
20586         all translation units in libc.so, libpthread.so and rtld.
20587
20588 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20589
20590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20591
20592 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
20593
20594         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
20595         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
20596         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
20597         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
20598         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
20599         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
20600         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
20601         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
20602         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
20603         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
20604         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
20605         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
20606         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
20607         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
20608         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
20609         implementation.
20610
20611 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20612
20613         [BZ #17711]
20614         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20615         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
20616         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20617         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
20618         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
20619         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
20620
20621 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20622
20623         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
20624         instead of just saying load lock in the comments.
20625
20626 2015-07-23  Roland McGrath  <roland@hack.frob.com>
20627
20628         * sysdeps/unix/Subdirs: Moved ...
20629         * sysdeps/posix/Subdirs: ... here.
20630         * login/pty.h (struct termios, struct winsize): Add forward decls.
20631         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
20632         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
20633         * sysdeps/arm/nacl/libc.abilist: Updated.
20634         * sysdeps/nacl/libutil.abilist: New file.
20635
20636         * bits/signum.h: Update comments to mention 1003.1-2013 too.
20637         (SIGWINCH): New macro.
20638
20639         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
20640         * sysdeps/arm/nacl/libc.abilist: Add it.
20641
20642 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20643
20644         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
20645
20646 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
20647
20648         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20649         Swap __glibc_reserved0 and sa_flags order.
20650
20651 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20652
20653         [BZ #18657]
20654         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
20655         are pending TLS destructor calls.
20656         * include/link.h (struct link_map): Add concurrency note for
20657         L_TLS_DTOR_COUNT.
20658         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
20659         Don't touch the link map flag.  Atomically increment
20660         l_tls_dtor_count.
20661         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
20662         Avoid taking the load lock and don't touch the link map flag.
20663         * stdlib/tst-tls-atexit-nodelete.c: New test case.
20664         * stdlib/Makefile (tests): Use it.
20665         * stdlib/tst-tls-atexit.c (do_test): dlopen
20666         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
20667         to allow tst-tls-atexit-nodelete test case to use it.
20668
20669 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20670
20671         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
20672         to bits/types.h.
20673         (msgqnum_t): New typedef.
20674         (msglen_t): Likewise.
20675         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
20676         and msg_qbytes type to msglen_t.
20677
20678 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20679
20680         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
20681         pad0 to __glibc_reserved0.
20682         (struct stat64): Likewise.
20683
20684 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20685
20686         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
20687         Change sa_flags from a long to an int and add __glibc_reserved0 before
20688         it for padding.
20689
20690 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
20691
20692         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
20693         anonymous by deleting "siginfo" name.
20694
20695 2015-07-21  Roland McGrath  <roland@hack.frob.com>
20696
20697         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
20698         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
20699         rather than __nacl_irt_filename.
20700         * sysdeps/nacl/xstat.c (__xstat): Likewise.
20701
20702         * NEWS: New item for arm-nacl port.
20703         * sysdeps/arm/nacl/libc.abilist: New file.
20704         * sysdeps/nacl/ld.abilist: New file.
20705         * sysdeps/nacl/libBrokenLocale.abilist: New file.
20706         * sysdeps/nacl/libanl.abilist: New file.
20707         * sysdeps/nacl/libcrypt.abilist: New file.
20708         * sysdeps/nacl/libdl.abilist: New file.
20709         * sysdeps/nacl/libm.abilist: New file.
20710         * sysdeps/nacl/libpthread.abilist: New file.
20711         * sysdeps/nacl/libresolv.abilist: New file.
20712         * sysdeps/nacl/librt.abilist: New file.
20713
20714 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
20715
20716         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
20717         __startcontext to initialize the new context.
20718         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
20719         up CFI directive to forbid further backtracing.
20720
20721 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
20722
20723         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
20724         reference.
20725         * charmaps/ANSI_X3.4-1968: Likewise.
20726         * charmaps/BS_4730: Likewise.
20727         * charmaps/BS_VIEWDATA: Likewise.
20728         * charmaps/CP1250: Likewise.
20729         * charmaps/CP1251: Likewise.
20730         * charmaps/CP1252: Likewise.
20731         * charmaps/CP1253: Likewise.
20732         * charmaps/CP1254: Likewise.
20733         * charmaps/CP1255: Likewise.
20734         * charmaps/CP1256: Likewise.
20735         * charmaps/CSN_369103: Likewise.
20736         * charmaps/EBCDIC-DK-NO: Likewise.
20737         * charmaps/GB_1988-80: Likewise.
20738         * charmaps/GREEK-CCITT: Likewise.
20739         * charmaps/GREEK7: Likewise.
20740         * charmaps/INIS-8: Likewise.
20741         * charmaps/ISIRI-3342: Likewise.
20742         * charmaps/ISO_2033-1983: Likewise.
20743         * charmaps/ISO_5427-EXT: Likewise.
20744         * locales/POSIX: Likewise.
20745         * locales/ar_SA: Likewise.
20746         * locales/be_BY: Likewise.
20747         * locales/be_BY@latin: Likewise.
20748         * locales/ca_ES: Likewise.
20749         * locales/cs_CZ: Likewise.
20750         * locales/da_DK: Likewise.
20751         * locales/de_BE: Likewise.
20752         * locales/de_CH: Likewise.
20753         * locales/de_LU: Likewise.
20754         * locales/en_AU: Likewise.
20755         * locales/en_BW: Likewise.
20756         * locales/en_CA: Likewise.
20757         * locales/en_DK: Likewise.
20758         * locales/en_GB: Likewise.
20759         * locales/en_IE: Likewise.
20760         * locales/en_NZ: Likewise.
20761         * locales/en_ZA: Likewise.
20762         * locales/en_ZW: Likewise.
20763         * locales/es_AR: Likewise.
20764         * locales/es_BO: Likewise.
20765         * locales/es_CL: Likewise.
20766         * locales/es_CO: Likewise.
20767         * locales/es_DO: Likewise.
20768         * locales/es_EC: Likewise.
20769         * locales/es_ES: Likewise.
20770         * locales/es_HN: Likewise.
20771         * locales/es_MX: Likewise.
20772         * locales/es_PA: Likewise.
20773         * locales/es_PE: Likewise.
20774         * locales/es_PY: Likewise.
20775         * locales/es_SV: Likewise.
20776         * locales/es_US: Likewise.
20777         * locales/es_UY: Likewise.
20778         * locales/es_VE: Likewise.
20779         * locales/et_EE: Likewise.
20780         * locales/fa_IR: Likewise.
20781         * locales/fo_FO: Likewise.
20782         * locales/fr_CA: Likewise.
20783         * locales/fr_CH: Likewise.
20784         * locales/gv_GB: Likewise.
20785         * locales/he_IL: Likewise.
20786         * locales/hr_HR: Likewise.
20787         * locales/id_ID: Likewise.
20788         * locales/is_IS: Likewise.
20789         * locales/it_CH: Likewise.
20790         * locales/iw_IL: Likewise.
20791         * locales/kl_GL: Likewise.
20792         * locales/ko_KR: Likewise.
20793         * locales/kw_GB: Likewise.
20794         * locales/lg_UG: Likewise.
20795         * locales/lt_LT: Likewise.
20796         * locales/lv_LV: Likewise.
20797         * locales/mi_NZ: Likewise.
20798         * locales/nhn_MX: Likewise.
20799         * locales/nl_BE: Likewise.
20800         * locales/pl_PL: Likewise.
20801         * locales/sk_SK: Likewise.
20802         * locales/sl_SI: Likewise.
20803         * locales/sv_FI: Likewise.
20804         * locales/tl_PH: Likewise.
20805         * locales/tr_TR: Likewise.
20806         * locales/vi_VN: Likewise.
20807
20808 2015-07-21  Khem Raj  <raj.khem@gmail.com>
20809
20810         [BZ #17475]
20811         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
20812         of tu_IN and bh_IN.
20813
20814 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
20815
20816         [BZ #18694]
20817         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
20818         bits/wordsize.h.
20819         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
20820
20821 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20822
20823         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
20824         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
20825         (spawn_thread): New function.
20826         (load): Rename to reg_dtor_and_close.  Move dlopen to...
20827         (do_test): ... here.  Use IS_LOADED to test for its
20828         availability.
20829
20830 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
20831
20832         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
20833
20834 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
20835
20836         [BZ #18696]
20837         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
20838         si_addr_bnd.
20839         (si_lower): New.
20840         (si_upper): Likewise.
20841
20842 2015-07-16  David S. Miller  <davem@davemloft.net>
20843
20844         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
20845
20846 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20847
20848         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
20849         buffer.
20850         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
20851         fail output information.
20852
20853 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20854
20855         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
20856         and strstr-ppc64..
20857         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
20858         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
20859         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
20860         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
20861         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
20862
20863 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
20864
20865         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
20866         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
20867         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
20868         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
20869
20870 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
20871
20872         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
20873         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
20874         rtld_hidden_proto.
20875         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
20876
20877 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20878
20879         * tst-nodelete-opened.c (do_test): Add comment to clarify how
20880         the test can fail.
20881
20882         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
20883
20884         [BZ #18676]
20885         * elf/tst-nodelete-opened.c: New test case.
20886         * elf/tst-nodelete-opened-lib.c: New test case module.
20887         * elf/Makefile (tests, modules-names): Use them.
20888         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
20889         early.
20890
20891 2015-07-15  David S. Miller  <davem@davemloft.net>
20892
20893         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
20894         futex-intenal.h
20895         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
20896         * sysdeps/sparc/sparc64/Makefile: Likewise.
20897         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
20898         Remove space from macro define.
20899         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
20900
20901 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
20902
20903         [BZ #17475]
20904         * locale/iso-639.def: Update Bhili and Tulu language codes as
20905         per iso639-3.
20906
20907 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
20908
20909         * elf/tst-leaks1.c (main): Converted to ...
20910         (do_test): ... this.
20911         (TEST_FUNCTION): New macro.
20912         Include test-skeleton.c.
20913         * localedata/tst-langinfo.c (main): Converted to ...
20914         (do_test): ... this.
20915         (TEST_FUNCTION): New macro.
20916         Include test-skeleton.c.
20917         * math/test-fpucw.c (main): Converted to ...
20918         (do_test): ... this.
20919         (TEST_FUNCTION): New macro.
20920         Include test-skeleton.c.
20921         * math/test-tgmath.c (main): Converted to ...
20922         (do_test): ... this.
20923         (TEST_FUNCTION): New macro.
20924         Include test-skeleton.c.
20925         * math/test-tgmath2.c (main): Converted to ...
20926         (do_test): ... this.
20927         (TEST_FUNCTION): New macro.
20928         Include test-skeleton.c.
20929         * setjmp/tst-setjmp.c (main): Converted to ...
20930         (do_test): ... this.
20931         (TEST_FUNCTION): New macro.
20932         Include test-skeleton.c.
20933         * stdio-common/tst-sscanf.c (main): Converted to ...
20934         (do_test): ... this.
20935         (TEST_FUNCTION): New macro.
20936         Include test-skeleton.c.
20937         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
20938         (do_test): ... this.
20939         (TEST_FUNCTION): New macro.
20940         Include test-skeleton.c.
20941
20942         * elf/tst-audit9.c (main): Converted to ...
20943         (do_test): ... this.
20944         (TEST_FUNCTION): New macro.
20945         Include test-skeleton.c.
20946
20947 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
20948
20949         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
20950
20951 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
20952
20953         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
20954         New variable.
20955
20956 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
20957
20958         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20959
20960 2015-07-14  Roland McGrath  <roland@hack.frob.com>
20961
20962         * sysdeps/generic/dl-fileid.h: New file.
20963         * sysdeps/posix/dl-fileid.h: New file.
20964         * sysdeps/nacl/dl-fileid.h: New file.
20965         * include/link.h: Include <dl-fileid.h>.
20966         (struct link_map): Replace l_dev and l_ino with l_file_id.
20967         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
20968         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
20969         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
20970
20971 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20972
20973         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
20974
20975 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20976
20977         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
20978         Add iff $CXX is set.
20979         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
20980         Likewise.
20981         (tst-nodelete-zmodiff): Likewise.
20982         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
20983
20984 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20985
20986         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
20987
20988 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
20989
20990         * sysdeps/aarch64/fpu/math_private.h
20991         (define math_opt_barrier): Add AArch64 version.
20992         (math_force_eval): Likewise.
20993
20994 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
20995
20996         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
20997
20998 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
20999
21000         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
21001         %ld with %jd and cast to intmax_t.
21002         (do_test_length_zero): Likewise.
21003
21004 2015-07-10  Roland McGrath  <roland@hack.frob.com>
21005
21006         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
21007
21008 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
21009
21010         * sysdeps/tile/libm-test-ulps: Regenerated.
21011
21012         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
21013         Comment out the whole function, not just its body.
21014
21015 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21016
21017         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
21018         locks.
21019
21020         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
21021
21022 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21023
21024         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
21025         (sem_assume_only_signals_cause_futex_EINTR): Remove.
21026
21027 2015-07-10  Torvald Riegel  <triegel@redhat.com>
21028
21029         * sysdeps/nptl/futex-internal.h: New file.
21030         * sysdeps/nacl/futex-internal.h: New file.
21031         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
21032         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
21033         error checking.
21034         (setxid_unmark_thread): Likewise.
21035         (__nptl_setxid): Likewise.
21036         (__wait_lookup_done): Likewise.
21037         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
21038         * nptl/nptl-init.c (sighandler_setxid): Likewise.
21039         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
21040         * nptl/pthread_once.c (clear_once_control): Likewise.
21041         (__pthread_once_slow): Likewise.
21042         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
21043         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
21044         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
21045         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21046         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
21047         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
21048         Likewise.
21049         (__pthread_rwlock_rdlock): Likewise.
21050         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
21051         Likewise.
21052         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
21053         Likewise.
21054         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
21055         Likewise.
21056         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
21057         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
21058         Likewise.
21059         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
21060         __ASSUME_PRIVATE_FUTEX check.
21061         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
21062         Check that shared futexes are supported.
21063         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
21064         wrappers with error checking.
21065         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
21066         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
21067         * nptl/pthread_barrierattr_setpshared.c
21068         (pthread_barrierattr_setpshared): Check that shared futexes are
21069         supported.
21070         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
21071         Likewise.
21072         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
21073         Likewise.
21074         * nptl/sem_init.c (futex_private_if_supported): Remove.
21075         (__new_sem_init): Adapt and check that shared futexes are supported.
21076         * nptl/sem_open.c (sem_open): Likewise.
21077         * nptl/sem_post.c (futex_wake): Remove.
21078         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
21079         (do_futex_wait): Use futex wrappers with error checking.
21080         * nptl/sem_wait.c: Include lowlevellock.h.
21081         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
21082         Use futex_supports_pshared.
21083         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
21084         Use futex wrappers with error checking.
21085         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
21086         Likewise.
21087         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
21088         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
21089         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
21090         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
21091         (futex_wake): Likewise.
21092         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
21093         (do_futex_wait): Use futex wrappers with error checking.
21094         (__new_sem_wait_slow): Update EINTR handling.
21095         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
21096
21097 2015-07-09  Martin Sebor  <msebor@redhat.com>
21098
21099         [BZ #18435]
21100         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21101         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
21102         * nptl/Makefile (test-xfail-tst-once5): Define.
21103
21104 2015-07-09  Roland McGrath  <roland@hack.frob.com>
21105
21106         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
21107         * elf/dl-minimal.c: For readability, reorder some definitions and
21108         introduce more page breaks.  Include <stdio.h>.
21109         (__libc_fatal): New function.
21110
21111         * include/unistd.h: Add rtld_hidden_proto for _exit.
21112         * posix/_exit.c: Add rtld_hidden_def.
21113         * sysdeps/mach/hurd/_exit.c: Likewise.
21114         * sysdeps/nacl/_exit.c: Likewise.
21115         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
21116         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
21117
21118 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21119
21120         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
21121         bndmov encoding with zero displacement.
21122
21123 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
21124             H.J. Lu  <hongjiu.lu@intel.com>
21125
21126         [BZ #18134]
21127         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
21128         * sysdeps/i386/configure: Regenerated.
21129         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
21130         (_dl_runtime_profile): Save and restore Intel MPX return bound
21131         registers when calling _dl_call_pltexit.  Add
21132         PRESERVE_BND_REGS_PREFIX before return.
21133         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
21134         (LRV_BND1_OFFSET): Likewise.
21135         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
21136         lrv_bnd1.
21137         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
21138         typo in bndmov encoding.
21139         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
21140         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
21141         branch instructions to preserve bounds.
21142
21143 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21144
21145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
21146         [GLIBC_2.22]: Add fmemopen.
21147
21148 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21149
21150         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
21151         returns an error, also try to use host port from __mach_host_self for
21152         the __vm_wire call.
21153         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
21154
21155 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21156
21157         [BZ #18400]
21158         [BZ #18648]
21159         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
21160         Fix pr_uid and pr_gid members.
21161         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
21162         definition to elf_greg_t.
21163
21164 2015-07-08  Roland McGrath  <roland@hack.frob.com>
21165
21166         [BZ #18383]
21167         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
21168         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
21169         * sysdeps/arm/configure: Regenerated.
21170         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
21171         (test-xfail-tst-tlsalign-static): Variable removed.
21172
21173         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
21174         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
21175         rather than explicit 'ln -s'.
21176
21177         * resolv/rpc/netdb.h: New file.
21178         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
21179
21180 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21181
21182         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
21183         length buffers.
21184         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
21185         test-skeleton.c.
21186
21187         [BZ #6544]
21188         [BZ #11216]
21189         [BZ #12836]
21190         [BZ #13151]
21191         [BZ #13152]
21192         [BZ #14292]
21193         * include/stdio.h (fmemopen): Remove hidden prototype.
21194         (__fmemopen): Add new hidden prototype.
21195         * libio/Makefile: Add oldfmemopen object.
21196         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
21197         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
21198         compliance.
21199         * libio/oldfmemopen.c: New file: old fmemopen implementation for
21200         symbol compatibility.
21201         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
21202         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
21203         fmemopen.
21204         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
21205         on append and read mode.
21206         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
21207         fmemopen.
21208         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
21209         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
21210         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
21211         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
21212         Likewise.
21213         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
21214         [GLIBC_2.22]: Likewise.
21215         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
21216         Likewise.
21217         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
21218         Likewise.
21219         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
21220         [GLIBC_2.22]: Likewise.
21221         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
21222         [GLIBC_2.22]: Likewise.
21223         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
21224         [GLIBC_2.22]: Likewise.
21225         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
21226         [GLIBC_2.22]: Likewise.
21227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
21228         [GLIBC_2.22]: Likewise.
21229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
21230         [GLIBC_2.22]: Likewise.
21231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
21232         [GLIBC_2.22]: Likewise.
21233         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
21234         Likewise.
21235         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
21236         Likewise.
21237         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
21238         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
21239         [GLIBC_2.22]: Likewise.
21240         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
21241         [GLIBC_2.22]: Likewise.
21242         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
21243         [GLIBC_2.22]: Likewise.
21244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
21245         [GLIBC_2.22]: Likewise.
21246         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
21247         Likewise.
21248         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
21249         Likewise.
21250         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
21251         Likewise.
21252         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
21253         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
21254
21255 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21256
21257         [BZ #18643]
21258         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
21259         IPV6_PATHMTU, and IPV6_DONTFRAG.
21260
21261 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
21262
21263         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
21264         and _IO_UNBUFFERED.
21265         * libio/oldfileops.c: Likewise.
21266         * libio/wfileops.c: Likewise.
21267
21268 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21269
21270         * nscd/selinux.c: Delete selinux/flask.h include.
21271
21272 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
21273
21274         [BZ #18641]
21275         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
21276         (putpwent): Likewise.
21277         (getpwnam): Likewise.
21278         (getpwent_r): Likewise.
21279         (getpwuid_r): Likewise.
21280         (getpwnam_r): Likewise.
21281         (fgetpwent_r): Likewise.
21282
21283 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
21284
21285         [BZ #18557]
21286         * inet/rcmd.c (__validuser2_sa): Check user first to
21287         short-circuit host check.
21288
21289 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
21290             Mikhail Ilin  <m.ilin@samsung.com>
21291
21292         [BZ #17833]
21293         * elf/Makefile (tests): Add tst-nodelete.
21294         (modules-names): Add tst-nodelete-uniquemod.
21295         (tst-nodelete-uniquemod.so-no-z-defs): New.
21296         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
21297         (tst-nodelete-zmod.so-no-z-defs): Likewise.
21298         ($(objpfx)tst-nodelete): Likewise.
21299         ($(objpfx)tst-nodelete.out): Likewise.
21300         (LDFLAGS-tst-nodelete): Likewise.
21301         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
21302         * elf/dl-close.c (_dl_close_worker): Add a parameter to
21303         implement forced object deletion.
21304         (_dl_close): Pass false to _dl_close_worker.
21305         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
21306         * elf/tst-nodelete.cc: New file.
21307         * elf/tst-nodeletelib.cc: Likewise.
21308         * elf/tst-znodeletelib.cc: Likewise.
21309         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
21310
21311 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21312
21313         [BZ #18508]
21314         * stdlib/Makefile ($(objpfx)tst-makecontext3):
21315         Depend on $(libdl).
21316         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
21317         is not called infinitely times.
21318         (backtrace_helper): New function.
21319         (trace_arg): New struct.
21320         (st1): Enlarge stack size.
21321         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
21322         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
21323         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
21324         Likewise.
21325
21326 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21327
21328         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21329
21330 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
21331
21332         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
21333         Include sys/types.h instead of bits/types.h.
21334         Remove inclusion of bits/wordsize.h.
21335
21336 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21337
21338         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
21339         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
21340         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
21341         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
21342         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
21343         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
21344
21345 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21346
21347         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
21348         link-defines.sym.
21349         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
21350         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
21351         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
21352         and LR_SIZE.
21353         * sysdeps/i386/link-defines.sym: New file.
21354
21355 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21356
21357         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
21358         (modules-names): Add tst-auditmod3a tst-auditmod3b.
21359         ($(objpfx)tst-audit3): New rule.
21360         ($(objpfx)tst-audit3.out): Likewise.
21361         * sysdeps/i386/tst-audit3.c: New file.
21362         * sysdeps/i386/tst-audit3.h: Likewise.
21363         * sysdeps/i386/tst-auditmod3a.c: Likewise.
21364         * sysdeps/i386/tst-auditmod3b.c: Likewise.
21365
21366 2015-07-07  Torvald Riegel  <triegel@redhat.com>
21367
21368         [BZ #18633]
21369         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
21370         pointer in C code.
21371         (__strcat_c): Likewise.
21372         (__strcat_g): Likewise.
21373
21374 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
21375
21376         [BZ #18592]
21377         * misc/sbrk.c: Set errno to ENOMEM on overflow.
21378
21379 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21380
21381         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
21382         New function.  (__ieee754_sqrtf): New function.
21383         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
21384         New function.
21385         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
21386         New function.
21387
21388 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
21389
21390         * sysdeps/ieee754/support.c: Remove unused file.
21391
21392 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21393
21394         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
21395         registers instead of d ones so the layout is kernel abi compatible.
21396         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
21397         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
21398         Likewise.
21399
21400 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21401
21402         * sysdeps/aarch64/libm-test-ulps: Regenerated.
21403
21404 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21405
21406         [BZ #18619]
21407         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
21408         and return argument in case of subnormal argument.
21409
21410 2015-07-01  Martin Sebor  <msebor@redhat.com>
21411
21412         [BZ #18435]
21413         * nptl/Makefile: Add tst-once5.cc.
21414         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
21415         Remove macro redefinitions.
21416         * nptl/tst-once5.cc: New test.
21417
21418 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
21419
21420         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
21421
21422         * sysdeps/arm/libm-test-ulps: Regenerated.
21423
21424         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
21425         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21426
21427 2015-06-30  Torvald Riegel  <triegel@redhat.com>
21428
21429         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
21430         lll_lock_wait_private and lll_futex_wake probes.
21431
21432         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21433         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
21434         Likewise.
21435         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
21436         atomic_spin_nop.
21437         * sysdeps/x86_64/bits/atomic.h: Likewise.
21438         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
21439         to atomic_spin_nop and move ...
21440         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
21441         ... here and ...
21442         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
21443         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
21444         atomic_spin_nop instead of BUSY_WAIT_NOP.
21445         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
21446         Likewise.
21447         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
21448         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
21449         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
21450         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
21451         instead of atomic_delay.
21452
21453 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
21454
21455         [BZ #18613]
21456         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
21457         X_ADJ not X when adjusting exponent.
21458         (__ieee754_gamma_r): Do intermediate computations in
21459         round-to-nearest then adjust overflowing and underflowing results
21460         as needed.
21461         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
21462         of X_ADJ not X when adjusting exponent.
21463         (__ieee754_gammaf_r): Do intermediate computations in
21464         round-to-nearest then adjust overflowing and underflowing results
21465         as needed.
21466         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
21467         log of X_ADJ not X when adjusting exponent.
21468         (__ieee754_gammal_r): Do intermediate computations in
21469         round-to-nearest then adjust overflowing and underflowing results
21470         as needed.  Use 1.0L not 1.0f as numerator of division.
21471         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
21472         log of X_ADJ not X when adjusting exponent.
21473         (__ieee754_gammal_r): Do intermediate computations in
21474         round-to-nearest then adjust overflowing and underflowing results
21475         as needed.  Use 1.0L not 1.0f as numerator of division.
21476         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
21477         of X_ADJ not X when adjusting exponent.
21478         (__ieee754_gammal_r): Do intermediate computations in
21479         round-to-nearest then adjust overflowing and underflowing results
21480         as needed.  Use 1.0L not 1.0f as numerator of division.
21481         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
21482         to auto-libm-test-in.
21483         (tgamma_test): Use ALL_RM_TEST.
21484         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
21485         tests of tgamma with spurious-overflow.
21486         * math/auto-libm-test-out: Regenerated.
21487         * math/gen-libm-have-vector-test.sh: Do not check for START.
21488         * sysdeps/i386/fpu/libm-test-ulps: Update.
21489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21490
21491         [BZ #18612]
21492         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
21493         arguments, just return 0.5 times the argument, with underflow
21494         forced as needed.
21495         * math/auto-libm-test-in: Add more tests of j1.
21496         * math/auto-libm-test-out: Regenerated.
21497
21498         [BZ #16559]
21499         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
21500         (__ieee754_j1): Force underflow exception for small results.
21501         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21502         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
21503         (__ieee754_j1f): Force underflow exception for small results.
21504         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21505         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21506         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21507         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
21508         (__ieee754_j1l): Force underflow exception for small results.
21509         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21510         * math/auto-libm-test-in: Add more tests of j1 and jn.
21511         * math/auto-libm-test-out: Regenerated.
21512
21513         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
21514         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
21515         (PF_MPLS): Likewise.
21516         (AF_IB): Likewise.
21517         (AF_MPLS): Likewise.
21518         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
21519         value and macro.
21520         (MS_RMT_MASK): Include MS_LAZYTIME.
21521
21522 2015-06-26  Mel Gorman  <mgorman@suse.de>
21523
21524         [BZ #18502]
21525         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
21526         already minimal.
21527
21528 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
21529
21530         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
21531         (DT_MIPS_NUM): Update.
21532         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
21533         DT_MIPS_RLD_MAP_REL.
21534
21535 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
21536
21537         [BZ #16559]
21538         [BZ #18602]
21539         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
21540         round-to-nearest internally then recompute results that
21541         underflowed to zero in the original rounding mode.
21542         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21543         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21544         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21545         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21546         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
21547         * sysdeps/i386/fpu/libm-test-ulps: Update.
21548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21549
21550 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
21551
21552         * NEWS: Fixed description of link with vector math library.
21553
21554 2015-06-25  Andreas Schwab  <schwab@suse.de>
21555
21556         [BZ #18549]
21557         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
21558         * libio/test-fmemopen.c (do_test): Add test for it.
21559
21560 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21561
21562         [BZ #17841]
21563         * Makeconfig (no-pie-ldflag): New.
21564         (+link): Set to $(+link-pie) if default to PIE.
21565         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
21566         * config.make.in (build-pie-default): New.
21567         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
21568         is default.  AC_SUBST.
21569         * configure: Regenerated.
21570         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
21571
21572 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21573
21574         * nptl/descr.h (struct pthread): Change type of field setxid_futex
21575         to 'unsigned int'.
21576
21577         * resolv/gai_misc.h (struct waitlist): Change type of field
21578         counterp to 'volatile unsigned int *'.
21579         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
21580         FUTEXADDR and OLDVAL.
21581         * resolv/getaddrinfo_a.c (getaddrinfo_a):
21582         Give local variable TOTAL type 'volatile unsigned int'.
21583         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21584         * resolv/gai_suspend.c (gai_suspend):
21585         Give local variable CNTR type 'unsigned int'.
21586
21587         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
21588         counterp to 'volatile unsigned int *'.
21589         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
21590         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
21591         (aio_suspend): Give local variable CNTR type 'unsigned int'.
21592         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
21593         Give local variable TOTAL type 'volatile unsigned int'.
21594         (struct async_waitlist): Change type of field counter to 'unsigned int'.
21595
21596 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21597
21598         [BZ #18383]
21599         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
21600         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
21601         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
21602         comment for i386/x86-64.
21603         (test-xfail-tst-tlsalign-extern-static): Removed.
21604
21605 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21606
21607         * math/test-double.h: New file.
21608         * math/test-float.h: Likewise.
21609         * math/test-ldouble.h: Likewise.
21610         * math/test-math-inline.h: Likewise.
21611         * math/test-math-no-inline.h: Likewise.
21612         * math/test-math-scalar.h: Likewise.
21613         * math/test-math-vector.h: Likewise.
21614         * math/test-vec-loop.h: Remove file.  Contents moved into
21615         test-math-vector.h.
21616         * math/libm-test.inc (MATHCONST): Do not document macro.
21617         * math/test-double.c: Include test-double.h, test-math-no-inline.h
21618         and test-math-scalar.h.
21619         (FUNC): Remove macro.
21620         (FUNC_TEST): Likewise.
21621         (FLOAT): Likewise.
21622         (MATHCONST): Likewise.
21623         (PRINTF_EXPR): Likewise.
21624         (PRINTF_XEXPR): Likewise.
21625         (PRINTF_NEXPR): Likewise.
21626         (TEST_DOUBLE): Likewise.
21627         (TEST_MATHVEC): Likewise.
21628         (__NO_MATH_INLINES): Likewise.
21629         * math/test-float.c: Include test-float.h, test-math-no-inline.h
21630         and test-math-scalar.h.
21631         (FUNC): Remove macro.
21632         (FUNC_TEST): Likewise.
21633         (FLOAT): Likewise.
21634         (MATHCONST): Likewise.
21635         (PRINTF_EXPR): Likewise.
21636         (PRINTF_XEXPR): Likewise.
21637         (PRINTF_NEXPR): Likewise.
21638         (TEST_FLOAT): Likewise.
21639         (TEST_MATHVEC): Likewise.
21640         (__NO_MATH_INLINES): Likewise.
21641         * math/test-idouble.c: Include test-double.h, test-math-inline.h
21642         and test-math-scalar.h.
21643         (FUNC): Remove macro.
21644         (FUNC_TEST): Likewise.
21645         (FLOAT): Likewise.
21646         (MATHCONST): Likewise.
21647         (PRINTF_EXPR): Likewise.
21648         (PRINTF_XEXPR): Likewise.
21649         (PRINTF_NEXPR): Likewise.
21650         (TEST_DOUBLE): Likewise.
21651         (TEST_MATHVEC): Likewise.
21652         (TEST_INLINE): Likewise.
21653         (__NO_MATH_INLINES): Likewise.
21654         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
21655         test-math-scalar.h.
21656         (FUNC): Remove macro.
21657         (FUNC_TEST): Likewise.
21658         (FLOAT): Likewise.
21659         (MATHCONST): Likewise.
21660         (PRINTF_EXPR): Likewise.
21661         (PRINTF_XEXPR): Likewise.
21662         (PRINTF_NEXPR): Likewise.
21663         (TEST_FLOAT): Likewise.
21664         (TEST_MATHVEC): Likewise.
21665         (TEST_INLINE): Likewise.
21666         (__NO_MATH_INLINES): Likewise.
21667         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
21668         and test-math-scalar.h.
21669         (FUNC): Remove macro.
21670         (FUNC_TEST): Likewise.
21671         (FLOAT): Likewise.
21672         (MATHCONST): Likewise.
21673         (PRINTF_EXPR): Likewise.
21674         (PRINTF_XEXPR): Likewise.
21675         (PRINTF_NEXPR): Likewise.
21676         (TEST_LDOUBLE): Likewise.
21677         (TEST_MATHVEC): Likewise.
21678         (TEST_INLINE): Likewise.
21679         (__NO_MATH_INLINES): Likewise.
21680         * math/test-ldouble.c: Include test-ldouble.h,
21681         test-math-no-inline.h and test-math-scalar.h.
21682         (FUNC): Remove macro.
21683         (FUNC_TEST): Likewise.
21684         (FLOAT): Likewise.
21685         (MATHCONST): Likewise.
21686         (PRINTF_EXPR): Likewise.
21687         (PRINTF_XEXPR): Likewise.
21688         (PRINTF_NEXPR): Likewise.
21689         (TEST_LDOUBLE): Likewise.
21690         (TEST_MATHVEC): Likewise.
21691         (__NO_MATH_INLINES): Likewise.
21692         * math/test-double-vlen2.h: Include test-double.h,
21693         test-math-no-inline.h and test-math-vector.h.
21694         (FLOAT): Remove macro.
21695         (FUNC): Likewise.
21696         (MATHCONST): Likewise.
21697         (PRINTF_EXPR): Likewise.
21698         (PRINTF_XEXPR): Likewise.
21699         (PRINTF_NEXPR): Likewise.
21700         (TEST_DOUBLE): Likewise.
21701         (TEST_MATHVEC): Likewise.
21702         (__NO_MATH_INLINES): Likewise.
21703         (CNCT): Likewise.
21704         (CONCAT): Likewise.
21705         (WRAPPER_NAME): Likewise.
21706         (WRAPPER_DECL): Likewise.
21707         (WRAPPER_DECL_ff): Likewise.
21708         (WRAPPER_DECL_fFF): Likewise.
21709         (VECTOR_WRAPPER): Likewise.
21710         (VECTOR_WRAPPER_ff): Likewise.
21711         (VECTOR_WRAPPER_fFF): Likewise.
21712         (VEC_LEN): New macro.
21713         * math/test-double-vlen4.h: Include test-double.h,
21714         test-math-no-inline.h and test-math-vector.h.
21715         (FLOAT): Remove macro.
21716         (FUNC): Likewise.
21717         (MATHCONST): Likewise.
21718         (PRINTF_EXPR): Likewise.
21719         (PRINTF_XEXPR): Likewise.
21720         (PRINTF_NEXPR): Likewise.
21721         (TEST_DOUBLE): Likewise.
21722         (TEST_MATHVEC): Likewise.
21723         (__NO_MATH_INLINES): Likewise.
21724         (CNCT): Likewise.
21725         (CONCAT): Likewise.
21726         (WRAPPER_NAME): Likewise.
21727         (WRAPPER_DECL): Likewise.
21728         (WRAPPER_DECL_ff): Likewise.
21729         (WRAPPER_DECL_fFF): Likewise.
21730         (VECTOR_WRAPPER): Likewise.
21731         (VECTOR_WRAPPER_ff): Likewise.
21732         (VECTOR_WRAPPER_fFF): Likewise.
21733         (VEC_LEN): New macro.
21734         * math/test-double-vlen8.h: Include test-double.h,
21735         test-math-no-inline.h and test-math-vector.h.
21736         (FLOAT): Remove macro.
21737         (FUNC): Likewise.
21738         (MATHCONST): Likewise.
21739         (PRINTF_EXPR): Likewise.
21740         (PRINTF_XEXPR): Likewise.
21741         (PRINTF_NEXPR): Likewise.
21742         (TEST_DOUBLE): Likewise.
21743         (TEST_MATHVEC): Likewise.
21744         (__NO_MATH_INLINES): Likewise.
21745         (CNCT): Likewise.
21746         (CONCAT): Likewise.
21747         (WRAPPER_NAME): Likewise.
21748         (WRAPPER_DECL): Likewise.
21749         (WRAPPER_DECL_ff): Likewise.
21750         (WRAPPER_DECL_fFF): Likewise.
21751         (VECTOR_WRAPPER): Likewise.
21752         (VECTOR_WRAPPER_ff): Likewise.
21753         (VECTOR_WRAPPER_fFF): Likewise.
21754         (VEC_LEN): New macro.
21755         * math/test-float-vlen4.h: Include test-float.h,
21756         test-math-no-inline.h and test-math-vector.h.
21757         (FLOAT): Remove macro.
21758         (FUNC): Likewise.
21759         (MATHCONST): Likewise.
21760         (PRINTF_EXPR): Likewise.
21761         (PRINTF_XEXPR): Likewise.
21762         (PRINTF_NEXPR): Likewise.
21763         (TEST_FLOAT): Likewise.
21764         (TEST_MATHVEC): Likewise.
21765         (__NO_MATH_INLINES): Likewise.
21766         (CNCT): Likewise.
21767         (CONCAT): Likewise.
21768         (WRAPPER_NAME): Likewise.
21769         (WRAPPER_DECL): Likewise.
21770         (WRAPPER_DECL_ff): Likewise.
21771         (WRAPPER_DECL_fFF): Likewise.
21772         (VECTOR_WRAPPER): Likewise.
21773         (VECTOR_WRAPPER_ff): Likewise.
21774         (VECTOR_WRAPPER_fFF): Likewise.
21775         (VEC_LEN): New macro.
21776         * math/test-float-vlen8.h: Include test-float.h,
21777         test-math-no-inline.h and test-math-vector.h.
21778         (FLOAT): Remove macro.
21779         (FUNC): Likewise.
21780         (MATHCONST): Likewise.
21781         (PRINTF_EXPR): Likewise.
21782         (PRINTF_XEXPR): Likewise.
21783         (PRINTF_NEXPR): Likewise.
21784         (TEST_FLOAT): Likewise.
21785         (TEST_MATHVEC): Likewise.
21786         (__NO_MATH_INLINES): Likewise.
21787         (CNCT): Likewise.
21788         (CONCAT): Likewise.
21789         (WRAPPER_NAME): Likewise.
21790         (WRAPPER_DECL): Likewise.
21791         (WRAPPER_DECL_ff): Likewise.
21792         (WRAPPER_DECL_fFF): Likewise.
21793         (VECTOR_WRAPPER): Likewise.
21794         (VECTOR_WRAPPER_ff): Likewise.
21795         (VECTOR_WRAPPER_fFF): Likewise.
21796         (VEC_LEN): New macro.
21797         * math/test-float-vlen16.h: Include test-float.h,
21798         test-math-no-inline.h and test-math-vector.h.
21799         (FLOAT): Remove macro.
21800         (FUNC): Likewise.
21801         (MATHCONST): Likewise.
21802         (PRINTF_EXPR): Likewise.
21803         (PRINTF_XEXPR): Likewise.
21804         (PRINTF_NEXPR): Likewise.
21805         (TEST_FLOAT): Likewise.
21806         (TEST_MATHVEC): Likewise.
21807         (__NO_MATH_INLINES): Likewise.
21808         (CNCT): Likewise.
21809         (CONCAT): Likewise.
21810         (WRAPPER_NAME): Likewise.
21811         (WRAPPER_DECL): Likewise.
21812         (WRAPPER_DECL_ff): Likewise.
21813         (WRAPPER_DECL_fFF): Likewise.
21814         (VECTOR_WRAPPER): Likewise.
21815         (VECTOR_WRAPPER_ff): Likewise.
21816         (VECTOR_WRAPPER_fFF): Likewise.
21817         (VEC_LEN): New macro.
21818         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
21819         test-vec-loop.h.
21820         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
21821         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
21822         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
21823         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
21824         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
21825         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
21826         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
21827
21828 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21829
21830         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
21831         (__getlogin_r): ... this.
21832
21833 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21834
21835         [BZ #18594]
21836         * math/s_ccosh.c (__ccosh): Compare with least normal value
21837         instead of comparing class with FP_SUBNORMAL.
21838         * math/s_ccoshf.c (__ccoshf): Likewise.
21839         * math/s_ccoshl.c (__ccoshl): Likewise.
21840         * math/s_cexp.c (__cexp): Likewise.
21841         * math/s_cexpf.c (__cexpf): Likewise.
21842         * math/s_cexpl.c (__cexpl): Likewise.
21843         * math/s_csin.c (__csin): Likewise.
21844         * math/s_csinf.c (__csinf): Likewise.
21845         * math/s_csinh.c (__csinh): Likewise.
21846         * math/s_csinhf.c (__csinhf): Likewise.
21847         * math/s_csinhl.c (__csinhl): Likewise.
21848         * math/s_csinl.c (__csinl): Likewise.
21849         * math/s_ctan.c (__ctan): Likewise.
21850         * math/s_ctanf.c (__ctanf): Likewise.
21851         * math/s_ctanh.c (__ctanh): Likewise.
21852         * math/s_ctanhf.c (__ctanhf): Likewise.
21853         * math/s_ctanhl.c (__ctanhl): Likewise.
21854         * math/s_ctanl.c (__ctanl): Likewise.
21855         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
21856         csin, csinh, ctan and ctanh.
21857         * math/auto-libm-test-out: Regenerated.
21858         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
21859         * sysdeps/i386/fpu/libm-test-ulps: Update.
21860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21861
21862 2015-06-24  Roland McGrath  <roland@hack.frob.com>
21863
21864         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
21865         return value is wrong, print the expected value too.
21866
21867 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
21868
21869         [BZ #18585]
21870         * elf/readlib.c (is_gdb_python_file): New.
21871         (process_file): Don't issue errors on filenames with -gdb.py
21872         suffix.
21873
21874 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
21875
21876         * math/auto-libm-test-in: Add more tests of csin and csinh.
21877         * math/auto-libm-test-out: Regenerated.
21878         * math/libm-test.inc (csin_test_data): Remove tests moved to
21879         auto-libm-test-in.
21880         (csinh_test_data): Likewise.
21881
21882         [BZ #18593]
21883         * math/s_csin.c (__csin): Negate before rather than after possibly
21884         overflowing multiplication.
21885         * math/s_csinf.c (__csinf): Likewise.
21886         * math/s_csinh.c (__csinh): Likewise.
21887         * math/s_csinhf.c (__csinhf): Likewise.
21888         * math/s_csinhl.c (__csinhl): Likewise.
21889         * math/s_csinl.c (__csinl): Likewise.
21890         * math/auto-libm-test-in: Add some tests of csin and csinh.
21891         * math/auto-libm-test-out: Regenerated.
21892         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
21893         (csinh_test_data): Likewise.
21894         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21895
21896         [BZ #18586]
21897         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
21898         underflow exception for small results.
21899
21900 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
21901
21902         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
21903         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
21904         variable and included header.
21905         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
21906         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
21907         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
21908         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
21909         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
21910         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
21911         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
21912         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
21913         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
21914         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
21915         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
21916         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
21917         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
21918         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
21919         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
21920         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
21921
21922 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
21923
21924         [BZ #16526]
21925         [BZ #16538]
21926         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
21927         (__sin): Force underflow exception for arguments with small
21928         absolute value.
21929         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
21930         (__kernel_sinf): Force underflow exception for arguments with
21931         small absolute value.
21932         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
21933         (__kernel_sincosl): Force underflow exception for arguments with
21934         small absolute value.
21935         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
21936         (__kernel_sinl): Force underflow exception for arguments with
21937         small absolute value.
21938         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
21939         (__kernel_sincosl): Force underflow exception for arguments with
21940         small absolute value.
21941         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
21942         (__kernel_sinl): Force underflow exception for arguments with
21943         small absolute value.
21944         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
21945         (__kernel_sinl): Force underflow exception for arguments with
21946         small absolute value.
21947         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
21948         (__kernel_sinf): Force underflow exception for arguments with
21949         small absolute value.
21950         * math/auto-libm-test-in: Add more tests of sin and sincos.
21951         * math/auto-libm-test-out: Regenerated.
21952
21953         [BZ #18245]
21954         [BZ #18583]
21955         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
21956         (__kernel_standard_l): Use feholdexcept and fesetenv around
21957         conversion to double instead of special-casing overflow and
21958         underflow.
21959         * math/libm-test.inc (fmod_test_data): Add more tests.
21960         (remainder_test_data): Likewise.
21961         (sqrt_test_data): Likewise.
21962
21963 2015-06-23  Torvald Riegel  <triegel@redhat.com>
21964
21965         [BZ #17403]
21966         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
21967         atomic_read_barrier, atomic_write_barrier): Define.
21968         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
21969         atomic_read_barrier, atomic_write_barrier): Define.
21970
21971 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
21972
21973         * math/Makefile [$(PERL) != no]
21974         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
21975         dependency on libm-test.stmp below the inclusion of Rules.
21976
21977 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
21978
21979         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
21980         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
21981         and included header.
21982         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
21983         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
21984         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
21985         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
21986         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
21987         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
21988         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
21989         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
21990         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
21991         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
21992         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
21993         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
21994         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
21995         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
21996         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
21997         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
21998         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
21999         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
22000         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
22001
22002 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
22003
22004         [BZ #18371]
22005         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
22006         intermediate but not final result might underflow.
22007         * math/s_csqrtf.c (__csqrtf): Likewise.
22008         * math/s_csqrtl.c (__csqrtl): Likewise.
22009         * math/auto-libm-test-in: Add more tests of csqrt.
22010         * math/auto-libm-test-out: Regenerated.
22011         * sysdeps/i386/fpu/libm-test-ulps: Update.
22012
22013         [BZ #18219]
22014         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
22015         threshold on absolute value of exponent for which scaling is used.
22016         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
22017         * math/auto-libm-test-in: Add more tests of exp2.
22018         * math/auto-libm-test-out: Regenerated.
22019
22020 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
22021
22022         [BZ #17977]
22023         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
22024         when initializing interface list, based on the bug analysis
22025         and the patch proposed by Eric Newton.
22026         * resolv/tst-res_hconf_reorder.c: New test.
22027         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
22028         tst-res_hconf_reorder.
22029         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
22030         and $(shared-thread-library).
22031         (tst-res_hconf_reorder-ENV): New variable.
22032
22033         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
22034         in comment.
22035
22036 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
22037
22038         [BZ #16353]
22039         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
22040         (__expm1): Force underflow exception for arguments with small
22041         absolute value.
22042         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
22043         (__expm1f): Force underflow exception for arguments with small
22044         absolute value.
22045         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
22046         (__expm1): Force underflow exception for arguments with small
22047         absolute value.
22048         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
22049         (__expm1f): Force underflow exception for arguments with small
22050         absolute value.
22051         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
22052         Check for small arguments before calling __expm1.
22053         * math/auto-libm-test-in: Do not mark underflow exceptions as
22054         possibly missing for bug 16353.
22055         * math/auto-libm-test-out: Regenerated.
22056
22057 2015-06-22  Andreas Schwab  <schwab@suse.de>
22058
22059         [BZ #18513]
22060         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
22061         PTR queries.
22062
22063 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
22064
22065         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
22066
22067         * string/strcoll_l.c: Remove unused struct element idxnow.
22068
22069 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
22070
22071         [BZ #18569]
22072         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
22073         underflow and return argument in case of subnormal argument.
22074         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
22075         Likewise.
22076         * math/auto-libm-test-in: Add more tests of expm1.
22077         * math/auto-libm-test-out: Regenerated.
22078
22079         [BZ #16361]
22080         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22081         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22082         tiny results.
22083         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
22084         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
22085         tiny results.
22086         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
22087         mark underflow exceptions as possibly missing for bug 16361.
22088         * math/auto-libm-test-out: Regenerated.
22089
22090 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
22091
22092         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
22093         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
22094         Remove variable.
22095         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
22096         (test-xfail-XOPEN2K8/utmpx.h/conform).
22097
22098         * conform/conformtest.pl ($xerrors): New variable.
22099         (note_error): New function.
22100         (compiletest): New argument $xfail.  Use not_error.
22101         (runtest): Likewise.
22102         (top level): Handle xfail- lines.  Update calls to compiletest and
22103         runtest.  Handle xfail- and optional- in headers listed with
22104         allow-header.
22105         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
22106         (O_EXEC): Likewise.
22107         (O_SEARCH): Likewise.
22108         * conform/data/stropts.h-data (ioctl): Likewise.
22109         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
22110         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
22111         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
22112         (msghdr.msg_controllen): Likewise.
22113         (cmsghdr.cmsg_len): Likewise.
22114         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
22115         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
22116         variable.
22117         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
22118         (test-xfail-XPG4/stropts.h/conform): Likewise.
22119         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
22120         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
22121         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
22122         (test-xfail-UNIX98/stropts.h/conform): Likewise.
22123         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
22124         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
22125         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
22126         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
22127         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
22128         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
22129         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
22130         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
22131         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
22132         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
22133         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
22134         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
22135         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
22136         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
22137         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
22138
22139 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
22140
22141         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
22142         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
22143         definitions for proper unfolding of __MATHDECL_VEC.
22144
22145 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22146
22147         * benchtests/bench-strcoll.c:
22148         Include string.h.
22149         (main): Remove unused variable res.
22150
22151 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22152
22153         * timezone/Makefile (%/UTC %/Universal):
22154         Generate test-result files for UTC and Universal.
22155
22156 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
22157
22158         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22159
22160 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
22161
22162         [BZ #16350]
22163         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
22164         for arguments with small absolute value.
22165         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
22166         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
22167         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
22168         (__asinh): Force underflow exception for arguments with small
22169         absolute value.
22170         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
22171         (__asinhf): Force underflow exception for arguments with small
22172         absolute value.
22173         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
22174         (__asinhl): Force underflow exception for arguments with small
22175         absolute value.
22176         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
22177         (__asinhl): Force underflow exception for arguments with small
22178         absolute value.
22179         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
22180         (__asinhl): Force underflow exception for arguments with small
22181         absolute value.
22182         * math/auto-libm-test-in: Do not mark underflow exceptions as
22183         possibly missing for bug 16350.
22184         * math/auto-libm-test-out: Regenerated.
22185
22186         * include/bits/ipc.h: Remove file.
22187         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
22188         variable.
22189         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
22190         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
22191         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
22192         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
22193         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
22194         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
22195         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
22196         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
22197         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
22198
22199         * math/auto-libm-test-in: Remove spurious underflow allowance for
22200         tests of cexp.
22201         * math/auto-libm-test-out: Regenerated.
22202
22203         [BZ #18558]
22204         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
22205         unconditional definition.
22206         (MCAST_BLOCK_SOURCE): Likewise.
22207         (MCAST_UNBLOCK_SOURCE): Likewise.
22208         (MCAST_LEAVE_GROUP): Likewise.
22209         (MCAST_JOIN_SOURCE_GROUP): Likewise.
22210         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
22211         (MCAST_MSFILTER): Likewise.
22212         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
22213         Remove variable.
22214         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
22215         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
22216         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
22217         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
22218         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
22219
22220 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
22221
22222         * NEWS: Mention addition of x86_64 vector sincosf.
22223         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
22224         * math/test-float-vlen4.h: Likewise.
22225         * math/test-float-vlen8.h: Likewise.
22226         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22227         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
22228         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22229         * sysdeps/x86_64/fpu/Versions: New versions added.
22230         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22231         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22232         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22233         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
22234         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
22235         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
22236         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
22237         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
22238         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
22239         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
22240         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
22241         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
22242         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
22243         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
22244         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
22245         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
22246         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
22247         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
22248         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22249         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22250         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22251         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22252         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22253         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22254
22255         * NEWS: Mention addition of x86_64 vector sincos.
22256         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
22257         * math/math.h (__MATHDECL_VEC): New macro.
22258         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
22259         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
22260         declaration under condition.
22261         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
22262         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
22263         TEST_VEC_LOOP change.
22264         * math/test-double-vlen4.h: Likewise.
22265         * math/test-double-vlen8.h: Likewise.
22266         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
22267         * math/test-float-vlen4.h: Likewise.
22268         * math/test-float-vlen8.h: Likewise.
22269         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22270         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
22271         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22272         * sysdeps/x86_64/fpu/Versions: New versions added.
22273         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22274         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22275         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22276         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
22277         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
22278         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
22279         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
22280         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
22281         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
22282         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
22283         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
22284         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
22285         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
22286         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
22287         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
22288         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
22289         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
22290         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22291         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22292         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22293         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22294         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22295         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22296         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22297
22298         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22299         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22300         redirections for powf.
22301         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22302         * sysdeps/x86_64/fpu/Versions: New versions added.
22303         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22304         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22305         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22306         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
22307         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
22308         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
22309         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
22310         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
22311         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
22312         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
22313         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
22314         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
22315         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
22316         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
22317         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
22318         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
22319         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
22320         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22321         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22322         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22323         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22324         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22325         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22326         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22327         * math/test-float-vlen16.h: Fixed 2 argument macro.
22328         * math/test-float-vlen4.h: Likewise.
22329         * math/test-float-vlen8.h: Likewise.
22330         * NEWS: Mention addition of x86_64 vector powf.
22331
22332 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
22333
22334         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22335         and redefine.
22336         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
22337         and redefine.
22338         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
22339         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22340         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22341
22342         [BZ #18553]
22343         * resource/getpriority.c (getpriority): Rename to __getpriority
22344         and define as weak alias of __getpriority.
22345         * resource/setpriority.c (setpriority): Rename to __setpriority
22346         and define as weak alias of __setpriority.
22347         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
22348         __getpriority and define as weak alias of __getpriority.
22349         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
22350         __setpriority and define as weak alias of __setpriority.
22351         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
22352         strong name.
22353         (setpriority): Use __setpriority as strong name.
22354         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
22355         __getpriority and define as weak alias of __getpriority.
22356         * include/sys/resource.h (__getpriority): Declare.  Use
22357         libc_hidden_proto.
22358         (__setpriority): Likewise.
22359         (getpriority): Don't use libc_hidden_proto.
22360         (setpriority): Likewise.
22361         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
22362         getpriority.  Call __setpriority instead of setpriority.
22363         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
22364         Remove variable.
22365
22366         [BZ #18547]
22367         * misc/getttyent.c (getttynam): Rename to __getttynam and define
22368         as weak alias of __getttynam.  Use prototype function definition.
22369         Call __setttyent, __getttyent and __endttyent instead of
22370         setttyent, getttyent and endttyent.
22371         (getttyent): Rename to __getttyent and define as weak alias of
22372         __getttyent.  Call __setttyent instead of setttyent.  Call
22373         __fgets_unlocked instead of fgets_unlocked.
22374         (setttyent): Rename to __setttyent and define as weak alias of
22375         __setttyent.
22376         (endttyent): Rename to __endttyent and define as weak alias of
22377         __endttyent.
22378         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
22379         (__setttyent): Likewise.
22380         (__endttyent): Likewise.
22381         (getttyent): Don't use libc_hidden_proto.
22382         (setttyent): Likewise.
22383         (endttyent): Likewise.
22384         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
22385         __endttyent instead of setttyent, getttyent and endttyent.
22386         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
22387         Remove variable.
22388
22389         [BZ #18546]
22390         * socket/recv.c (__recv): Use libc_hidden_def.
22391         * socket/socket.c (__socket): Likewise.
22392         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22393         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22394         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
22395         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
22396         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
22397         libc_hidden_def.
22398         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
22399         libc_hidden_weak.
22400         * include/sys/socket.h (__socket): Do not use attribute_hidden.
22401         Use libc_hidden_proto.
22402         (__recv): Likewise.
22403         * socket/Versions (libc): Export __recv and __socket at version
22404         GLIBC_PRIVATE.
22405         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
22406         instead of recv.
22407         (init_mq_netlink): Call __socket instead of socket.
22408         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
22409         Remove variable.
22410
22411         [BZ #18545]
22412         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
22413         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
22414         hidden_weak.
22415         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
22416         define as alias of __mq_timedsend.  Use hidden_weak.
22417         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
22418         __mq_timedsend as strong name.
22419         (mq_timedreceive): Use __mq_timedreceive as strong name.
22420         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
22421         (__mq_timedreceive): Likewise.
22422         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
22423         __mq_timedreceive instead of mq_timedreceive.
22424         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
22425         instead of mq_timedsend.
22426         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
22427         Remove variable.
22428
22429         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
22430         hidden_def and hidden_weak instead of libc_hidden_def and
22431         libc_hidden_weak.
22432         (top level): Refer to hidden_def in comment.
22433         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
22434         macro.  Use it instead of libc_hidden_def.
22435         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
22436         specify __GI_* name explicitly.
22437         (mq_timedreceive): Likewise.
22438         (mq_setattr): Likewise.
22439
22440         [BZ #18544]
22441         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
22442         __pthread_barrier_init and define as weak alias of
22443         __pthread_barrier_init.
22444         * sysdeps/sparc/nptl/pthread_barrier_init.c
22445         (pthread_barrier_init): Likewise.
22446         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
22447         __pthread_barrier_wait and define as weak alias of
22448         __pthread_barrier_wait.
22449         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22450         (pthread_barrier_wait): Likewise.
22451         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22452         (pthread_barrier_wait): Likewise.
22453         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
22454         (pthread_barrier_wait): Likewise.
22455         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
22456         (pthread_barrier_wait): Likewise.
22457         * nptl/Versions (libpthread): Export __pthread_barrier_init and
22458         __pthread_barrier_wait at version GLIBC_PRIVATE.
22459         * include/pthread.h (__pthread_barrier_init): Declare.
22460         (__pthread_barrier_wait): Likewise.
22461         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
22462         Call __pthread_barrier_wait instead of pthread_barrier_wait.
22463         (helper_thread): Likewise.
22464         (init_mq_netlink): Call __pthread_barrier_init instead of
22465         pthread_barrier_init.
22466
22467         [BZ #18542]
22468         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
22469         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
22470         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
22471         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
22472         vswscanf.
22473         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
22474         Remove variable.
22475
22476         [BZ #18540]
22477         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
22478         strong alias of _IO_fflush.  Use libc_hidden_def.
22479         * libio/iofflush_u.c (fflush_unlocked): Rename to
22480         __fflush_unlocked and define as weak alias of __fflush_unlocked.
22481         Use libc_hidden_weak.
22482         * include/stdio.h (__fflush_unlocked): Declare.  Use
22483         libc_hidden_proto.
22484         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
22485         fflush_unlocked.
22486         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
22487         Remove variable.
22488
22489         [BZ #18539]
22490         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
22491         define as weak alias of __addseverity.
22492         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
22493         Remove variable.
22494         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
22495         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
22496         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
22497
22498         [BZ #18536]
22499         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
22500         (__tfind): Likewise.
22501         (__tdelete): Likewise.
22502         (__twalk): Likewise.
22503         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
22504         __twalk to GLIBC_PRIVATE.
22505         * include/search.h (__tsearch): Use libc_hidden_proto.
22506         (__tfind): Likewise.
22507         (__tdelete): Likewise.
22508         (__twalk): Likewise.
22509         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
22510         Call __tdelete instead of tdelete.
22511         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
22512         tfind.  Call __tsearch instead of tsearch.
22513         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
22514         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
22515         Remove variable.
22516         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
22517
22518         [BZ #18534]
22519         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
22520         (dprintf): Define as a weak alias of __dprintf, not a strong
22521         alias.
22522         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
22523         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
22524         dprintf.
22525         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
22526         Remove variable.
22527         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
22528         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
22529
22530         [BZ #18533]
22531         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
22532         not a strong alias.
22533         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
22534         Remove variable.
22535
22536         [BZ #18532]
22537         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
22538         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
22539         (in6addr_loopback): Rename to __in6addr_loopback and define as
22540         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
22541         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
22542         libc_hidden_proto.
22543         (__in6addr_any): Likewise.
22544         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
22545         in6addr_any.
22546         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
22547         variable.
22548         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
22549
22550 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
22551
22552         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
22553         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
22554         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22555         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22556         redirections for pow.
22557         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22558         * sysdeps/x86_64/fpu/Versions: New versions added.
22559         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22560         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22561         build of SSE, AVX2 and AVX512 IFUNC versions.
22562         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
22563         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
22564         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
22565         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
22566         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
22567         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
22568         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
22569         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
22570         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
22571         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
22572         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
22573         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
22574         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
22575         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
22576         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22577         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22578         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22579         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22580         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22581         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22582         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22583         * NEWS: Mention addition of x86_64 vector pow.
22584
22585         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22586         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22587         redirections for expf.
22588         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22589         * sysdeps/x86_64/fpu/Versions: New versions added.
22590         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22591         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22592         build of SSE, AVX2 and AVX512 IFUNC versions.
22593         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
22594         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
22595         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
22596         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
22597         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
22598         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
22599         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
22600         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
22601         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
22602         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
22603         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
22604         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
22605         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
22606         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22607         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22608         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22609         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22610         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22611         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22612         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22613         * NEWS: Mention addition of x86_64 vector expf.
22614
22615         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
22616         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
22617         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22618         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22619         redirections for exp.
22620         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22621         * sysdeps/x86_64/fpu/Versions: New versions added.
22622         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22623         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22624         build of SSE, AVX2 and AVX512 IFUNC versions.
22625         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
22626         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
22627         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
22628         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
22629         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
22630         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
22631         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
22632         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
22633         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
22634         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
22635         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
22636         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
22637         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
22638         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22639         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22640         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22641         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22642         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22643         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22644         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22645         * NEWS: Mention addition of x86_64 vector exp.
22646
22647         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22648         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22649         redirections for logf.
22650         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22651         * sysdeps/x86_64/fpu/Versions: New versions added.
22652         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22653         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22654         build of SSE, AVX2 and AVX512 IFUNC versions.
22655         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
22656         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
22657         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
22658         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
22659         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
22660         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
22661         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
22662         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
22663         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
22664         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
22665         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
22666         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
22667         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
22668         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22669         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22670         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22671         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22672         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22673         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22674         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22675         * NEWS: Mention addition of x86_64 vector logf.
22676
22677         * bits/libm-simd-decl-stubs.h: Added stubs for log.
22678         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
22679         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22680         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
22681         redirections for log.
22682         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22683         * sysdeps/x86_64/fpu/Versions: New versions added.
22684         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22685         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22686         build of SSE, AVX2 and AVX512 IFUNC versions.
22687         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
22688         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
22689         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
22690         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
22691         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
22692         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
22693         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
22694         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
22695         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
22696         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
22697         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
22698         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
22699         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
22700         test.
22701         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22702         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22703         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22704         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22705         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22706         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22707         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22708         * NEWS: Mention addition of x86_64 vector log.
22709
22710 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22711
22712         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
22713         cfi_adjust_cfa_offset argument.
22714         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
22715         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
22716
22717         [BZ #18034]
22718         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
22719         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
22720         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
22721         ordering using ldar.
22722         (_dl_tlsdesc_dynamic): Likewise.
22723         (_dl_tlsdesc_return_lazy): Likewise.
22724         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
22725         relaxed atomics instead of volatile and synchronize with release store.
22726         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
22727         volatile.
22728         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22729
22730 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
22731
22732         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
22733         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
22734         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22735         * sysdeps/x86_64/fpu/Versions: New versions added.
22736         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22737         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
22738         build of SSE, AVX2 and AVX512 IFUNC versions.
22739         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
22740         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
22741         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
22742         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
22743         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
22744         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
22745         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
22746         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
22747         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
22748         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
22749         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
22750         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
22751         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
22752         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
22753         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
22754         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
22755         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
22756         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
22757         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
22758         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
22759         * NEWS: Mention addition of x86_64 vector sinf.
22760
22761 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
22762
22763         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
22764         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
22765         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
22766         Remove variable.
22767         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
22768         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
22769
22770 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
22771
22772         [BZ #18530]
22773         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
22774         strong alias of _IO_fputs.  Use libc_hidden_def.
22775         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
22776         and define as weak alias of __fputs_unlocked.  Use
22777         libc_hidden_weak.
22778         * include/stdio.h (__fputs_unlocked): Declare.  Use
22779         libc_hidden_proto.
22780         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
22781         fputs_unlocked.
22782
22783         [BZ #18529]
22784         * resolv/netdb.h [__USE_POSIX]: Change condition to
22785         [__USE_XOPEN2K].
22786         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
22787         not expect.
22788         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
22789         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
22790         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
22791         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
22792         [XPG4 || UNIX98] (AI_ALL): Likewise.
22793         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
22794         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
22795         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
22796         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
22797         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
22798         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
22799         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
22800         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
22801         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
22802         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
22803         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
22804         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
22805         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
22806         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
22807         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
22808         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
22809         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
22810         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
22811         [XPG4 || UNIX98] (gai_strerror): Likewise.
22812         [XPG4 || UNIX98] (getaddrinfo): Likewise.
22813         [XPG4 || UNIX98] (getnameinfo): Likewise.
22814
22815         [BZ #18528]
22816         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
22817         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
22818         __USE_XOPEN2K8].
22819         (getgrent): Likewise.
22820         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
22821         expect.
22822         [XPG3 || POSIX2008] (endgrent): Likewise.
22823         [XPG3] (setgrent): Likewise.
22824         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
22825         variable.
22826         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
22827
22828         [BZ #18527]
22829         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
22830         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
22831         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
22832         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
22833         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
22834         * include/unistd.h (__getlogin_r): Declare.  Use
22835         libc_hidden_proto.
22836         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
22837         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
22838         variable.
22839         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
22840         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
22841         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
22842
22843 2015-06-12  Martin Sebor  <msebor@redhat.com>
22844
22845         [BZ #18512]
22846         * Makerules (check-install-supported): New target.
22847         (install): Add check-install-supported as a dependency.
22848         * manual/install.texi (Installing the C Library): Document
22849         that overriding prefix and exec_prefix is not supported.
22850         Mention DESTDIR.
22851         * INSTALL: Regenerate from the above.
22852
22853 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
22854
22855         [BZ #18519]
22856         * posix/Versions (libc): Export __libc_pread at version
22857         GLIBC_PRIVATE.
22858         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
22859         instead of pread.
22860         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
22861         variable.
22862
22863         [BZ #18522]
22864         * misc/efgcvt_r.c
22865         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
22866         (cvt_symbol): Use weak_alias instead of strong_alias.
22867         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
22868         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
22869         Remove variable.
22870         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
22871         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
22872
22873         [BZ #18520]
22874         * inet/herrno.c (h_errno): Rename to __h_errno.
22875         (__libc_h_errno): Define as alias of __h_errno not h_errno.
22876         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
22877         to __h_errno instead of h_errno.
22878         * nptl/herrno.c (h_errno): Rename to __h_errno.
22879         (__h_errno_location): Refer to __h_errno not h_errno.
22880         * resolv/Versions (h_errno): Rename to __h_errno.
22881         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
22882         Remove variable.
22883         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
22884
22885 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
22886
22887         * configure.ac: More strict check for AVX512 assembler support.
22888         * configure: Regenerated.
22889
22890         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
22891         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
22892         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
22893         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
22894         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
22895         * sysdeps/x86_64/fpu/Versions: New versions added.
22896         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
22897         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
22898         Added build of SSE, AVX2 and AVX512 IFUNC versions.
22899         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
22900         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
22901         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
22902         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
22903         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
22904         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
22905         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
22906         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
22907         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
22908         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
22909         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
22910         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
22911         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
22912         test.
22913         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
22914         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
22915         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
22916         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
22917         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
22918         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
22919         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
22920         * NEWS: Mention addition of x86_64 vector sin.
22921
22922 2015-06-11  Florian Weimer  <fweimer@redhat.com>
22923
22924         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
22925         comment.
22926
22927 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
22928
22929         [BZ #18479]
22930         * nptl/pt-interp.c: New file.
22931         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
22932         Add pt-interp.
22933         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
22934         $(common-objpfx)runtime-linker.h.
22935
22936 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
22937
22938         * Makeconfig (+interp): Remove unused variable.
22939         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
22940         only.  Depend on $(common-objpfx)runtime-linker.h instead of
22941         $(elf-objpfx)runtime-linker.h.
22942         ($(elf-objpfx)runtime-linker.h): Rename to
22943         $(common-objpfx)runtime-linker.h and move ...
22944         * Makerules [$(build-shared) = yes]: ... here.
22945         * elf/interp.c: Include <runtime-linker.h> instead of
22946         <elf/runtime-linker.h>.
22947
22948 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22949
22950         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
22951         (__gettimeofday_syscall): Remove vsyscall fallback.
22952         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
22953         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
22954         Add syscall fallback function.
22955         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
22956         if vDSO is not present.
22957         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
22958         fallback function.
22959         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
22960         present.
22961         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
22962         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
22963
22964 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
22965
22966         [BZ #18497]
22967         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
22968         of wcscmp.
22969         (wcscmp): Define as weak alias of WCSCMP.
22970         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
22971         wcscoll.
22972         (USE_HIDDEN_DEF): Define.
22973         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
22974         __wcscoll.  Don't use libc_hidden_weak.
22975         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
22976         wcscmp.
22977         * sysdeps/i386/i686/multiarch/wcscmp-c.c
22978         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
22979         __GI_wcscmp.
22980         (weak_alias): Undefine and redefine.
22981         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
22982         __wcscmp and define as weak alias of __wcscmp.
22983         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
22984         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
22985         (__wcscoll): Likewise.
22986         (wcscmp): Don't use libc_hidden_proto.
22987         (wcscoll): Likewise.
22988         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
22989         wcscoll.
22990         * posix/regexec.c (check_node_accept_bytes): Likewise.
22991         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
22992         variable.
22993         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
22994         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
22995
22996         [BZ #18507]
22997         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
22998         __fstatvfs and define as weak alias of __fstatvfs.  Use
22999         libc_hidden_weak.
23000         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
23001         and define as weak alias of __statvfs.  Use libc_hidden_weak.
23002         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
23003         Define as alias of __fstatvfs, not fstatvfs.
23004         (fstatvfs64): Likewise.
23005         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
23006         Define as alias of __statvfs, not statvfs.
23007         (statvfs64): Likewise.
23008         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
23009         Remove variable.
23010
23011 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23012
23013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23014         (HAVE_GETCPU_VSYSCALL): Define.
23015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23016         (HAVE_GETCPU_VSYSCALL): Likewise.
23017         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
23018         * sysdeps/unix/sysv/linux/sched_getcpu.c
23019         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
23020         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
23021         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
23022         prototype.
23023         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23024         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
23025         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
23026         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
23027         Define.
23028         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
23029         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
23030         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
23031         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23032
23033 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
23034
23035         * sysdeps/x86_64/fpu/Makefile: New file.
23036         * sysdeps/x86_64/fpu/Versions: New file.
23037         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
23038         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
23039         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
23040         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
23041         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
23042         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
23043         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
23044         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
23045         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
23046         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
23047         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
23048         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
23049         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
23050         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23051         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23052         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
23053         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
23054         * sysdeps/x86_64/configure.ac: Options for libmvec build.
23055         * sysdeps/x86_64/configure: Regenerated.
23056         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
23057         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
23058         * manual/install.texi (Configuring and compiling): Document
23059         --disable-mathvec.
23060         * INSTALL: Regenerated.
23061         * NEWS: Mention addition of libmvec and x86_64 vector cos.
23062
23063         * math/Makefile: Added rules for vector tests.
23064         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
23065         declaration under condition.
23066         * math/test-double-vlen2.h: New file.
23067         * math/test-double-vlen4.h: New file.
23068         * math/test-double-vlen8.h: New file.
23069         * math/test-vec-loop.h: Added initialization macro.
23070         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
23071         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
23072         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
23073         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
23074         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
23075         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
23076         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
23077         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
23078         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
23079         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
23080         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
23081
23082         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
23083         * sysdeps/x86_64/fpu/Versions: New versions added.
23084         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
23085         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
23086         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
23087         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
23088         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
23089         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
23090         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
23091         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
23092         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
23093         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
23094         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
23095         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
23096         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
23097         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
23098         Added build of SSE, AVX2 and AVX512 IFUNC versions.
23099         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
23100         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
23101         * NEWS: Mention addition of x86_64 vector cosf.
23102
23103         * math/Makefile: Added CFLAGS for new tests.
23104         * math/test-float-vlen16.h: New file.
23105         * math/test-float-vlen4.h: New file.
23106         * math/test-float-vlen8.h: New file.
23107         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
23108         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
23109         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23110         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
23111         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
23112         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
23113         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
23114         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
23115         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
23116         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
23117         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
23118
23119 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
23120
23121         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
23122         * locale/programs/ld-ctype.c: Likewise.
23123
23124 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
23125
23126         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
23127         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
23128         bit_ZMM16_31_state): New macro.
23129         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23130         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
23131
23132 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
23133
23134         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
23135
23136 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
23137
23138         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
23139
23140 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23141
23142         [BZ #18498]
23143         * libio/memstream.c (open_memstream): Rename to __open_memstream
23144         and define as weak alias of __open_memstream.
23145         * include/stdio.h (__open_memstream): Declare.  Use
23146         libc_hidden_proto.
23147         (open_memstream): Don't use libc_hidden_proto.
23148         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
23149         open_memstream.
23150         * posix/getopt.c (_getopt_internal_r): Likewise.
23151         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
23152         variable.
23153         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
23154         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
23155         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
23156
23157         [BZ #18496]
23158         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23159         instead of wcrtomb.
23160
23161         [BZ #18483]
23162         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
23163         [__USE_XOPEN2K8].  Remove redundant #endif.
23164         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
23165         Remove redundant #if.
23166         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
23167         Remove variable.
23168         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
23169         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
23170
23171         [BZ #18495]
23172         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
23173         (__iswlower): Likewise.
23174         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
23175         (__iswlower): Likewise.
23176         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
23177         instead of towlower.
23178         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23179         instead of iswlower.  Call __towupper instead of towupper.
23180         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23181         instead of iswalnum.
23182
23183 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23184
23185         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
23186         errors to stderr.
23187
23188 2015-06-05  Florian Weimer  <fweimer@redhat.com>
23189
23190         [BZ #15661]
23191         [BZ #17322]
23192         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
23193         Check for overflow properly.  Check for O_APPEND.  Ignore large
23194         file system block sizes.  Add comments about problems.
23195         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
23196         * manual/filesys.texi (Storage Allocation): New node.
23197
23198 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23199
23200         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
23201         cancellable syscalls.
23202         (SYS_ify): Add guard to no redefine it.
23203         (INLINE_SYSCALL): Likewise.
23204         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
23205         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
23206         SYSCALL_CANCEL instead.
23207         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
23208         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
23209         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
23210         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
23211         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
23212         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
23213         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
23214         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
23215         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
23216         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
23217         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
23218         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
23219         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
23220         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
23221         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
23222         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
23223         Likewise.
23224         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
23225         (__libc_pread64): Likewise.
23226         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
23227         (__libc_preadv): Likewise.
23228         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
23229         (__libc_readv64): Likewise.
23230         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
23231         (__libc_pwrite): Likewise.
23232         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
23233         (__libc_pwrite64): Likewise.
23234         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
23235         (__libc_pwritev): Likewise.
23236         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
23237         (__libc_pwritev64): Likewise.
23238         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
23239         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
23240         (sync_file_range): Likewise.
23241         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
23242         Likewise.
23243         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
23244         Likewise.
23245         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
23246         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
23247         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
23248         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
23249         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
23250         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
23251         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
23252         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
23253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
23254         Likewise.
23255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23256         (__libc_read64): Likewise.
23257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
23258         Likewise.
23259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
23260         Likewise.
23261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
23262         Likewise.
23263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
23264         Likewise.
23265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23266         (__libc_pread64): Likewise.
23267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
23268         Likewise.
23269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23270         (__libc_pwrite64): Likewise.
23271         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
23272         (sync_file_range): Likewise.
23273         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
23274         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
23275         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
23276         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
23277         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
23278         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
23279         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
23280         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
23281         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
23282         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
23283         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23284         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
23285         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
23286         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
23287         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
23288         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
23289         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
23290         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23291         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
23292         Likewise.
23293         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
23294         Likewise.
23295         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
23296         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
23297         Likewise.
23298         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
23299         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
23300         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
23301         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
23302         Likewise.
23303         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
23304         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
23305         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
23306         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
23307         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
23308
23309 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
23310
23311         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
23312         Include dl-vdso.
23313         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
23314         Use VDSO routines for gettimeofday, clock_gettime if
23315         available.
23316         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
23317         Declare VDSO symbols.
23318         * sysdeps/unix/sysv/linux/arm/sysdep.h:
23319         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
23320         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23321         * sysdeps/unix/sysv/linux/arm/Versions: Add
23322         __vdso_clock_gettime.
23323
23324 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23325
23326         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
23327         be an inline implementation regardless of library is built within.
23328         (open_not_cancel_2): Likewise.
23329         (__read_nocancel): Likewise.
23330         (__write_nocancel): Likewise.
23331         (openat_not_cancel): Likewise.
23332         (openat_not_cancel_3): Likewise.
23333         (openat64_not_cancel): Likewise.
23334         (openat64_not_cancel_3): Likewise.
23335         (__close_nocancel): Likewise.
23336         (pause_not_cancel): Likewise.
23337         (nanosleep_not_cancel): Likewise.
23338         (sigsuspend_not_cancel): Likewise.
23339
23340 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23341
23342         [BZ #14958]
23343         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
23344         wake-up.
23345         (__pthread_rwlock_rdlock_slow): Likewise.
23346         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23347         Likewise.
23348         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
23349         Likewise.
23350         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
23351         * nptl/tst-rwlock16.c: New file.
23352         * nptl/Makefile (tests): Add new test.
23353
23354 2015-06-04  Torvald Riegel  <triegel@redhat.com>
23355
23356         [BZ #18324]
23357         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
23358         missing wake-up of readers.
23359         * nptl/tst-rwlock15.c: New file.
23360         * nptl/Makefile (tests): Add new test.
23361
23362 2015-06-03  Roland McGrath  <roland@hack.frob.com>
23363
23364         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
23365         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
23366         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
23367         and __nacl_supply_interface_rtld.
23368         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
23369         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
23370         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
23371         Add __nacl_supply_interface_rtld.
23372         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
23373
23374 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23375
23376         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
23377         isfinite.
23378         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
23379         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
23380
23381 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
23382
23383         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
23384         __signbit* with standard C99 macros.
23385         * math/e_exp10l.c: Likewise.
23386         * math/e_exp2l.c: Likewise.
23387         * math/e_scalb.c: Likewise.
23388         * math/e_scalbf.c: Likewise.
23389         * math/e_scalbl.c: Likewise.
23390         * math/s_ldexp.c: Likewise.
23391         * math/s_ldexpf.c: Likewise.
23392         * math/s_ldexpl.c: Likewise.
23393         * math/w_atan2.c: Likewise.
23394         * math/w_atan2f.c: Likewise.
23395         * math/w_atan2l.c: Likewise.
23396         * math/w_cosh.c: Likewise.
23397         * math/w_coshf.c: Likewise.
23398         * math/w_coshl.c: Likewise.
23399         * math/w_exp10.c: Likewise.
23400         * math/w_exp10f.c: Likewise.
23401         * math/w_exp10l.c: Likewise.
23402         * math/w_exp2.c: Likewise.
23403         * math/w_exp2f.c: Likewise.
23404         * math/w_exp2l.c: Likewise.
23405         * math/w_fmod.c: Likewise.
23406         * math/w_fmodf.c: Likewise.
23407         * math/w_fmodl.c: Likewise.
23408         * math/w_hypot.c: Likewise.
23409         * math/w_hypotf.c: Likewise.
23410         * math/w_hypotl.c: Likewise.
23411         * math/w_jnl.c: Likewise.
23412         * math/w_lgamma.c: Likewise.
23413         * math/w_lgamma_r.c: Likewise.
23414         * math/w_lgammaf.c: Likewise.
23415         * math/w_lgammaf_r.c: Likewise.
23416         * math/w_lgammal.c: Likewise.
23417         * math/w_lgammal_r.c: Likewise.
23418         * math/w_pow.c: Likewise.
23419         * math/w_powf.c: Likewise.
23420         * math/w_powl.c: Likewise.
23421         * math/w_remainder.c: Likewise.
23422         * math/w_remainderf.c: Likewise.
23423         * math/w_remainderl.c: Likewise.
23424         * math/w_scalb.c: Likewise.
23425         * math/w_scalbf.c: Likewise.
23426         * math/w_scalbl.c: Likewise.
23427         * math/w_scalbln.c: Likewise.
23428         * math/w_scalblnf.c: Likewise.
23429         * math/w_scalblnl.c: Likewise.
23430         * math/w_sinh.c: Likewise.
23431         * math/w_sinhf.c: Likewise.
23432         * math/w_sinhl.c: Likewise.
23433         * math/w_tgamma.c: Likewise.
23434         * math/w_tgammaf.c: Likewise.
23435         * math/w_tgammal.c: Likewise.
23436         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23437         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
23438         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23439         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23440         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23441         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23442         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
23443         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23444         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23445         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23446         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23447         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
23448         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23449         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23450         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23451         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23452         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23453         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23454         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23455         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23456         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23457         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
23458         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23459         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23460         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23461         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23462         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
23463         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23464         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23465         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23466         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
23467         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
23468         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
23469         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
23470         * stdio-common/printf_fp.c: Likewise.
23471         * stdio-common/printf_fphex.c: Likewise.
23472         * stdio-common/printf_size.c: Likewise.
23473
23474 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
23475
23476         [BZ #18470]
23477         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
23478         strnlen.
23479         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
23480         Remove variable.
23481         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
23482         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
23483         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
23484         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
23485         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
23486         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
23487         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
23488         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
23489         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
23490         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
23491
23492         [BZ #18468]
23493         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
23494         weak alias of __wmemchr.  Use libc_hidden_weak.
23495         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
23496         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
23497         instead of wmemchr.
23498
23499 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23500
23501         [BZ #18383]
23502         * elf/tst-tlsalign-extern.c: New file.
23503         * elf/tst-tlsalign-extern-static.c: New file.
23504         * elf/tst-tlsalign-vars.c: New file.
23505         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
23506         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
23507         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
23508         ($(objpfx)tst-tlsalign-extern-static): Likewise.
23509         (test-xfail-tst-tlsalign-extern-static): New variable.
23510
23511 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
23512
23513         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
23514         Use variable name _sc_err instead of err.
23515         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
23516         instead of ret.
23517         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
23518         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
23519         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
23520         (INLINE_SYSCALL): Likewise.
23521
23522         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
23523         * include/string.h (__strnlen): Use libc_hidden_proto.
23524         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
23525         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
23526         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
23527         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
23528         (libc_hidden_def): Undefine and redefine.
23529         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
23530         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
23531         __GI_strnlen.
23532         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
23533         libc_hidden_def.
23534         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
23535
23536         [BZ #18469]
23537         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
23538         weak alias of __towlower.  Use libc_hidden_weak.
23539         (towupper): Rename to __towupper and define as weak alias of
23540         __towupper.  Use libc_hidden_weak.
23541         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
23542         (__towupper): Likewise.
23543         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
23544         __towlower instead of towlower.
23545
23546 2015-06-02  Roland McGrath  <roland@hack.frob.com>
23547
23548         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
23549         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
23550
23551 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23552
23553         * sysdeps/aarch64/libm-test-ulps: Update.
23554
23555 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23556
23557         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
23558         Define.
23559         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23560         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23561         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23562         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23563         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
23564         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
23565         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
23566
23567 2015-06-01  Martin Sebor  <msebor@redhat.com>
23568
23569         [BZ #18116]
23570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
23571         (__setcontext): Use extended four-operand version of mtsf whenever
23572         possible.
23573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
23574         (__novec_swapcontext): Likewise.
23575
23576 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23577
23578         * benchtests/scripts/compare_bench.py: New file.
23579         * benchtests/scripts/import_bench.py (mean): New function.
23580         (split_list): Likewise.
23581         (do_for_all_timings): Likewise.
23582         (compress_timings): Likewise.
23583
23584         * benchtests/scripts/import_bench.py: New file.
23585         * benchtests/scripts/validate_benchout.py: Import import_bench
23586         instead of jsonschema.
23587         (validate_bench): Remove function.
23588         (main): Use import_bench.
23589
23590 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
23591
23592         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
23593         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
23594
23595 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23596
23597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23598
23599 2015-05-28  Roland McGrath  <roland@hack.frob.com>
23600
23601         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
23602         set THREAD_SELF->tid to a magic value and futex-wake it.
23603         Pass its address to the thread_exit system call.
23604         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
23605         bit is clear.
23606         * sysdeps/nacl/lowlevellock.h: New file.
23607         * sysdeps/nacl/lll_timedwait_tid.c: New file.
23608
23609         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
23610         Add TIMEOUT to current time, don't subtract it.
23611
23612 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
23613
23614         [BZ #2981]
23615         [BZ #18422]
23616         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
23617         ($(objpfx)tst-audit2.out): Also depend on
23618         $(objpfx)tst-auditmod9b.so.
23619         * elf/tst-audit2.c: Include <dlfcn.h>.
23620         (calloc_called): New.
23621         (calloc): Allow to be called more than once.
23622         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
23623
23624 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
23625
23626         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
23627         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
23628
23629 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
23630
23631         * stdlib/monetary.h: Fix comment.
23632
23633 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
23634
23635         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
23636         Avoid using variables in #defines that might cause shadowing.
23637         (INTERNAL_VSYSCALL_CALL): Likewise.
23638
23639 2015-05-26  Roland McGrath  <roland@hack.frob.com>
23640
23641         * sysdeps/nacl/lll_timedlock_wait.c: New file.
23642
23643         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
23644         * nptl/lll_timedlock_wait.c: ... to this new file.
23645         * nptl/Makefile (libpthread-routines): Add it.
23646         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
23647         * nptl/lll_timedwait_tid.c: ... to this new file.
23648         * nptl/Makefile (libpthread-routines): Add it.
23649         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
23650         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
23651         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
23652         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
23653         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
23654         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
23655         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
23656         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
23657         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
23658         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
23659
23660 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23661
23662         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
23663         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
23664         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
23665         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
23666         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
23667         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23668         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23669         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23670         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23671         * sysdeps/unix/sysv/linux/tile/sysdep.h
23672         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
23673         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
23674         using vDSO syscall macro.
23675
23676 2015-05-26  Andriy Rysin  <arysin@gmail.com>
23677
23678         [BZ #17293]
23679         * uk_UA: Fix sorting order for Ukrainian locale
23680
23681 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
23682
23683         * stdlib/monetary.h: Fix comment.
23684
23685 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23686
23687         [BZ #18234]
23688         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
23689         st_mtim and st_ctim members.
23690         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
23691         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
23692         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
23693         (struct stat64): Likewise.
23694         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
23695         (struct stat64): Likewise.
23696         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
23697         (struct stat64): Likewise.
23698
23699 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23700
23701         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
23702         Define and include sysdep-vdso.h.
23703         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
23704         Likewise.
23705         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
23706         Likewise.
23707         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
23708         Define with VDSO_SYMBOL and use PTR_MANGLE.
23709         (__vdso_clock_gettime): Likewise.
23710         (__vdso_clock_getres): Likewise.
23711         (_libc_vdso_platform_setup): Likewise.
23712         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
23713         Likewise.
23714         (_libc_vdso_platform_setup): Likewise.
23715         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
23716         Likewise.
23717         (__vdso_clock_gettime): Likewise.
23718         (__vdso_clock_getres): Likewise.
23719         (__vdso_get_tbfreq): Likewise.
23720         (__vdso_getcpu): Likewise.
23721         (__vdso_time): Likewise.
23722         (__vdso_sigtramp_rt64): Likewise.
23723         (__vdso_signtramp32): Likewise.
23724         (__vdso_sigtramp_rt32): Likewise.
23725         (_libc_vdso_platform_setup): Likewise.
23726         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
23727         Likewise.
23728         (__vdso_clock_gettime): Likewise.
23729         (__vdso_clock_getres): Likewise.
23730         (_libc_vdso_platform_setup): Likewise.
23731         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
23732         Likewise.
23733         (__vdso_clock_gettime): Likewise.
23734         (_libc_vdso_platform_setup): Likewise.
23735         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
23736         Likewise.
23737         (__vdso_getcpu): Likewise.
23738         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
23739         Use VDSO_SYMBOL macro to define.
23740         (__vdso_clock_gettime): Likewise.
23741         (__vdso_clock_getres): Likewise.
23742         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
23743         Likewise.
23744         (__vdso_clock_gettime): Likewise.
23745         (__vdso_clock_getres): Likewise.
23746         (__vdso_get_tbfreq): Likewise.
23747         (__vdso_getcpu): Likewise.
23748         (__vdso_time): Likewise.
23749         (__vdso_sigtramp_rt64): Likewise.
23750         (__vdso_signtramp32): Likewise.
23751         (__vdso_sigtramp_rt32): Likewise.
23752         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
23753         Likewise.
23754         (__vdso_clock_gettime): Likewise.
23755         (__vdso_clock_getres): Likewise.
23756         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
23757         Likewise.
23758         (__vdso_clock_gettime): Likewise.
23759         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
23760         Likewise.
23761         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
23762         macro.
23763         (INTERNAL_VSYSCALL): Likewise.
23764         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
23765         Remove macro.
23766         (INTERNAL_VSYSCALL): Likewise.
23767         (INTERNAL_VSYSCALL_NCS): Likewise.
23768         (INTERNAL_VSYSCALL_CALL): New macro.
23769         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23770         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
23771         Likewise.
23772         (INTERNAL_VSYSCALL): Likewise.
23773         (INTERNAL_VSYSCALL_NCS): Likewise.
23774         (INTERNAL_VSYSCALL_CALL): New macro.
23775         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
23776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23777         (INLINE_VSYSCALL): Remove macro.
23778         (INTERNAL_VSYSCALL): Remove macro.
23779         (INTERNAL_VSYSCALL_NCS): Remove macro.
23780         (INTERNAL_VSYSCALL_CALL): New macro.
23781         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
23782         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
23783         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23784         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
23785         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
23786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23787         (INLINE_VSYSCALL): Remove macro.
23788         (INTERNAL_VSYSCALL): Likewise.
23789         (INTERNAL_VSYSCALL_NCS): Likewise.
23790         (INTERNAL_VSYSCALL_CALL): New macro.
23791         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
23792         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
23793         PTR_DEMANGLE on vDSO pointer.
23794         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
23795         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
23796         macro.
23797         (INTERNAL_SYSCALL): Likewise.
23798         (INTERNAL_VSYSCALL_NCS): Remove macro.
23799         (INTERNAL_VSYSCALL_CALL): New macro.
23800         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
23801         Remove macro.
23802         (INTERNAL_VSYSCALL): Likewise.
23803         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
23804         sysdep-vdso.h instead of libc-vdso.h.
23805         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
23806         definition.
23807         (INLINE_VSYSCALL): Likewise.
23808         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
23809         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
23810         definition.
23811         (INLINE_VSYSCALL): Likewise.
23812         (INTERNAL_VSYSCALL): Likewise.
23813         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23814         * sysdeps/unix/sysv/linux/timespec_get.c
23815         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
23816         (timespec_get): Use ANSI prototype.
23817         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
23818         and definition for Linux.
23819
23820 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
23821
23822         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
23823         * include/libc-symbols.h: libmvec_hidden_* macro series added.
23824
23825 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
23826
23827         [BZ #2981]
23828         [BZ #18410]
23829         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
23830         for missing DT_PLTRELSZ.
23831
23832 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23833
23834         Remove obsolete aliases that broke 'locale -a'
23835         [BZ #18412]
23836         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
23837         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
23838         breaking some applications that use 'locale -a' output.
23839         Change the encoding of this file from Latin-1 to ASCII to avoid
23840         other potential problems with people grepping this file.
23841
23842 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23843
23844         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
23845         -fasynchronous-unwind-tables.
23846         (CFLAGS-sendto.c): Likewise.
23847         (CFLAGS-sendmsg.c): Likewise.
23848         (CFLAGS-connect.c): Likewise.
23849         (CFLAGS-recvmsg.c): Likewise.
23850         (CFLAGS-recvfrom.c): Likewise.
23851         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
23852         (SOCKETCALL): New macro: non-cancellable socketcall.
23853         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
23854         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
23855         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
23856         * sysdeps/unix/sysv/linux/accept.c: New file.
23857         * sysdeps/unix/sysv/linux/bind.c: Likewise.
23858         * sysdeps/unix/sysv/linux/connect.c: Likewise.
23859         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
23860         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
23861         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
23862         * sysdeps/unix/sysv/linux/listen.c: Likewise.
23863         * sysdeps/unix/sysv/linux/recv.c: Likewise.
23864         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
23865         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
23866         * sysdeps/unix/sysv/linux/send.c: Likewise.
23867         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
23868         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
23869         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
23870         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
23871         * sysdeps/unix/sysv/linux/socket.c: Likewise.
23872         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
23873         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
23874         prototype.
23875         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
23876         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
23877         instead of __internal_xxx function.
23878         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
23879         prototype.
23880         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
23881         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
23882         instead of __internal_xxx function.
23883         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
23884         prototype.
23885         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
23886         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
23887         instead of __internal_xxx function.
23888         * sysdeps/unix/sysv/linux/accept.S: Remove file.
23889         * sysdeps/unix/sysv/linux/bind.S: Likewise.
23890         * sysdeps/unix/sysv/linux/connect.S: Likewise.
23891         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
23892         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
23893         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
23894         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
23895         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
23896         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
23897         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
23898         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
23899         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
23900         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
23901         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
23902         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
23903         * sysdeps/unix/sysv/linux/listen.S: Likewise.
23904         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
23905         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
23906         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
23907         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
23908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
23909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
23910         * sysdeps/unix/sysv/linux/recv.S: Likewise.
23911         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
23912         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
23913         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
23914         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
23915         * sysdeps/unix/sysv/linux/send.S: Likewise.
23916         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
23917         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
23918         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
23919         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
23920         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
23921         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
23922         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
23923         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
23924         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
23925         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
23926         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
23927         socketcall is implemented in GLIBC.
23928
23929 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
23930
23931         * soft-fp/fmadf4.c: Include <libc-internal.h>.
23932         (__fma): Ignore uninitialized warnings around packing.
23933         * soft-fp/fmasf4.c: Include <libc-internal.h>.
23934         (__fmaf): Ignore uninitialized warnings around packing.
23935         * soft-fp/fmatf4.c: Include <libc-internal.h>.
23936         (__fmal): Ignore uninitialized warnings around packing.
23937
23938         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
23939         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
23940         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
23941         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
23942
23943         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
23944         switch statement into default case.
23945         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
23946
23947         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
23948         a conditional in forcing "inexact".
23949         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
23950         Likewise.
23951
23952 2015-05-22  Roland McGrath  <roland@hack.frob.com>
23953
23954         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23955         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
23956         for each INTERNAL_SYSCALL use.
23957
23958 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
23959
23960         [BZ #438]
23961         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
23962         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
23963         variable.
23964
23965         [BZ #18444]
23966         * string/basename.c (basename): Rename to __basename and define as
23967         weak alias of __basename.  Use libc_hidden_weak.
23968         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
23969         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
23970         __basename instead of basename.
23971         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
23972         Remove variable.
23973         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
23974
23975 2015-05-18  Florian Weimer  <fweimer@redhat.com>
23976
23977         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
23978         (_IO_JUMPS_FILE_plus): New.
23979         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
23980         _IO_CAST_FIELD_ACCESS.
23981         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
23982         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
23983         * libio/freopen.c (freopen): Likewise.
23984         * libio/freopen64.c (freopen64): Likewise.
23985         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
23986         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
23987         * libio/iofwide.c (_IO_fwide): Likewise.
23988         * libio/memstream.c (open_memstream): Likewise.
23989         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
23990         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
23991         * libio/oldiopopen.c (_IO_old_popen): Likewise.
23992
23993 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
23994
23995         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
23996         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
23997         NADJ.
23998         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
23999         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
24000         NADJ.
24001         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
24002         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
24003         NADJ.
24004
24005         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
24006         (p == 4) case.
24007
24008         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
24009         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
24010         Remove variable.
24011         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24012         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24013         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24014
24015 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24016
24017         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
24018         Adjust jump table label generation macros.
24019
24020 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24021
24022         * stdio-common/vfprintf.c (vfprintf): Move local variables
24023         args_malloced, specs, specs_malloced, and the code after
24024         do_positional to the printf_positional function.
24025         (printf_positional): New function.
24026
24027 2015-05-21  Florian Weimer  <fweimer@redhat.com>
24028
24029         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
24030         function.
24031         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
24032         STEP4_TABLE, process_arg): Move macro definitions
24033         out of the vfprintf function.  (Cosmetic change only.)
24034
24035 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
24036
24037         * benchtests/Makefile (stdio-common-bench): Define.
24038         (benchset): Add stdio-common-bench.
24039         * sprintf-inputs: New file.
24040         * sprintf-source.c: New file.
24041
24042 2015-05-21  Andreas Schwab  <schwab@suse.de>
24043
24044         [BZ #13028]
24045         [BZ #17053]
24046         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
24047         of struct __res_state.
24048         * resolv/res_send.c (__libc_res_nsend): Likewise.
24049         (get_nsaddr): New function.
24050         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
24051         statp directly.
24052
24053 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
24054
24055         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
24056         -D_POSIX_C_SOURCE=199506L.
24057
24058         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
24059
24060         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
24061         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
24062         Do not mention otherwise.
24063         [POSIX] (_XOPEN_VERSION): Do not expect.
24064         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
24065         [POSIX] (_POSIX2_C_BIND): Likewise.
24066         [POSIX] (_POSIX2_VERSION): Likewise.
24067         [POSIX] (_XOPEN_XPG2): Likewise.
24068         [POSIX] (_XOPEN_XPG3): Likewise.
24069         [POSIX] (_XOPEN_XPG4): Likewise.
24070         [POSIX] (_XOPEN_UNIX): Likewise.
24071         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
24072         [POSIX] (_POSIX_BARRIERS): Likewise.
24073         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
24074         [POSIX] (_POSIX_CPUTIME): Likewise.
24075         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
24076         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
24077         [POSIX] (_POSIX_SHELL): Likewise.
24078         [POSIX] (_POSIX_SPAWN): Likewise.
24079         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
24080         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
24081         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
24082         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
24083         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
24084         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
24085         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
24086         [POSIX] (_XBS5_LP64_OFF64): Likewise.
24087         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
24088         [POSIX] (_POSIX_TIMEOUTS): Likewise.
24089         [POSIX] (_POSIX2_PBS): Likewise.
24090         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
24091         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
24092         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
24093         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
24094         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
24095         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
24096         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
24097         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
24098         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
24099         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
24100         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
24101         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
24102         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
24103         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
24104         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
24105         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
24106         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
24107         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
24108         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
24109         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
24110         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
24111         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
24112         [POSIX] (_SC_2_C_BIND): Likewise.
24113         [POSIX] (_SC_2_C_VERSION): Likewise.
24114         [POSIX] (_SC_2_PBS): Likewise.
24115         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
24116         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
24117         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
24118         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
24119         [POSIX] (_SC_2_PBS_TRACK): Likewise.
24120         [POSIX] (_SC_ATEXIT_MAX): Likewise.
24121         [POSIX] (_SC_BARRIERS): Likewise.
24122         [POSIX] (_SC_BASE): Likewise.
24123         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
24124         [POSIX] (_SC_DEVICE_IO): Likewise.
24125         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
24126         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
24127         [POSIX] (_SC_FD_MGMT): Likewise.
24128         [POSIX] (_SC_FIFO): Likewise.
24129         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
24130         [POSIX] (_SC_FILE_LOCKING): Likewise.
24131         [POSIX] (_SC_FILE_SYSTEM): Likewise.
24132         [POSIX] (_SC_IOV_MAX): Likewise.
24133         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
24134         [POSIX] (_SC_NETWORKING): Likewise.
24135         [POSIX] (_SC_PAGE_SIZE): Likewise.
24136         [POSIX] (_SC_PASS_MAX): Likewise.
24137         [POSIX] (_SC_PIPE): Likewise.
24138         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
24139         [POSIX] (_SC_REGEXP): Likewise.
24140         [POSIX] (_SC_SHELL): Likewise.
24141         [POSIX] (_SC_SIGNALS): Likewise.
24142         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
24143         [POSIX] (_SC_SPIN_LOCKS): Likewise.
24144         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
24145         [POSIX] (_SC_USER_GROUPS): Likewise.
24146         [POSIX] (_SC_USER_GROUPS_R): Likewise.
24147         [POSIX] (_SC_STREAMS): Likewise.
24148         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
24149         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
24150         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
24151         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
24152         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
24153         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
24154         [POSIX] (_PC_FILESIZEBITS): Likewise.
24155         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
24156         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
24157         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
24158         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
24159         [POSIX] (uid_t): Likewise.
24160         [POSIX] (gid_t): Likewise.
24161         [POSIX] (off_t): Likewise.
24162         [POSIX] (pid_t): Likewise.
24163         [POSIX] (cuserid): Allow.
24164         (_SC_2_CHAR_TERM): Require constant.
24165         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
24166         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
24167         variable.
24168
24169 2015-05-20  Roland McGrath  <roland@hack.frob.com>
24170
24171         * sysdeps/nacl/pthread-pids.h: New file.
24172         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
24173         (create_thread): Use __nacl_get_tid to initialize PD->tid.
24174
24175         * nptl/pthread-pids.h: New file.
24176         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
24177         * nptl/nptl-init.c: Include <pthread-pids.h>.
24178         (__pthread_initialize_minimal_internal):
24179         Call __pthread_initialize_pids instead of set_tid_address syscall.
24180
24181         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
24182         * sysdeps/posix/usleep.c: ... here.
24183
24184 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24185
24186         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
24187         call_pselect6 object.
24188         [$(subdir) = io]: Remove call_sync_file_range object.
24189         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
24190         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
24191         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
24192         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
24193
24194 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
24195
24196         * math/s_cproj.c: Add include "math_private.h".
24197         * math/s_cprojf.c: Likewise.
24198         * math/s_cprojl.c: Likewise.
24199
24200 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
24201
24202         [BZ #18244]
24203         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
24204         high mantissa bit when testing whether P is a NaN.
24205         * math/libm-test.inc (remainder_test_data): Add more tests.
24206         (remquo_test_data): Likewise.
24207
24208         [BZ #18049]
24209         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
24210         below -32, return the argument, with underflow if subnormal.
24211         * math/auto-libm-test-in: Add more tests of atanh.
24212         * math/auto-libm-test-out: Regenerated.
24213
24214 2015-05-19  Roland McGrath  <roland@hack.frob.com>
24215
24216         [BZ #18434]
24217         * nptl/tst-sem15.c: New file.
24218         * nptl/Makefile (tests): Add it.
24219         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
24220         s/<</>>/ to fix typo in EOVERFLOW check.
24221         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
24222
24223 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24224
24225         * manual/strings.texi (envz_remove): Fix typo in safety
24226         annotations.
24227
24228 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24229             Steve Ellcey  <sellcey@imgtec.com>
24230
24231         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
24232         in order to avoid strict alias warnings.
24233         (iruserok_af): Ditto for ra.
24234
24235 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
24236
24237         [BZ #17581]
24238         * malloc/hooks.c
24239         (magicbyte): Convert to a function and avoid returning 0x01.
24240         (mem2mem_check): Avoid using a length byte equal to the magic byte.
24241         (mem2chunk_check): Fix unsigned comparisons to zero.
24242         Hoist defs of sz and magic.
24243
24244 2015-05-19  Richard Henderson  <rth@redhat.com>
24245
24246         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
24247
24248         * sysdeps/alpha/fpu/libm-test-ulps: Update.
24249
24250 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24251
24252         [BZ #16159]
24253         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
24254         * malloc/arena.c (arena_lock): Check if arena is corrupt.
24255         (reused_arena): Find a non-corrupt arena.
24256         (heap_trim): Pass arena to unlink.
24257         * malloc/hooks.c (malloc_check_get_size): Pass arena to
24258         malloc_printerr.
24259         (top_check): Likewise.
24260         (free_check): Likewise.
24261         (realloc_check): Likewise.
24262         * malloc/malloc.c (malloc_printerr): Add arena argument.
24263         (unlink): Likewise.
24264         (munmap_chunk): Adjust.
24265         (ARENA_CORRUPTION_BIT): New macro.
24266         (arena_is_corrupt): Likewise.
24267         (set_arena_corrupt): Likewise.
24268         (sysmalloc): Use mmap if there are no usable arenas.
24269         (_int_malloc): Likewise.
24270         (__libc_malloc): Don't fail if arena_get returns NULL.
24271         (_mid_memalign): Likewise.
24272         (__libc_calloc): Likewise.
24273         (__libc_realloc): Adjust for additional argument to
24274         malloc_printerr.
24275         (_int_free): Likewise.
24276         (malloc_consolidate): Likewise.
24277         (_int_realloc): Likewise.
24278         (_int_memalign): Don't touch corrupt arenas.
24279         * malloc/tst-malloc-backtrace.c: New test case.
24280
24281         * Makefile (summarize-tests): Fix return value on success.
24282
24283         * manual/string.texi (Envz Functions): Add envz_remove.
24284
24285 2015-05-18  Roland McGrath  <roland@hack.frob.com>
24286
24287         * sysdeps/posix/opendir.c: Include <stdbool.h>.
24288         (invalid_name): New function, broken out of ...
24289         (__opendirat): ... here.  Call it.
24290         (need_isdir_precheck): New function, broken out of ...
24291         (__opendirat): ... here.  Call it.
24292         Use __fxstatat64, not __xstatat64.
24293         (opendir_oflags): New function, broken out of ...
24294         (__opendirat): ... here.  Call it.
24295         (opendir_tail): New function, broken out of ...
24296         (__opendirat): ... here.  Call it.
24297         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
24298         opendir_tail, rather than punting to __opendirat.
24299         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
24300
24301 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24302
24303         * .gitignore: Ignore generated *.pyc.
24304
24305 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
24306
24307         * include/stdio.h: Define __need_wint_t.
24308         * test-skeleton.c: Avoid `for' loop initial declaration.
24309         * nptl/tst-initializers1.c: Use test-skeleton.c.
24310
24311 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24312
24313         [BZ #18418]
24314         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
24315
24316 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24317
24318         [BZ #16352]
24319         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
24320         (__ieee754_atanh): Force underflow exception for results with
24321         small absolute value.
24322         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
24323         (__ieee754_atanhf): Force underflow exception for results with
24324         small absolute value.
24325         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
24326         (__ieee754_atanh): Force underflow exception for results with
24327         small absolute value.
24328         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
24329         (__ieee754_atanhf): Force underflow exception for results with
24330         small absolute value.
24331         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
24332         (__ieee754_atanhl): Force underflow exception for results with
24333         small absolute value.
24334         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
24335         (__ieee754_atanhl): Force underflow exception for results with
24336         small absolute value.
24337         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
24338         (__ieee754_atanhl): Force underflow exception for results with
24339         small absolute value.
24340         * math/auto-libm-test-in: Do not allow missing underflow
24341         exceptions from atanh.
24342         * math/auto-libm-test-out: Regenerated.
24343
24344         [BZ #18221]
24345         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
24346         2**-28 as threshold for returning x or +/- 1/x.
24347         * math/auto-libm-test-in: Add more tests of tan.
24348         * math/auto-libm-test-out: Regenerated.
24349
24350         [BZ #18220]
24351         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
24352         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
24353         * math/auto-libm-test-in: Add another test of lgamma.
24354         * math/auto-libm-test-out: Regenerated.
24355
24356 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
24357
24358         * stdio-common/printf_fp.c (___printf_fp): Use abs.
24359         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
24360         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
24361         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
24362         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
24363         (ADD2A): Use fabs.  (SUB2A): Use fabs.
24364         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
24365         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
24366         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
24367         (log1): Use fabs.  (my_log2): Use fabs.
24368         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
24369         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
24370         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
24371         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
24372         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
24373         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
24374         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
24375         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
24376         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
24377         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
24378         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
24379
24380 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
24381
24382         [BZ #18217]
24383         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
24384         as threshold for returning 1 - x.
24385         * math/auto-libm-test-in: Add more tests of erfc.
24386         * math/auto-libm-test-out: Regenerated.
24387
24388 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
24389
24390         [BZ #18196]
24391         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
24392         threshold for large arguments.
24393         * math/auto-libm-test-in: Add another test of atan.
24394         * math/auto-libm-test-out: Regenerated.
24395
24396         [BZ #16339]
24397         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
24398         (__log1p): Force underflow exception for results with small
24399         absolute value.
24400         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
24401         (__log1pf): Force underflow exception for results with small
24402         absolute value.
24403         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
24404         (__log1p): Force underflow exception for results with small
24405         absolute value.
24406         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
24407         (__log1pf): Force underflow exception for results with small
24408         absolute value.
24409         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
24410         (__log1pl): Force underflow exception for results with small
24411         absolute value.
24412         * math/auto-libm-test-in: Do not allow missing underflow
24413         exceptions from log1p.
24414         * math/auto-libm-test-out: Regenerated.
24415
24416 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
24417             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24418
24419         [BZ #16704]
24420         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
24421
24422 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
24423
24424         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
24425         (libmvec): New variable.
24426         * configure.ac: Added option for mathvec build.
24427         * configure: Regenerated.
24428         * mathvec/Depend: New file.
24429         * mathvec/Makefile: New file.
24430         * shlib-versions: Added libmvec.
24431         * math/Makefile: Added rule for libm.so installation.
24432
24433         * bits/math-vector.h: New file.
24434         * bits/libm-simd-decl-stubs.h: New header.
24435         * math/Makefile (headers): Added new header
24436         libm-simd-decl-stubs.h.
24437         * math/math.h (__MATHCALL_VEC): New macro.
24438
24439         * math/gen-libm-have-vector-test.sh: Script generates series of macros
24440         for conditions in testing functions.
24441         * math/Makefile: Added call of libm-have-vector-test.sh.
24442         * math/libm-test.inc (HAVE_VECTOR): New macros.
24443
24444         * math/libm-test.inc: START refactored.
24445         * math/test-double.c (TEST_MATHVEC): Add define.
24446         * math/test-float.c: Likewise.
24447         * math/test-idouble.c: Likewise.
24448         * math/test-ifloat.c: Likewise.
24449         * math/test-ildoubl.c: Likewise.
24450         * math/test-ldouble.c: Likewise.
24451         * sysdeps/generic/math-tests-arch.h
24452         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
24453         architecture check.
24454
24455         * math/test-double.c (FUNC_TEST): New macro.
24456         * math/test-float.c: Likewise.
24457         * math/test-idouble.c: Likewise.
24458         * math/test-ifloat.c: Likewise.
24459         * math/test-ildoubl.c: Likewise.
24460         * math/test-ldouble.c: Likewise.
24461         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
24462
24463 2015-05-13  Roland McGrath  <roland@hack.frob.com>
24464
24465         * sysdeps/nacl/fdopendir.c: New file.
24466
24467         * dirent/scandir-tail.c: New file.
24468         * dirent/scandir64-tail.c: New file.
24469         * dirent/Makefile (routines): Add them.
24470         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
24471         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
24472         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
24473         [!SCANDIR] (SCANDIR_TAIL): New macro.
24474         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
24475         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
24476         (SCANDIRAT): Macro removed.
24477         (SCANDIR_TAIL): New macro.
24478         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
24479         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
24480         (SCANDIRAT): Just call __opendirat and __scandir_tail.
24481         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
24482         (READDIR): Macro removed.
24483         (SCANDIR_TAIL): New macro.
24484         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
24485         (SCANDIR_TAIL): New macro.
24486
24487         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
24488         * dirent/scandir-cancel.c: ... to this new file.
24489         * dirent/Makefile (routines): Add it.
24490         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
24491         * sysdeps/unix/sysv/linux/i386/scandir64.c
24492         (SKIP_SCANDIR_CANCEL): Macro removed.
24493         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
24494
24495         * dirent/tst-scandir.c: New file.
24496         * dirent/tst-scandir64.c: New file.
24497         * dirent/Makefile (tests): Add them.
24498
24499 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
24500
24501         [BZ #18409]
24502         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
24503
24504 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24505
24506         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
24507         list.
24508
24509 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
24510
24511         * benchtests/bench-strcoll.c: New benchmark.
24512         * benchtests/Makefile: Generate locales and run benchmark.
24513         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
24514         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
24515         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
24516         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
24517         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
24518         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
24519         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
24520         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
24521         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
24522         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
24523         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
24524         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
24525         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
24526         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
24527         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
24528         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
24529         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
24530         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
24531         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
24532         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
24533         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
24534         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
24535         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
24536         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
24537
24538 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
24539
24540         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
24541         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24542
24543 2015-05-12  Roland McGrath  <roland@hack.frob.com>
24544
24545         * posix/uname-values.h: New file.
24546         * posix/uname.c: Include that instead of <config-name.h>.
24547         * sysdeps/nacl/uname-values.h: New file.
24548         * sysdeps/arm/nacl/uname-values.h: New file.
24549
24550 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
24551
24552         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
24553         splitting into fields.
24554
24555 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
24556
24557         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
24558         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
24559         * locale/localeinfo.h: Add enum collation_encoding_type.
24560         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
24561         * programs/ld-collate.c (collate_output): Add encoding type info.
24562         * string/strcoll_l.c (STRDIFF): New function.
24563         * (STRCOLL): Use STRDIFF to skip over equal prefix.
24564         * wcsmbs/wcscoll_l.c: Define STRDIFF.
24565
24566 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
24567
24568         [BZ #18397]
24569         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
24570         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
24571         <fpu_control.h> instead of <math/fpu_control.c>.
24572         * sysdeps/mips/mips32/fpu/Makefile: New file.
24573
24574 2015-05-11  Andreas Schwab  <schwab@suse.de>
24575
24576         [BZ #18007]
24577         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
24578         nss_endgrent.
24579         (_nss_compat_endgrent): Call nss_endgrent.
24580         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
24581         nss_endpwent.
24582         (_nss_compat_endpwent): Call nss_endpwent.
24583         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
24584         needent, call nss_setspent only if non-zero.
24585         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
24586         (internal_endspent): Don't call nss_endspent.
24587         (_nss_compat_endspent): Call nss_endspent.
24588         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
24589         Remove.  All uses removed.
24590         (internal_setent): Remove parameter stayopen, add parameter
24591         stream.  Use it instead of global variable.
24592         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
24593         (internal_endent, internal_getent): Add parameter stream.  Use it
24594         instead of global variable.
24595         (CONCAT(_nss_files_end,ENTNAME))
24596         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
24597         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
24598         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
24599         uses removed.
24600         (internal_setent, internal_endent): Add parameter stream.  Use it
24601         instead of global variable.
24602         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
24603         stream.
24604         (get_next_alias): Add parameter stream.
24605         (_nss_files_getaliasent_r): Pass global stream.
24606         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
24607         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
24608         (_nss_files_gethostbyname4_r): Pass local stream to
24609         internal_setent, internal_getent and internal_endent.  Remove
24610         locking.
24611
24612 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
24613
24614         * tst-strfmon1.c (tests): Update expected currency symbol.
24615
24616 2015-05-08  Roland McGrath  <roland@hack.frob.com>
24617
24618         * sysdeps/nacl/gethostname.c: New file.
24619
24620 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
24621
24622         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
24623         and sinh.
24624         * math/auto-libm-test-out: Regenerated.
24625         * sysdeps/i386/fpu/libm-test-ulps: Update.
24626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24627
24628 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
24629
24630         [BZ #18125]
24631         * stdlib/tst-setcontext3.c: New file.
24632         * stdlib/tst-setcontext3.sh: New file.
24633         * stdlib/Makefile (tests): Add tst-setcontext3.
24634         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
24635         to verify test program created output file.
24636         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
24637         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
24638         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
24639         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
24640
24641 2015-05-06  Roland McGrath  <roland@hack.frob.com>
24642
24643         [BZ #18383]
24644         * elf/tst-tlsalign.c: New file.
24645         * elf/tst-tlsalign-static.c: New file.
24646         * elf/tst-tlsalign-lib.c: New file.
24647         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
24648         (tests-static): Add tst-tlsalign-static.
24649         (modules-names): Add tst-tlsalign-lib.
24650         (test-xfail-tst-tlsalign): New variable.
24651         (test-xfail-tst-tlsalign-static): New variable.
24652
24653         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
24654         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
24655
24656 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
24657
24658         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
24659         csqrt, erfc, sin and sincos.
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 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24665
24666         * sysdeps/aarch64/libm-test-ulps: Update.
24667
24668 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
24669
24670         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
24671         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
24672         * math/auto-libm-test-out: Regenerated.
24673         * sysdeps/i386/fpu/libm-test-ulps: Update.
24674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24675
24676 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
24677
24678         [BZ #18265]
24679         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
24680         (wcsncpy): Likewise.
24681
24682 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24683
24684         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
24685         Assume __ASSUME_FALLOCATE is always true.
24686         * sysdeps/unix/sysv/linux/posix_fallocate64.c
24687         (__posix_fallocate64_l64): Likweise.
24688         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
24689         (posix_fallocate): Likewise.
24690         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
24691         (__posix_fallocate64_l64): Likewise.
24692         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
24693         [!__ASSUME_FALLOCATE]: Add comment.
24694
24695 2015-05-05  Florian Weimer  <fweimer@redhat.com>
24696
24697         * sysdeps/unix/sysv/linux/i386/Makefile
24698         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
24699         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
24700         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
24701         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24702         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24703         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
24704         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
24705
24706 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
24707
24708         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
24709         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
24710         tgamma.
24711         * math/auto-libm-test-out: Regenerated.
24712         * sysdeps/i386/fpu/libm-test-ulps: Update.
24713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24714
24715 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24716
24717         * math/auto-libm-test-in: Add more tests of tgamma.
24718         * math/auto-libm-test-out: Regenerated.
24719         * sysdeps/i386/fpu/libm-test-ulps: Update.
24720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24721
24722         * math/auto-libm-test-in: Add more tests of tanh.
24723         * math/auto-libm-test-out: Regenerated.
24724         * sysdeps/i386/fpu/libm-test-ulps: Update.
24725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24726
24727         * math/auto-libm-test-in: Add more tests of tan.
24728         * math/auto-libm-test-out: Regenerated.
24729         * sysdeps/i386/fpu/libm-test-ulps: Update.
24730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24731
24732         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
24733         * math/auto-libm-test-out: Regenerated.
24734         * sysdeps/i386/fpu/libm-test-ulps: Update.
24735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24736
24737         * math/auto-libm-test-in: Add another test of pow.
24738         * math/auto-libm-test-out: Regenerated.
24739         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24740
24741         * math/auto-libm-test-in: Add more tests of lgamma.
24742         * math/auto-libm-test-out: Regenerated.
24743         * sysdeps/i386/fpu/libm-test-ulps: Update.
24744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24745
24746         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
24747         log1p.
24748         * math/auto-libm-test-out: Regenerated.
24749         * sysdeps/i386/fpu/libm-test-ulps: Update.
24750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24751
24752 2015-05-01  Mark Wielaard  <mjw@redhat.com>
24753
24754         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
24755         Elf64_Chdr structs and ELFCOMPRESS constants.
24756
24757 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
24758
24759         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
24760         expm1.
24761         * math/auto-libm-test-out: Regenerated.
24762         * sysdeps/i386/fpu/libm-test-ulps: Update.
24763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24764
24765         * math/auto-libm-test-in: Add more tests of erf and erfc.
24766         * math/auto-libm-test-out: Regenerated.
24767         * sysdeps/i386/fpu/libm-test-ulps: Update.
24768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24769
24770 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24771
24772         * config.h.in (HAVE_AARCH64_BE): Add.
24773
24774 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
24775
24776         * math/auto-libm-test-in: Add more tests of csqrt.
24777         * math/auto-libm-test-out: Regenerated.
24778         * sysdeps/i386/fpu/libm-test-ulps: Update.
24779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24780
24781         * math/auto-libm-test-in: Add more tests of cosh and sinh.
24782         * math/auto-libm-test-out: Regenerated.
24783         * sysdeps/i386/fpu/libm-test-ulps: Update.
24784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24785
24786         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
24787
24788 2015-04-29  Roland McGrath  <roland@hack.frob.com>
24789
24790         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
24791         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
24792
24793         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
24794         (euidaccess, eaccess): Define as weak aliases.
24795
24796         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
24797         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
24798         but __suseconds_t is often 'long int' so some sources assume that
24799         type is being used (e.g. they use %ld to print tv_usec).
24800
24801 2015-04-29  Florian Weimer  <fweimer@redhat.com>
24802
24803         [BZ #18007]
24804         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
24805         (CVE-2014-8121)
24806         * nss/tst-nss-getpwent.c: New file.
24807         * nss/Makefile (tests): Add new test.
24808
24809 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
24810
24811         [BZ #18346]
24812         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
24813         exponents less than 48 as cases where high part of mantissa needs
24814         examining to determine whether argument is integral.
24815         * math/libm-test.inc (round_test_data): Add more tests.
24816
24817 2015-04-28  Mark Wielaard  <mjw@redhat.com>
24818
24819         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
24820
24821 2015-04-27  David S. Miller  <davem@davemloft.net>
24822
24823         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
24824         __tls_get_addr.
24825         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24826
24827 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
24828
24829         [BZ#18333]
24830         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
24831
24832 2015-04-27  Florian Weimer  <fweimer@redhat.com>
24833
24834         [BZ#18333]
24835         * time/tzset.c (parse_tzname): Return error on memory allocation
24836         failure.
24837         * test-skeleton.c (struct temp_name_list): Change type of name
24838         member to non-const.
24839         (add_temp_file): Create a copy of the file name.
24840         (delete_temp_files): Deallocate memory.
24841         (create_temp_file): Add comment.
24842
24843 2015-04-24  Florian Weimer  <fweimer@redhat.com>
24844
24845         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
24846         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
24847
24848 2015-04-24  Roland McGrath  <roland@hack.frob.com>
24849
24850         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
24851         * sysdeps/arm/configure: Regenerated.
24852
24853 2015-04-24  Florian Weimer  <fweimer@redhat.com>
24854
24855         [BZ #17715]
24856         * time/tzfile.c (__tzfile_read): Check for large values of
24857         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
24858         * time/tzset.c (__tzstring_len): New function, based on the old
24859         __tzstring function.
24860         (__tzstring): Call __tzstring_len.
24861         (parse_tzname): New helper function extracted from
24862         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
24863         the input string.
24864         (parse_offset): New helper function extracted from
24865         __tzset_parse_tz.  Replace switch with fallthrough with
24866         initialization before sscanf.
24867         (parse_rule): Likewise.
24868         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
24869         new-style function definition.
24870         * timezone/Makefile (tests): Add tst-tzset.
24871         (tst-tzset.out): Dependencies on time zone files.
24872         (tst-tzset-ENV): Set TZDIR.
24873         (testdata/XT%): Copy crafted time zone files.
24874         * timezone/README: Mention crafted time zone files.
24875         * timezone/testdata/XT1, timezone/testdata/XT2,
24876         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
24877         files.
24878         * timezone/tst-tzset.c: New test.
24879
24880 2015-04-24  Florian Weimer  <fweimer@redhat.com>
24881
24882         * Makeconfig (+gccwarn): Remove -Winline.
24883
24884 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
24885
24886         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
24887
24888 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
24889
24890         * NEWS: Mention sysconf() cache information support for s390.
24891         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
24892
24893 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
24894
24895         * math/k_casinh.c (__kernel_casinh): Use __copysign.
24896         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
24897         (__nearbyint): Likewise.
24898         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
24899         (copysignl): Likewise.
24900
24901 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
24902
24903         [BZ #18287]
24904         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
24905         based on padding.  (CVE-2015-1781)
24906
24907 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24908
24909         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
24910         libc-vdso.h.
24911         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
24912         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
24913         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
24914         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
24915         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
24916         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
24917         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
24918         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
24919         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
24920         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
24921         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
24922         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
24923         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
24924         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
24925         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
24926         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
24927         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
24928         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
24929         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
24930         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
24931         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
24932         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
24933         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
24934
24935 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24936
24937         * stdlib/setenv.c (__add_to_environ):
24938         Dump core quickly if setenv (..., NULL, ...) is called.
24939         This time, do it the right way, and pacify GCC with a pragma.
24940
24941 2015-04-17  Roland McGrath  <roland@hack.frob.com>
24942
24943         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
24944         IMAP->l_prev cannot be null, and #if out the code for the contrary
24945         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
24946         believe that NS (&_dl_ns[NSID]) could point outside the array.
24947
24948         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
24949         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
24950         before using NSID as an index.
24951
24952 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
24953
24954         [BZ #17825]
24955         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
24956         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
24957         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
24958
24959 2015-04-17  Roland McGrath  <roland@hack.frob.com>
24960
24961         Add preliminary port to Google Native Client on ARM.
24962         * abi-tags (.*-.*-nacl.*): New entry.
24963         * sysdeps/arm/nacl: New directory.
24964         * sysdeps/nacl: New directory.
24965
24966 2015-04-16  David S. Miller  <davem@davemloft.net>
24967
24968         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
24969         lowlevellock-futex.h
24970
24971 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
24972
24973         * sysdeps/tile/configure.ac: New file.
24974         * sysdeps/tile/configure: Regenerated.
24975
24976 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24977
24978         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
24979         conditionals for weak_alias and libc_hidden_weak.
24980         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
24981         libc_hidden_weak and weak_alias.
24982         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
24983         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
24984         and weak_alias for static one.
24985
24986 2015-04-15  David S. Miller  <davem@davemloft.net>
24987
24988         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
24989
24990 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24991
24992         [BZ #18206]
24993         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
24994           Use signed comparision instead of substraction to avoid
24995           overflow bug.
24996         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
24997           Take the sign of ret.
24998         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
24999           Do not expect precise return values. Only the sign matters.
25000         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
25001         * wcsmbs/test-wcsncmp.c: New File.
25002         * string/test-strncmp.c: Add wcsncmp support.
25003
25004 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25005
25006         [BZ #6792]
25007         * math/w_log1p.c: New file.
25008         * math/w_log1pf.c: Likewise.
25009         * math/w_log1pl.c: Likewise.
25010         * math/Makefile (libm-calls): Add w_log1p.
25011         * math/s_log1pl.c (log1pl): Remove weak_alias.
25012         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
25013         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
25014         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
25015         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
25016         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
25017         [NO_LONG_DOUBLE] (log1pl): Likewise.
25018         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
25019         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
25020         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
25021         (log1p): Remove long_double_symbol.
25022         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
25023         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
25024         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
25025         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
25026         remove weak_alias for corresponding log1p function.
25027         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
25028         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
25029         * sysdeps/ia64/fpu/w_log1p.c: New file.
25030         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
25031         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
25032         * math/libm-test.inc (log1p_test_data): Add errno expectations.
25033
25034 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
25035
25036         [BZ #18247]
25037         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
25038         decimal exponent by 1.
25039         * stdlib/tst-strtod-round-data: Add more tests.
25040         * stdlib/tst-strtod-round.c (tests): Regenerated.
25041
25042 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
25043
25044         * math/auto-libm-test-in: Add more tests of clog and clog10.
25045         * math/auto-libm-test-out: Regenerated.
25046         * sysdeps/i386/fpu/libm-test-ulps: Update.
25047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25048
25049 2015-04-09  Roland McGrath  <roland@hack.frob.com>
25050
25051         * Makeconfig (module-cppflags): Exclude all .v.i files.
25052         (skip-module-cppflags): Variable removed.
25053
25054         * configure.ac (libc_config_ok): Initialize before reading
25055         preconfigure scripts, not after.
25056         * configure: Regenerated.
25057
25058         * test-skeleton.c (TIMEOUT): Move #define to top level.
25059         (main): Grok environment variable TEST_DIRECT.  If set, print
25060         test expectation details into that file and then behave as if
25061         given --direct.
25062
25063 2015-04-09  Florian Weimer  <fweimer@redhat.com>
25064
25065         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
25066         warning on 32-bit.
25067
25068 2015-04-08  David S. Miller  <davem@davemloft.net>
25069
25070         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25071
25072 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25073
25074         * math/auto-libm-test-in: Add more tests of atanh.
25075         * math/auto-libm-test-out: Regenerated.
25076         * sysdeps/i386/fpu/libm-test-ulps: Update.
25077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25078
25079         * math/auto-libm-test-in: Add more tests of atan.
25080         * math/auto-libm-test-out: Regenerated.
25081         * sysdeps/i386/fpu/libm-test-ulps: Update.
25082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25083
25084 2015-04-08  Florian Weimer  <fweimer@redhat.com>
25085
25086         * elf/pldd.c (main): Rewrite to use struct
25087         scratch_buffer instead of extend_alloca.
25088         * elf/pldd-xx.c (find_maps): Likewise.
25089         * grp/initgroups.c: Include <scratch_buffer.h> instead of
25090         <alloca.h>.
25091         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
25092         scratch_buffer instead of extend_alloca.
25093         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
25094         grp/compat-initgroups.c.
25095         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
25096         Rewrite to use struct scratch_buffer instead of extend_alloca.
25097         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
25098         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25099
25100 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
25101
25102         * math/auto-libm-test-in: Add more tests of cbrt.
25103         * math/auto-libm-test-out: Regenerated.
25104         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25105
25106         * math/auto-libm-test-in: Add more tests of cabs.
25107         * math/auto-libm-test-out: Regenerated.
25108         * sysdeps/i386/fpu/libm-test-ulps: Update.
25109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25110
25111         [BZ #18210]
25112         [BZ #18211]
25113         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
25114         (__ieee754_atan2): Set FE_TONEAREST mode for internal
25115         computations.
25116         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
25117         clog10.
25118         * math/auto-libm-test-out: Regenerated.
25119         * sysdeps/i386/fpu/libm-test-ulps: Update.
25120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25121
25122         [BZ #18197]
25123         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
25124         (atan): Set FE_TONEAREST mode for internal computations.
25125         * math/auto-libm-test-in: Add more tests of atan.
25126         * math/auto-libm-test-out: Regenerated.
25127
25128 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
25129
25130         [BZ #17930]
25131         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
25132
25133 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25134
25135         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
25136
25137 2015-04-07  Florian Weimer  <fweimer@redhat.com>
25138
25139         * include/scratch_buffer.h: New file.
25140         * malloc/scratch_buffer_grow.c: Likewise.
25141         * malloc/scratch_buffer_grow_preserve.c: Likewise.
25142         * malloc/scratch_buffer_set_array_size.c: Likewise.
25143         * malloc/tst-scratch_buffer.c: Likewise.
25144         * malloc/Makefile (routines): Add scratch_buffer_grow.
25145         (tests): Add test case.
25146         * malloc/Versions (GLIBC_PRIVATE): Export
25147         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
25148         __libc_scratch_buffer_set_array_size.
25149
25150 2015-04-06  Richard Henderson  <rth@redhat.com>
25151
25152         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
25153         * sysdeps/alpha/fpu/libm-test-ulps: Update.
25154
25155         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
25156         unsigned int before printing.
25157
25158 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25159
25160         [BZ #17596]
25161         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
25162         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
25163
25164 2015-04-02  Florian Weimer  <fweimer@redhat.com>
25165
25166         * include/libc-internal.h (libc_max_align_t): Define.
25167
25168 2015-04-02  Andreas Schwab  <schwab@suse.de>
25169
25170         [BZ #16850]
25171         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
25172
25173 2015-04-02  Mel Gorman  <mgorman@suse.de>
25174
25175         [BZ #17195]
25176         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
25177         as well as the main arena.
25178
25179 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25180
25181         [BZ #18185]
25182         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
25183         sharing L2 cache to 2 for Silvermont/Knights Landing.
25184
25185 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25186
25187         [BZ #17711]
25188         * config.make.in (have-protected-data): New.
25189         * configure.ac: Check linker support for protected data symbol.
25190         * configure: Regenerated.
25191         * elf/Makefile (modules-names): Add tst-protected1moda and
25192         tst-protected1modb if $(have-protected-data) is yes.
25193         (tests): Add tst-protected1a and tst-protected1b if
25194         $(have-protected-data) is yes.
25195         ($(objpfx)tst-protected1a): New.
25196         ($(objpfx)tst-protected1b): Likewise.
25197         (tst-protected1modb.so-no-z-defs): Likewise.
25198         * elf/tst-protected1a.c: New file.
25199         * elf/tst-protected1b.c: Likewise.
25200         * elf/tst-protected1mod.h: Likewise.
25201         * elf/tst-protected1moda.c: Likewise.
25202         * elf/tst-protected1modb.c: Likewise.
25203
25204 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
25205
25206         [BZ #17711]
25207         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
25208         indicates it is called from do_lookup_x on relocation against
25209         protected data, skip the data definion in the executable from
25210         copy reloc.
25211         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
25212         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
25213         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
25214         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
25215         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
25216         otherwise to 0.
25217         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25218         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
25219         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
25220         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
25221         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
25222         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
25223
25224 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
25225
25226         * sysdeps/nptl/pthread.h: Remove duplicate definition of
25227         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
25228
25229 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
25230
25231         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
25232         THREAD_SETMEM_NC.
25233         * sysdeps/x86_64/nptl/tls.h: Ditto.
25234
25235 2015-03-27  Roland McGrath  <roland@hack.frob.com>
25236
25237         * dlfcn/tststatic.c (main): Converted to ...
25238         (do_test): ... this.
25239         (TEST_FUNCTION): New macro.
25240         Include test-skeleton.c.
25241
25242 2015-03-26  Alan Modra  <amodra@gmail.com>
25243
25244         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
25245         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
25246         zero for undefined weak.
25247         (elf_machine_plt_conflict): Similarly.
25248
25249 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25250
25251         * math/auto-libm-test-in: Add more tests of acosh, asinh and
25252         atanh.
25253         * math/auto-libm-test-out: Regenerated.
25254         * sysdeps/i386/fpu/libm-test-ulps: Update.
25255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25256
25257         * math/auto-libm-test-in: Add another test of asin.
25258         * math/auto-libm-test-out: Regenerated.
25259         * sysdeps/i386/fpu/libm-test-ulps: Update.
25260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25261
25262         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
25263         Remove macro.
25264         (LLL_EBX_REG): Likewise.
25265         (LLL_ENTER_KERNEL): Likewise.
25266
25267         * math/auto-libm-test-in: Add more tests of asin.
25268         * math/auto-libm-test-out: Regenerated.
25269         * sysdeps/i386/fpu/libm-test-ulps: Update.
25270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25271
25272         [BZ #18138]
25273         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
25274         libc_do_syscall_args): New structure.
25275         (INTERNAL_SYSCALL_MAIN_0): New macro.
25276         (INTERNAL_SYSCALL_MAIN_1): Likewise.
25277         (INTERNAL_SYSCALL_MAIN_2): Likewise.
25278         (INTERNAL_SYSCALL_MAIN_3): Likewise.
25279         (INTERNAL_SYSCALL_MAIN_4): Likewise.
25280         (INTERNAL_SYSCALL_MAIN_5): Likewise.
25281         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
25282         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
25283         Replace conditional definitions by conditional definitions of ....
25284         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
25285         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
25286         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
25287         (libpthread-sysdep_routines): Add libc-do-syscall.
25288         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
25289         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
25290         to __NR_futex not 240.
25291
25292 2015-03-25  Alan Modra  <amodra@gmail.com>
25293
25294         * NEWS: Advertise TLS optimization.
25295         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
25296         (DT_PPC_NUM): Increment.
25297         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
25298         (CHECK_STATIC_TLS): Use here.
25299         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
25300         TLS descriptors.
25301         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
25302         * sysdeps/powerpc/dl-tls.c: New file.
25303         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
25304         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
25305         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
25306         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
25307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
25308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
25309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
25310
25311 2015-03-25  Alan Modra  <amodra@gmail.com>
25312
25313         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
25314         for overlapping .opd entries" to "support...".
25315         * sysdeps/powerpc/powerpc64/configure: Regenerate
25316
25317 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
25318
25319         * math/auto-libm-test-in: Add more tests of acos.
25320         * math/auto-libm-test-out: Regenerated.
25321         * sysdeps/i386/fpu/libm-test-ulps: Update.
25322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25323
25324         * math/auto-libm-test-in: Add more tests of expm1.
25325         * math/auto-libm-test-out: Regenerated.
25326         * sysdeps/i386/fpu/libm-test-ulps: Update.
25327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25328
25329 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
25330
25331         * math/auto-libm-test-in: Add more tests of cosh and sinh.
25332         * math/auto-libm-test-out: Regenerated.
25333         * sysdeps/i386/fpu/libm-test-ulps: Update.
25334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25335
25336         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25338
25339         * math/auto-libm-test-in: Add more tests of log2.
25340         * math/auto-libm-test-out: Regenerated.
25341         * sysdeps/i386/fpu/libm-test-ulps: Update.
25342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25343
25344 2015-03-23  Roland McGrath  <roland@hack.frob.com>
25345
25346         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
25347         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
25348         _IO_IS_APPENDING bit in READ_WRITE instead.
25349
25350 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25351
25352         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
25353         (__determine_cpumask_size): Replace extend_alloca with a
25354         variable-length array.  Do not treat res == 0 as an error.
25355
25356 2015-03-23  Florian Weimer  <fweimer@redhat.com>
25357
25358         [BZ #18100]
25359         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
25360         and integer overflow.
25361         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
25362         (main): Add integer overflow tests.
25363         * manual/pattern.texi (Calling Wordexp): Document additional use
25364         for WRDE_SYNTAX.
25365
25366 2015-03-23  Alan Modra  <amodra@gmail.com>
25367
25368         * config.h.in: Remove HAVE_ASM_PPC_REL16.
25369         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
25370         and false branch of conditional.
25371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
25372         Likewise.
25373
25374 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
25375
25376         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
25377         libc-modules.h
25378         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
25379         unused declaration of _hurd_intr_rpc_msg_in_trap.
25380         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
25381         defined instead of whether it is non-zero.
25382         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
25383         input constraint instead of both input and output constraint.  Use ecx
25384         clobber instead of %ecx.
25385         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
25386         mutex_unlock): Use a statement expression instead of an expression list.
25387         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
25388         type to vm_size_t instead of vm_address_t.
25389         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
25390         defined instead of whether it is non-zero.
25391         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
25392         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
25393         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
25394         comparisons with mapaddr.
25395         * nscd/nscd-client.h: Include <time.h>.
25396         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
25397         9th parameter to __vm_region instead of int.
25398         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
25399         * scripts/check-local-headers.sh (exclude): Add device/,
25400         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
25401         cthreads.h.
25402
25403 2015-03-19  Roland McGrath  <roland@hack.frob.com>
25404
25405         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
25406         to account for alignment padding.
25407         * sysdeps/arm/memmove.S: Likewise.
25408
25409 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
25410
25411         * sysdeps/unix/sysv/linux/generic/README: New file.
25412
25413 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
25414
25415         [BZ #18138]
25416         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
25417         (futex_abstimed_wait)
25418         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
25419         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
25420         of lll_futex_timed_wait.
25421
25422 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
25423
25424         [BZ #17542]
25425         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
25426
25427 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
25428
25429         [BZ #17090]
25430         [BZ #17620]
25431         [BZ #17621]
25432         [BZ #17628]
25433         * NEWS: Update.
25434         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
25435         entries with Static TLS too.  Skip entries past the end of the
25436         allocated DTV, from Alan Modra.
25437         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
25438         Static TLS DTV entry set up from...
25439         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
25440         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
25441         * nptl/allocatestack.c (init_one_static_tls): ... and here...
25442         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
25443         for Static TLS.
25444         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
25445         that the slot we find is associated with the given map before
25446         using its generation count.
25447         * nptl_db/db_info.c: Include ldsodefs.h.
25448         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
25449         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
25450         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
25451         (link_map::l_tls_offset): New struct field.
25452         (dtv_t::counter): Likewise.
25453         (rtld_global): New struct.
25454         (_rtld_global): New rtld variable.
25455         (dl_tls_dtv_slotinfo_list): New rtld global field.
25456         (dtv_slotinfo_list): New struct.
25457         (dtv_slotinfo): Likewise.
25458         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
25459         (td_lookup): Rename to...
25460         (td_mod_lookup): ... this.  Use new mod parameter instead of
25461         LIBPTHREAD_SO.
25462         * nptl_db/td_thr_tlsbase.c: Include link.h.
25463         (dtv_slotinfo_list, dtv_slotinfo): New functions.
25464         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
25465         addresses even if the DTV is out of date or missing them.
25466         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
25467         index zero-length arrays.
25468         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
25469         (td_lookup): Make it a macro implemented in terms of...
25470         (td_mod_lookup): ... this declaration.
25471         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
25472         (DB_MAIN_VARIABLE): Likewise.
25473
25474 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25475
25476         [BZ #18134]
25477         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
25478
25479 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25480
25481         * stdlib/setenv.c (__add_to_environ): Revert previous change.
25482
25483 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
25484
25485         [BZ #18128]
25486         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
25487         (atomic_add, atomic_increment_and_test)
25488         (atomic_decrement_and_test): Fix 64-bit arithmetic.
25489
25490 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25491
25492         * stdlib/setenv.c (__add_to_environ):
25493         Dump core quickly if setenv (..., NULL, ...) is called.
25494
25495 2015-03-13  Roland McGrath  <roland@hack.frob.com>
25496
25497         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
25498         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
25499         all the necessary asm magic in one place.
25500         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
25501         using those.
25502
25503 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
25504
25505         [BZ #14906]
25506         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
25507         traced file mtime. Use consistent log message.
25508         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
25509         (register_traced_file): Call install_watches. Always set mtime.
25510         (invalidate_cache): Iterate over all trace files. Call install_watches.
25511         (inotify_check_files): Don't inline. Handle watching parent
25512         directories and configuration file movement in and out.
25513         (handle_inotify_events): New function.
25514         (main_loop_poll): Call handle_inotify_events.
25515         (main_loop_epoll): Likewise.
25516         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
25517         (struct traced_file): Use array of inotify fds. Add parent directory,
25518         and basename.
25519         (struct database_dyn): Remove unused file_mtime.
25520         (init_traced_file): New inline function.
25521         (define_traced_file): New macro.
25522         * nss/nss_db/db-init.c: Use define_traced_file.
25523         (_nss_db_init): Use init_traced_file.
25524         * nss/nss_files/files-init.c: Use define_traced_file.
25525         (_nss_files_init): Use init_traced_file.
25526
25527 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
25528
25529         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
25530         [_LIBC]: Do not include <stdlib.h>.
25531         [!_LIBC] (abort): Remove declaration.
25532         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
25533         _FP_STATIC_ASSERT instead of conditionally calling abort.
25534         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
25535         (_FP_EXTEND_CNAN): Likewise.
25536         (FP_TRUNC): Likewise.
25537         (__FP_CLZ): Likewise.
25538         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
25539
25540 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
25541
25542         * manual/string.texi (XPG basename): Fix prototype.
25543
25544 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25545
25546         [BZ #18080]
25547         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
25548         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25549         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
25550         (__setcontext): Likewise.
25551         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
25552         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
25553         Call rt_sigprocmask syscall one time to set new signal mask
25554         and retrieve the current signal mask instead of two calls.
25555         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
25556         (__swapcontext): Likewise.
25557         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
25558         * stdlib/tst-setcontext2.c: New file.
25559
25560 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
25561
25562         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
25563
25564 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
25565
25566         [BZ #18093]
25567         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
25568         the wrong size.
25569
25570 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
25571
25572         [BZ #18043]
25573         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
25574
25575 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25576
25577         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
25578         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
25579         Remove define.
25580         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
25581         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
25582         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
25583         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
25584         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
25585         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
25586         define.
25587         * nptl_db/td_symbol_list.c (td_lookup): Remove
25588         HAVE_ASM_GLOBAL_DOT_NAME code.
25589         * sysdeps/powerpc/powerpc64/configure.ac: Remove
25590         HAVE_ASM_GLOBAL_DOT_NAME check.
25591         * sysdeps/powerpc/powerpc64/configure: Regenerate.
25592         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
25593         (DOT_LABEL): Remove define.
25594         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
25595         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
25596         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
25597         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
25598         (__TLS_GET_ADDR): Likewise.
25599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
25600         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
25601
25602 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
25603
25604         [BZ #18111]
25605         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
25606         (_FPU_SETCW): Initialize cw from fpsr before storing.
25607         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
25608         (fesetexceptflag): Rewrite using fpu_control.h.
25609         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
25610
25611 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
25612
25613         [BZ #18110]
25614         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
25615         asms.
25616         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
25617
25618 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
25619
25620         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
25621         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
25622         abort.
25623         (_FP_FMA): Likewise.
25624         (_FP_DIV): Likewise.
25625
25626 2015-03-10  Roland McGrath  <roland@hack.frob.com>
25627
25628         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
25629         with 0 in that case.
25630         * Makefile (summarize-tests): New canned sequence, factored out of
25631         commands for targets tests and xtests.  Display summary lines that
25632         don't start with PASS: or XFAIL: rather than ones that do start with
25633         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
25634         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
25635         do start with ERROR: or FAIL:.
25636         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
25637         (except for [$(build-shared) = yes]).
25638         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
25639         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
25640         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
25641         * nptl/Makefile: Revert 2015-03-04 changes.
25642         [$(CXX) empty] (tests-unsupported): New variable.
25643         * debug/Makefile: Likewise.
25644
25645         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
25646         gnulib file.  Replace __attribute with __attribute__ throughout.
25647
25648 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
25649
25650         * sysdeps/hppa/fpu/libm-test-ulps: Update.
25651
25652 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25653
25654         [BZ #18104]
25655         * math/auto-libm-test-in: Add another test of pow.
25656         * math/auto-libm-test-out: Regenerated.
25657
25658 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25659
25660         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
25661         $(config-cflags-nofma).
25662
25663 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
25664
25665         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
25666         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
25667         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
25668         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
25669         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
25670         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
25671         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
25672         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
25673         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
25674         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
25675         Add comment on closing #endif.
25676
25677 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25678
25679         * posix/wordexp.c (CHAR_IN_SET): New macro.
25680         (parse_param): Use it.
25681
25682 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25683
25684         * sysdeps/powerpc/fpu/libm-test-ulps: update.
25685
25686 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25687
25688         [BZ #18043]
25689         * posix/wordexp.c (parse_param): Fix buffer overflow.
25690         * posix/wordexp-test.c (test_case): Add test case.
25691
25692 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25693
25694         [BZ #18042]
25695         * posix/wordexp.c (parse_backtick): Fix off-by-one.
25696         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
25697
25698 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
25699
25700         [BZ #18043]
25701         * posix/wordexp-test.c (test_case): Add test for BZ #18043
25702         (do_bz18043): Delete.
25703         (at_page_end): New.
25704         (testit): Refactor to have words at the edge of unreadable page.
25705
25706 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
25707
25708         [BZ #16734]
25709         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
25710         Cleanup read-only streams as well.
25711         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
25712
25713 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25714
25715         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
25716         <bits/libc-lockP.h>
25717
25718 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
25719
25720         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
25721         on [__KERNEL__].
25722         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
25723         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
25724         * soft-fp/op-common.h (_FP_DECL): Likewise.
25725
25726 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
25727
25728         * elf/ifuncdep2.c (global): Replace
25729         __attribute__((visibility("protected"))) with
25730         asm (".protected global").
25731         * elf/ifuncmod1.c (global): Likewise.
25732         * elf/ifuncmod5.c (global): Likewise.
25733
25734 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
25735
25736         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
25737         <asm/sfp-machine.h> instead of <sfp-machine.h>.
25738
25739 2015-03-06  Roland McGrath  <roland@hack.frob.com>
25740
25741         * manual/install.texi (Configuring and compiling):
25742         Document test-wrapper-env-only.
25743         * INSTALL: Regenerated.
25744
25745 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
25746
25747         [BZ #18043]
25748         * posix/wordexp.c (parse_param): Fix buffer overflow.
25749         * posix/wordexp-test.c (do_bz18043): Add test case.
25750
25751 2015-03-06  Vincent Bernat  <vincent@bernat.im>
25752
25753         * time/tst-strptime2.c (do_test): Ensure failing tests are
25754         reported correctly.
25755         * time/tst-strptime3.c (do_test): Likewise.
25756
25757 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
25758
25759         Fix aio_error thread-safety.
25760         * sysdeps/pthread/aio_error.c: New file
25761         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
25762         synchronization.
25763
25764 2015-03-06  Florian Weimer  <fweimer@redhat.com>
25765
25766         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
25767         (group_number, vfprintf): Use it.
25768         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
25769         (JUMP, REF): Use it.
25770         (WORK_BUFFER_SIZE): New enum constant.
25771         (process_arg, vfprintf): Use it.
25772
25773 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
25774
25775         * manual/errno.texi (Error Messages): Complete example function
25776         by adding missing #define.
25777         (program_invocation_name): Add statement indicating GNU
25778         extension and reference which header file declares the variable.
25779         (program_invocation_short_name): Likewise.
25780
25781 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
25782
25783         * manual/errno.texi (Error Messages): Delete strerror ISO C89
25784         compatibility note.
25785
25786 2015-03-05  Roland McGrath  <roland@hack.frob.com>
25787
25788         * Makeconfig (test-wrapper-env-only): New variable.
25789         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
25790         then use that with $(test-wrapper-env-only) rather than using
25791         $(test-wrapper-env) $(run-program-env) $($*-ENV).
25792
25793 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25794
25795         [BZ #18082]
25796         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
25797         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
25798         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
25799         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
25800         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
25801         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
25802         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
25803         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
25804         Likewise.
25805         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
25806         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
25807         Likewise.
25808         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
25809         Likewise.
25810         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
25811         Likewise.
25812         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
25813         Likewise.
25814         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
25815         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
25816         Likewise.
25817         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
25818         Likewise.
25819         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
25820         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
25821
25822 2015-03-04  Roland McGrath  <roland@hack.frob.com>
25823
25824         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
25825         (ETH_ALEN): New macro.
25826         (struct ether_addr): Use it for length of ether_addr_octet.
25827
25828         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
25829         (setdb): Don't call __nss_configure_lookup for "rpc".
25830         (do_test): Don't call test_rpc.
25831         (output_rpcent, test_rpc): Functions moved ...
25832         * sunrpc/test-rpcent.c: ... to this new file.
25833         * sunrpc/Makefile (tests): Add it.
25834
25835         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
25836         __xpg_sigpause.
25837         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
25838         * nptl/tst-signal6.c: Likewise.
25839         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
25840         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
25841
25842         * configure.ac (libc_cv_cxx_link_ok): New check.
25843         Reset CXX to empty if it fails to link.
25844         * configure: Regenerated.
25845         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
25846         bug-atexit3-lib only if $(CXX) is nonempty.
25847         * nptl/Makefile (tests): Likewise for tst-cancel24.
25848         (tests, tests-static): Likewise for tst-cancel24-static.
25849         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
25850         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
25851         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
25852         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
25853
25854 2015-03-04  Andreas Schwab  <schwab@suse.de>
25855
25856         [BZ #17631]
25857         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
25858         for non-GCC compilers.
25859         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
25860         Likewise.
25861
25862 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
25863
25864         [BZ #17776]
25865         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
25866         integer before bitwise and assembly operations.
25867         (feclearexcept): Likewise.
25868         * math/test-fenvinline.c: New file.
25869         * math/Makefile: Add test-fenvinline test.
25870
25871 2015-03-03  Alan Modra  <amodra@gmail.com>
25872
25873         [BZ #16512]
25874         * scripts/localplt.awk: Strip off symbol version.
25875         * NEWS: Mention bug fix.
25876
25877 2015-03-02  Roland McGrath  <roland@hack.frob.com>
25878
25879         * sysdeps/pthread/timer_routines.c
25880         (timer_free_list, thread_free_list, thread_active_list): Make static.
25881
25882 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
25883
25884         [BZ #17779]
25885         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
25886         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
25887         Undefine.
25888         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
25889         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
25890         Likewise.
25891         * sysdeps/unix/sysv/linux/sh/kernel-features.h
25892         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
25893         Likewise.
25894
25895 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
25896
25897         [BZ #18036]
25898         * posix/fnmatch_loop.c (END): Detect invalid pattern.
25899         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
25900
25901 2015-03-02  Andreas Schwab  <schwab@suse.de>
25902
25903         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
25904         variable name.
25905
25906 2015-03-02  Florian Weimer  <fweimer@redhat.com>
25907
25908         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
25909         Return error status.
25910
25911 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
25912
25913         [BZ #15969]
25914         * locale/findlocale.c (_nl_find_locale): Introduce const
25915         version of loc_name and drop unsafe type casts.
25916
25917 2015-02-27  Roland McGrath  <roland@hack.frob.com>
25918
25919         * dlfcn/tststatic2.c (main): Converted to ...
25920         (do_test): ... this.
25921         (TEST_FUNCTION): New macro.
25922         Include test-skeleton.c.
25923
25924 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
25925
25926         [BZ #17711]
25927         * elf/Makefile (tests): Add vismain only if PIE is enabled.
25928         (tests-pie): Add vismain.
25929         (CFLAGS-vismain.c): New.
25930         * elf/vismain.c: Add comments for PIE requirement.
25931
25932 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
25933
25934         [BZ #18046]
25935         [BZ #18047]
25936         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
25937         0x1p-56L as threshold for just returning the argument.
25938         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
25939         0x1p-32L as threshold for just returning the argument.
25940         * math/auto-libm-test-in: Add more tests of atanh.
25941         * math/auto-libm-test-out: Regenerated.
25942         * sysdeps/i386/fpu/libm-test-ulps: Update.
25943         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
25944
25945 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
25946
25947         * string/bcopy.c (bcopy): Call memmove for performance.
25948
25949 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
25950
25951         * string/bzero.c (__bzero): Call memset for performance.
25952
25953 2015-02-27  John David Anglin  <dave.anglin@bell.net>
25954
25955         [BZ #18068]
25956         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
25957         to 00100000.
25958
25959 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
25960
25961         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
25962
25963 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
25964
25965         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
25966         (__kernel_standard): Use CSTR macro when setting exc.name.
25967         * sysdeps/ieee754/Makefile [$(subdir) = math]
25968         (CFLAGS-k_standard.c): Remove variable.
25969
25970         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
25971         setting p and q from "else if" to "else".
25972         (qzero): Likewise.
25973         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
25974         (qone): Likewise.
25975         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
25976         (qzerof): Likewise.
25977         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
25978         (qonef): Likewise.
25979         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
25980         (qzero): Likewise.
25981         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
25982         (qone): Likewise.
25983
25984         [BZ #18038]
25985         [BZ #18039]
25986         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
25987         return pi/2 for arguments below 0x1p-113L.
25988         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
25989         return pi/2 for arguments below 0x1p-106L.
25990         * math/auto-libm-test-in: Add more tests of acos.
25991         * math/auto-libm-test-out: Regenerated.
25992
25993         [BZ #16351]
25994         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
25995         (MO): New macro.
25996         (__ieee754_asin): Force underflow exception for results with small
25997         absolute value.
25998         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
25999         (MO): New macro.
26000         (__ieee754_asinf): Force underflow exception for results with
26001         small absolute value.
26002         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
26003         (__ieee754_asin): Force underflow exception for results with small
26004         absolute value.
26005         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
26006         (__ieee754_asinf): Force underflow exception for results with
26007         small absolute value.
26008         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
26009         (__ieee754_asinl): Force underflow exception for results with
26010         small absolute value.
26011         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
26012         (__ieee754_asinl): Force underflow exception for results with
26013         small absolute value.
26014         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
26015         (__ieee754_asinl): Force underflow exception for results with
26016         small absolute value.
26017         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
26018         Include <math.h>.
26019         * math/auto-libm-test-in: Do not mark underflow exceptions as
26020         possibly missing for bug 16351.
26021         * math/auto-libm-test-out: Regenerated.
26022
26023         [BZ #18030]
26024         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
26025         of power of 2 down when low part has opposite sign.
26026         * math/libm-test.inc (logb_test_data): Add more tests.
26027
26028 2015-02-26  Andreas Schwab  <schwab@suse.de>
26029
26030         [BZ #18032]
26031         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
26032         over collating symbol inside a bracket expression.  Minor cleanup.
26033         * posix/tst-fnmatch3.c (do_test): Add test case.
26034
26035 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
26036
26037         [BZ #18029]
26038         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
26039         Adjust exponent of power of 2 down when low part has opposite
26040         sign.
26041         * math/libm-test.inc (ilogb_test_data): Add more tests.
26042
26043 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
26044
26045         [BZ #15969]
26046         * locale/findlocale.c (_nl_find_locale): Fix constness error in
26047         the previous change.
26048
26049         [BZ #15969]
26050         * locale/findlocale.c (_nl_find_locale): Retry archive search
26051         after alias expansion.
26052
26053 2015-02-25  Roland McGrath  <roland@hack.frob.com>
26054
26055         * iconv/tst-iconv3.c (main): Converted to ...
26056         (do_test): ... this.
26057         (TEST_FUNCTION): New macro.
26058         Include test-skeleton.c.
26059
26060         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
26061         (convert): Make function static.
26062         (test_unalign): Likewise.  Add const to argument pointee types.
26063         (main): Replace with static function do_test.
26064         Print "Succeeded." only if RET is zero.
26065         (TEST_FUNCTION): New macro.
26066         Include test-skeleton.c.
26067
26068         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
26069         returns a null pointer.
26070
26071 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26072
26073         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
26074         to __memcpy_ppc only for static builds.
26075
26076 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
26077
26078         [BZ #18020]
26079         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
26080         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
26081         * math/auto-libm-test-in: Add more tests of asinh.
26082         * math/auto-libm-test-out: Regenerated.
26083         * sysdeps/i386/fpu/libm-test-ulps: Update.
26084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26085
26086 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
26087
26088         [BZ #15850]
26089         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
26090         and ip6_mtuinfo definitions here.
26091         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
26092         in this define too.  Update comment.
26093
26094 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
26095
26096         * elf/sprof.c (load_shobj): Tweak error message to match others.
26097
26098 2015-02-24  Kevin Easton  <kevin@guarana.org>
26099
26100         [BZ #16145] (partial fix)
26101         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
26102         to reduce lock contention.
26103
26104 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
26105
26106         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
26107         (struct timex): Update time comment.
26108         (ADJ_SETOFFSET): Define.
26109
26110 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26111
26112         [BZ #18019]
26113         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
26114         2**56 not 2**28 as threshold for log (2x) formula.
26115         * math/auto-libm-test-in: Add more tests of acosh.
26116         * math/auto-libm-test-out: Regenerated.
26117         * sysdeps/i386/fpu/libm-test-ulps: Update.
26118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26119
26120 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26121
26122         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
26123         parenthesis around the buf assignment.
26124         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
26125
26126 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
26127
26128         [BZ #16783]
26129         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
26130         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
26131         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
26132         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26133         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
26134         * math/libm-test.inc (scalb_test_data): Add more tests.
26135
26136 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
26137
26138         [BZ #17916]
26139         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
26140         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
26141
26142 2015-02-24  Eric Rannaud  <e@nanocritical.com>
26143
26144         [BZ #17523]
26145         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
26146         * io/bits/fcntl2.h (open): Use it.
26147         (openat): Likewise.
26148         * io/open.c (__libc_open): Likewise.
26149         * io/open64.c (__libc_open64): Likewise.
26150         * io/open64_2.c (__open64_2): Likewise.
26151         * io/open_2.c (__open_2): Likewise.
26152         * io/openat.c (__openat): Likewise.
26153         * io/openat64.c (__openat64): Likewise.
26154         * io/openat64_2.c (__openat64_2): Likewise.
26155         * io/openat_2.c (__openat_2): Likewise.
26156         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
26157         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
26158         * sysdeps/posix/open64.c (__libc_open64): Likewise.
26159         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
26160         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
26161         (__open_nocancel): Likewise.
26162         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
26163         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
26164         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
26165
26166 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26167
26168         [BZ #14841]
26169         * resolv/gethnamaddr.c (getanswer): Skip logging if
26170         RES_USE_DNSSEC is set.
26171         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
26172
26173 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
26174
26175         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
26176
26177 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
26178
26179         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
26180         201304L, for Unicode 7.
26181
26182 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
26183
26184         [BZ #17836]
26185         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
26186         shared library.  Add gmon-start.os otherwise.
26187         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
26188         $(objpfx)gmon-start.os if builing shared library.
26189         ($(objpfx)g$(static-start-installed-name)): Likewise.
26190
26191 2015-02-23  Andreas Schwab  <schwab@suse.de>
26192
26193         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
26194
26195 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
26196
26197         [BZ #17269]
26198         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
26199         (enlarge_userbuf): Likewise.
26200
26201 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
26202
26203         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
26204         * math/atest-exp.c (TIMEOUT): Adjust to 200.
26205         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
26206         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
26207
26208 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
26209
26210         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
26211         expression inside statement expression.
26212
26213 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
26214
26215         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
26216         <sysdeps/nptl/lowlevellock.h> and remove macros and
26217         functions that are now defined there.
26218         (SYS_futex): Remove.
26219         (lll_compare_and_swap): Remove.
26220         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
26221
26222 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
26223
26224         [BZ #17999]
26225         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
26226         instead of scandirat.
26227         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
26228         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
26229         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
26230         __scandirat.
26231         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
26232         (__scandirat): Declare.  Use libc_hidden_proto.
26233         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
26234         Remove variable.
26235         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
26236
26237 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26238
26239         [BZ #15319]
26240         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
26241         (MO): New macro.
26242         (__ieee754_atan2): For results with small absolute value, force
26243         underflow exception and remove excess range and precision from
26244         return value.
26245         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
26246         (MO): New macro.
26247         (__ieee754_atan2f): For results with small absolute value, force
26248         underflow exception and remove excess range and precision from
26249         return value.
26250         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
26251         (MO): New macro.
26252         (__atan): For results with small absolute value, force underflow
26253         exception and remove excess range and precision from return value.
26254         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
26255         (MO): New macro.
26256         (__atanf): For results with small absolute value, force underflow
26257         exception and remove excess range and precision from return value.
26258         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
26259         <math.h>.
26260         (__ieee754_atan2): Force underflow exception for results with
26261         small absolute value.
26262         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
26263         <math_private.h>.
26264         (atan): Force underflow exception for results with small absolute
26265         value.
26266         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
26267         (__atanf): Force underflow exception for results with small
26268         absolute value.
26269         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
26270         <math.h>.
26271         (__atanl): Force underflow exception for results with small
26272         absolute value.
26273         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
26274         (__atanl): Force underflow exception for results with small
26275         absolute value.
26276         * sysdeps/x86/fpu/bits/mathinline.h
26277         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
26278         (__ieee754_atan2): Only define inline for long double.
26279         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
26280         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
26281         * math/auto-libm-test-in: Do not mark underflow exceptions as
26282         possibly missing for bug 15319.  Add more tests of atan2.
26283         * math/auto-libm-test-out: Regenerated.
26284         * math/libm-test.inc (casin_test_data): Do not mark underflow
26285         exceptions as possibly missing for bug 15319.
26286         (casinh_test_data): Likewise.
26287         * sysdeps/i386/fpu/libm-test-ulps: Update.
26288
26289 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
26290
26291         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
26292         * sysdeps/mips/bits/endian.h: Fix comments.
26293
26294 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
26295
26296         [BZ #17996]
26297         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
26298         (hdestroy_r): Likewise.
26299         (hsearch_r): Likewise.
26300         (__hcreate_r): Declare and use libc_hidden_proto.
26301         (__hdestroy_r): Likewise.
26302         (__hsearch_r): Likewise.
26303         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
26304         (hcreate): Call __hcreate_r instead of hcreate_r.
26305         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
26306         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
26307         as weak alias of __hcreate_r.
26308         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
26309         __hdestroy_r.
26310         (hsearch_r): Rename to __hsearch_r and define as weak alias of
26311         __hsearch_r.
26312         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
26313         Remove variable.
26314         (test-xfail-XPG4/search.h/linknamespace): Likewise.
26315         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
26316         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
26317         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
26318
26319 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26320
26321         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
26322         arena_lock into a single arena_get.
26323
26324 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
26325
26326         * dl-reloc.c: Inlucde libc-internal.h.
26327         (_dl_try_allocate_static_tls): Call ALIGN_UP.
26328         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
26329         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
26330         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
26331         (grow_heap): Likewise.
26332         * malloc/malloc.c: Include libc-internal.h.
26333         (do_check_malloc): Call powerof2.
26334         (sysmalloc): Use pagesize. Call ALIGN_UP.
26335         (systrim): Use pagesize.
26336         (mremap_chunk): Use pagesize. Call ALIGN_UP.
26337         (__libc_valloc): Use pagesize.
26338         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
26339
26340 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26341
26342         [BZ #17991]
26343         * include/sys/resource.h (__getrlimit64): Declare.  Use
26344         libc_hidden_proto.
26345         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
26346         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
26347         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
26348         getrlimit64.
26349         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
26350         __getrlimit64.
26351         [!getrlimit64] (getrlimit64): Define as weak alias of
26352         __getrlimit64.  Use libc_hidden_weak.
26353         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
26354         using __getrlimit64 not __new_getrlimit64.
26355         (__GI_getrlimit64): Likewise.
26356         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
26357         Likewise.
26358         (__GI_getrlimit64): Likewise.
26359         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
26360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
26361         (getrlimit): Add __getrlimit64 alias.
26362         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
26363         Likewise.
26364         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
26365         Remove variable.
26366         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
26367         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
26368
26369 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
26370
26371         * libio/fileops.c: Add missing sys/mman.h
26372         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
26373
26374 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
26375
26376         * manual/math.texi (Errors in Math Functions): Clarify goals
26377         regarding inexact and underflow exceptions.
26378
26379 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26380
26381         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
26382         * sysdeps/mips/memset.S: Ditto.
26383
26384 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
26385
26386         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
26387
26388 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
26389
26390         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
26391         (__v1longjmp): Remove versioned symbol.
26392         (__v1siglongjmp): Remove alias and versioned symbol.
26393         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
26394         (__v2siglongjmp): Likewise.
26395
26396 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26397
26398         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
26399
26400 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
26401
26402         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
26403
26404 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26405
26406         [BZ #17987]
26407         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
26408         zero result does not depend on the sign resulting from
26409         subtraction.
26410         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26411         Likewise.
26412         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26413         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26414         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26415         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26416         * math/libm-test.inc (remquo_test_data): Add more tests.
26417
26418 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26419
26420         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
26421         Problem reported by J William Piggott.
26422
26423 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
26424
26425         [BZ #17978]
26426         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
26427         products 4 * y and 2 * y where those would overflow.
26428         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26429         Likewise.
26430         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
26431         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
26432         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
26433         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
26434         * math/libm-test.inc (remquo_test_data): Add more tests.
26435
26436         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
26437
26438         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
26439         [defined _COMPILING_NEWLIB].
26440         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
26441         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
26442
26443         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
26444         [!defined __mips_isa_rev || __mips_isa_rev < 6].
26445
26446 2015-02-16  Torvald Riegel  <triegel@redhat.com>
26447
26448         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
26449         acquired.
26450
26451 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
26452
26453         [BZ #17792]
26454         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
26455         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
26456         HOST_STACK_END_ADDR): Likewise.
26457
26458 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
26459
26460         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
26461         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
26462         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
26463
26464 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26465
26466         * sysdeps/generic/c++-types.data: New file.
26467         * sysdeps/generic/ld.abilist: New file.
26468         * sysdeps/generic/libBrokenLocale.abilist: New file.
26469         * sysdeps/generic/libanl.abilist: New file.
26470         * sysdeps/generic/libc.abilist: New file.
26471         * sysdeps/generic/libcrypt.abilist: New file.
26472         * sysdeps/generic/libdl.abilist: New file.
26473         * sysdeps/generic/libm.abilist: New file.
26474         * sysdeps/generic/libpthread.abilist: New file.
26475         * sysdeps/generic/libresolv.abilist: New file.
26476         * sysdeps/generic/librt.abilist: New file.
26477
26478 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26479
26480         [BZ #17569]
26481         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
26482         Compute absolute value of x as modified by fmod, not original
26483         value of x.
26484         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
26485         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
26486         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
26487         RUN_TEST_ffI_f1_mod8.
26488         (remquo_test_data): Add more tests.
26489
26490 2015-02-13  Roland McGrath  <roland@hack.frob.com>
26491
26492         * sysdeps/init_array/pt-crti.S: New file.
26493
26494 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
26495
26496         [BZ #17967]
26497         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
26498         __builtin_fmaf instead of relying on contraction of a * b + c.
26499
26500 2015-02-12  J William Piggott  <elseifthen@gmx.com>
26501
26502         [BZ #17969]
26503         * manual/time.texi: correct the zoneinfo path in the TZ Variable
26504         node.
26505
26506 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26507
26508         [BZ #17964]
26509         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
26510         __builtin_fma instead of relying on contraction of a * b + c.
26511
26512 2015-02-12  Roland McGrath  <roland@hack.frob.com>
26513
26514         * Makeconfig (ASFLAGS): Add -Werror=undef.
26515         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
26516         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
26517         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
26518
26519         * Makeconfig (after-link): New variable.
26520         (+link-pie, +link-pie-tests): Use it.
26521         (+link-static, +link-static-tests): Likewise.
26522         (+link, +link-tests): Likewise.
26523         * Makerules (build-module, build-module-asneeded): Likewise.
26524         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
26525         Likewise.
26526         * elf/Makefile ($(objpfx)ld.so): Likewise.
26527
26528 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
26529
26530         [BZ #17965]
26531         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
26532         both struct timeval and struct timespec.
26533
26534 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
26535
26536         [BZ #16560]
26537         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
26538         and redefine.
26539         (__ieee754_exp2l): Do not multiply small fractional parts by
26540         M_LN2l.
26541         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
26542         small argument.
26543         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
26544         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
26545         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
26546         * math/auto-libm-test-in: Add more tests of exp2.
26547         * math/auto-libm-test-out: Regenerated.
26548
26549 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26550
26551         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
26552         unaligned path.
26553
26554 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26555
26556         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
26557         little endian.
26558
26559 2015-02-12  Andreas Schwab  <schwab@suse.de>
26560
26561         [BZ #15790]
26562         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
26563         Filter out elision flags from value returned in kind.
26564         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
26565         * nptl/tst-pthread-mutexattr.c: New file.
26566
26567 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26568
26569         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
26570         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
26571         into gnu-gnu, and update comment to refer to abi-tags.
26572
26573 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
26574
26575         [BZ #15467]
26576         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
26577         (__sincos): Set errno to EDOM for infinite argument.
26578         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
26579         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
26580         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
26581         (__sincosl): Set errno to EDOM for infinite argument.
26582         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
26583         (__sincosl): Set errno to EDOM for infinite argument.
26584         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
26585         (__sincosl): Set errno to EDOM for infinite argument.
26586         * math/libm-test.inc (sincos_test_data): Test errno setting.
26587
26588 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
26589
26590         * string/strxfrm_l.c: Remove #define STRCMP.
26591         * string/strcoll_l.c: Remove #define STRLEN.
26592         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
26593         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
26594
26595 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
26596
26597         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
26598         * sysdeps/mips/mips32/sfp-machine.h: ... here.
26599         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
26600         * sysdeps/mips/mips64/Makefile: ... here.
26601         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
26602         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
26603         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
26604         * sysdeps/mips/mips64/sfp-machine.h: ... here.
26605         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
26606         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
26607         * sysdeps/mips/mips64/n64/Implies: Likewise.
26608
26609 2015-02-10  Roland McGrath  <roland@hack.frob.com>
26610
26611         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
26612         <sys/time.h>, <string.h>, and <errno.h>.
26613         (dest_offset, dest_address, value, zero): Remove unused variables.
26614         (ldouble): Remove typedef.
26615         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
26616         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
26617         1).  Fix code style.
26618         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
26619         (check): Function removed.
26620         (CHECK): New macro.
26621         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
26622         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
26623         Don't call set_sigaction_FP and remove_sigaction_FP here.
26624         (ldouble_test): Just use 'long double' as macro argument, no need for
26625         the 'ldouble' typedef.
26626         (do_test): Set up SIGFPE handler at start, using plain signal rather
26627         than sigaction.  Fix code style.
26628
26629 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
26630
26631         [BZ #17949]
26632         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
26633         jump label.
26634
26635 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
26636
26637         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
26638         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26639
26640         * sysdeps/powerpc/configure.ac: Remove file.
26641         * sysdeps/powerpc/configure: Likewise.
26642
26643         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26644         [sysdep_routines]: Remove wordcopy-power6 object.
26645         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
26646         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
26647         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
26648         (__memmove_ppc32): Likewise.
26649         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
26650         file.
26651         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
26652         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
26653         Remove preprocessor.
26654
26655         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
26656         [sysdep_routines]: Remove wide chars objects.
26657         [wcsmbs]: New rule for wide char objects.
26658
26659         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26660         Remove wordcopy-power6 obejct.
26661         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
26662         Use local call for wordcopy and memcpy symbols.
26663         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
26664         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
26665         implementation for loader.
26666         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
26667
26668         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26669         Remove wordcopy-power7 object.
26670         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
26671         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
26672         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
26673         (_wordcopy_fwd_dest_aligned): Likewise.
26674         (_wordcopy_bwd_aligned): Likewise.
26675         (_wordcopy_bwd_dest_aligned): Likewise.
26676
26677         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
26678         Rewrite to call __memmove_ppc instead of include default
26679         implementation.
26680
26681         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26682         Remove wide chars objects.
26683         [wcsmbs]: New rule for wide char objects.
26684
26685 2015-02-09  Andreas Schwab  <schwab@suse.de>
26686
26687         [BZ #17912]
26688         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
26689         in terms of __O_DIRECTORY.
26690
26691 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26692
26693         * time/getdate.c: Include <stdbool.h>.
26694         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
26695         call PTR_MANGLE.
26696         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
26697         PTR_DEMANGLE.
26698
26699 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26700
26701         Add ersatz _Static_assert on older C hosts
26702         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
26703         pre-C11 C platform that is not known to support _Static_assert.
26704
26705 2015-02-07  Richard Braun  <rbraun@sceen.net>
26706
26707         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
26708         sigstate.
26709         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
26710
26711 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26712
26713         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
26714         priority against unexistent AIO_PRIO_DELTA_MAX.
26715         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
26716         instead of int.
26717         * misc/fchflags.c (fchflags): Likewise.
26718         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
26719         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
26720         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
26721         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
26722         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
26723         Declare macros.
26724         [__USE_MISC] (chflags, fchflags): Declare functions.
26725         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
26726         EINVAL when nfds is greater than FD_SETSIZE.
26727         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
26728         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
26729         45.
26730         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
26731         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
26732         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
26733         MACH_RCV_TIMED_OUT.
26734         * hurd/hurd/signal.h (_hurd_self_sigstate,
26735         _hurd_critical_section_lock, _hurd_critical_section_unlock):
26736         Explicit casts from void *.
26737         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
26738         * abi-tags: Rename gnu-gnu os into gnu.
26739
26740         [BZ #4719]
26741         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
26742         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
26743         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
26744         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
26745         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
26746         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
26747
26748         [BZ #17944]
26749         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
26750         duplicates ADDR->sun_path with sockaddr LEN limitation.
26751         * sysdeps/mach/hurd/connect.c: Include <string.h>
26752         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
26753         * sysdeps/mach/hurd/sendmsg.c: Likewise.
26754         * sysdeps/mach/hurd/sendto.c: Likewise.
26755         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
26756         implementing it by hand.
26757
26758 2015-02-06  Roland McGrath  <roland@hack.frob.com>
26759
26760         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
26761         Use sfi_breg on ldr.
26762         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
26763         Likewise.
26764
26765         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
26766         it's defined.
26767         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
26768         Test SIGSETXID only if it's defined.
26769
26770         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
26771
26772         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
26773         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
26774
26775         * nptl/tst-align2.c: Moved ...
26776         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
26777         * nptl/Makefile (tests): Remove tst-align2.
26778         * sysdeps/unix/sysv/linux/Makefile
26779         [$(subdir) = nptl] (tests): Add tst-align-clone.
26780         * nptl/tst-getpid1.c: Moved ...
26781         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
26782         * nptl/tst-getpid2.c: Moved ...
26783         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
26784         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
26785         * sysdeps/unix/sysv/linux/Makefile
26786         [$(subdir) = nptl] (tests): ... here.
26787         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
26788         * sysdeps/unix/sysv/linux/Makefile
26789         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
26790
26791         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
26792         Drop trailing \n from perror argument.  Use return rather than exit.
26793
26794         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
26795         on [SA_SIGINFO].
26796         * nptl/tst-cancel21.c (do_test): Likewise.
26797         * debug/tst-backtrace6.c: Include <signal.h> first thing.
26798         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
26799         [!SA_SIGINFO]: Make it a stub test.
26800
26801         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
26802         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
26803
26804         * posix/tst-getlogin.c: Move to ...
26805         * login/tst-getlogin.c: ... here.
26806         * posix/Makefile (tests): Move tst-getlogin to ...
26807         * login/Makefile (tests): ... here.
26808
26809         * libio/tst-atime.c (do_test): Move local variables SV and E
26810         inside [ST_NOATIME] conditional.
26811
26812         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
26813
26814         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
26815
26816         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
26817         (wait_code): New function replaces macro.
26818         Call nanosleep rather than syscall.
26819
26820         * nptl/pt-system.c: Rewritten.  Put everything under
26821         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
26822         Use IFUNC to redirect when possible.
26823
26824         * nptl/pt-longjmp.c: Rewritten.  Put everything under
26825         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
26826         Use IFUNC to redirect when possible.
26827
26828         * nptl/pt-fork.c: Rewritten.  Put everything under
26829         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
26830         Use IFUNC to redirect when possible.
26831         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
26832
26833         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
26834         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
26835         unconditionally nowadays.  This included the only reference to
26836         __vdso_clock_gettime that appears outside libc proper.
26837         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
26838         Remove version set (containing only __vdso_clock_gettime).
26839         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
26840         Add attribute_hidden.
26841         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
26842         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
26843         libc_hidden_data_def.
26844         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
26845         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
26846
26847         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
26848         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
26849         setrpcent, and getrpcport to ...
26850         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
26851         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
26852         getrpcbynumber_r, and getrpcent_r to ...
26853         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
26854         * inet/getrpcbyname.c: Moved ...
26855         * sunrpc/getrpcbyname.c: ... here.
26856         * inet/getrpcbyname_r.c: Moved ...
26857         * sunrpc/getrpcbyname_r.c: ... here.
26858         * inet/getrpcbynumber.c: Moved ...
26859         * sunrpc/getrpcbynumber.c: ... here.
26860         * inet/getrpcbynumber_r.c: Moved ...
26861         * sunrpc/getrpcbynumber_r.c: ... here.
26862         * inet/getrpcent.c: Moved ...
26863         * sunrpc/getrpcent.c: ... here.
26864         * inet/getrpcent_r.c: Moved ...
26865         * sunrpc/getrpcent_r.c: ... here.
26866         * inet/Makefile (routines): Move those to ...
26867         * sunrpc/Makefile (routines): ... here.
26868         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
26869         the $(subdirs) list.
26870         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
26871         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
26872         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
26873         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
26874
26875         * elf/Makefile (routines): Include $(all-dl-routines), not just
26876         $(dl-routines).
26877         (rtld-routines): Likewise.  Use = rather than :=.
26878         * sysdeps/aarch64/Makefile [$(subdir) = elf]
26879         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
26880         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
26881         * sysdeps/arm/Makefile: Likewise.
26882         * sysdeps/i386/Makefile: Likewise.
26883         * sysdeps/x86_64/Makefile: Likewise.
26884         * sysdeps/hppa/Makefile [$(subdir) = elf]
26885         (sysdep_routines, sysdep-rtld-routines): Don't add
26886         $(sysdep-dl-routines) to these.
26887         * sysdeps/ia64/Makefile: Likewise.
26888         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
26889         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
26890         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
26891         Don't add dl-static to these; sysdep-dl-routines alone is enough.
26892         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
26893         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
26894         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
26895         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
26896         * sysdeps/powerpc/Makefile [$(subdir) = elf]
26897         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
26898         these; sysdep-dl-routines alone is enough.
26899
26900 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
26901
26902         [BZ #17932]
26903         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
26904         where multiplication results in zero and third argument is finite
26905         and nonzero.
26906         * math/auto-libm-test-in: Add more tests of fma.
26907         * math/auto-libm-test-out: Regenerated.
26908
26909         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
26910         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
26911         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
26912         (_FP_CMP_EQ): Likewise.
26913         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
26914
26915         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
26916         extra argument CHECK_NAN.  Redefine as wrapper around
26917         _FP_EXTEND_CNAN.
26918
26919 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
26920
26921         * version.h (RELEASE): Set to "stable".
26922         (VERSION): Set to "2.21"
26923         * include/features.h (__GLIBC_MINOR__): Set to 21.
26924
26925         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
26926
26927 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26928             Paul Eggert  <eggert@cs.ucla.edu>
26929
26930         [BZ #16618]
26931         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
26932         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
26933         size in bytes. Store needed elements in wpmax. Use needed size
26934         in bytes for extend_alloca.
26935
26936 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
26937
26938         * manual/install.texi: Latest tested versions are GCC 4.9.2,
26939         binutls 2.25, and texinfo 5.2.
26940         * INSTALL: Regenerate.
26941         * sysdeps/nios2/configure: Regenerate.
26942         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
26943         * manual/contrib.texi: Update.
26944         * po/be.po: Update.
26945         * po/bg.po: Update.
26946         * po/ca.po: Update.
26947         * po/cs.po: Update.
26948         * po/da.po: Update.
26949         * po/de.po: Update.
26950         * po/el.po: Update.
26951         * po/eo.po: Update.
26952         * po/es.po: Update.
26953         * po/fi.po: Update.
26954         * po/fr.po: Update.
26955         * po/gl.po: Update.
26956         * po/hr.po: Update.
26957         * po/hu.po: Update.
26958         * po/ia.po: Update.
26959         * po/id.po: Update.
26960         * po/it.po: Update.
26961         * po/ja.po: Update.
26962         * po/ko.po: Update.
26963         * po/lt.po: Update.
26964         * po/nb.po: Update.
26965         * po/nl.po: Update.
26966         * po/pl.po: Update.
26967         * po/pt_BR.po: Update.
26968         * po/ru.po: Update.
26969         * po/rw.po: Update.
26970         * po/sk.po: Update.
26971         * po/sl.po: Update.
26972         * po/sv.po: Update.
26973         * po/tr.po: Update.
26974         * po/uk.po: Update.
26975         * po/vi.po: Update.
26976         * po/zh_CN.po: Update.
26977         * po/zh_TW.po: Update.
26978
26979         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
26980         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
26981         * sysdeps/hppa/dl-irel.h: Remove #warning.
26982         * sysdeps/hppa/entry.h: Provide prototype for
26983         __canonicalize_funcptr_for_compare and cast argument.
26984         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
26985         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
26986         * sysdeps/hppa/sotruss-lib.c: New file.
26987         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
26988         (atomic_compare_and_exchange_val_acq): Use __typeof__.
26989         (atomic_compare_and_exchange_bool_acq): Likewise.
26990         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
26991         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
26992
26993         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
26994         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
26995         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
26996
26997 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
26998
26999         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
27000         called function in non-PIC case.
27001
27002 2015-01-31  David S. Miller  <davem@davemloft.net>
27003
27004         * sysdeps/sparc/sparc32/bits/atomic.h
27005         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
27006         unlock not after it.
27007         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
27008         volatile register usage warnings from the compiler.
27009
27010         * sysdeps/sparc/nptl/sem_init.c: Delete.
27011         * sysdeps/sparc/nptl/sem_post.c: Delete.
27012         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
27013         * sysdeps/sparc/nptl/sem_wait.c: Delete.
27014         * sysdeps/sparc/sparc32/sem_init.c: New file.
27015         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
27016         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
27017         padding explicitly initialized.
27018         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
27019         padding for in-semaphore spinlock.
27020         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
27021         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
27022         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
27023         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
27024         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
27025         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
27026         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
27027         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
27028         version.
27029         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
27030         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
27031
27032 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
27033
27034         [BZ #17801]
27035         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27036         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
27037         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
27038         New.
27039         (index_AVX_Fast_Unaligned_Load): Likewise.
27040         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
27041         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
27042         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
27043         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
27044         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
27045         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
27046         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
27047         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
27048         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
27049
27050 2015-01-29  Andreas Schwab  <schwab@suse.de>
27051
27052         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
27053
27054 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
27055
27056         [BZ #17892]
27057         * nscd/nscd_stat.c (send_stats): Initialize DATA.
27058
27059 2015-01-28  Martin Sebor  <msebor@redhat.com>
27060
27061         * math/README.libm-test: Clarify. Add "How to read the test output."
27062
27063 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
27064
27065         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
27066         Define to 0.
27067
27068 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
27069
27070         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
27071         (__HAVE_64B_ATOMICS): Define to 0.
27072
27073 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27074
27075         [BZ #17885]
27076         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
27077         value to set as new flag.
27078
27079         [BZ #16576]
27080         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
27081         and use _ARCH_PPCSQ instead.
27082         (__ieee754_sqrt): Likewise.
27083         (__ieee754_sqrtf): Likewise.
27084         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
27085         _ARCH_PPCSQ is defined.
27086         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
27087         fsqrt instruction.
27088         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
27089         _ARCH_PPCSQ is defined.
27090         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
27091         fsqrts instruction.
27092         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
27093
27094 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27095
27096         * iconv/loop.c: Suppress array out of bound warning caused by GCC
27097         bug (GCC BZ #64739).
27098
27099 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
27100
27101         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
27102         Mark _retval as used.
27103         (lll_futex_wake_unlock): Likewise.
27104         (lll_futex_timed_wait_requeue_pi): Likewise.
27105
27106         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
27107         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
27108         register variables.
27109
27110         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
27111         libm_hidden_def.
27112
27113         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
27114         (__bswap_64): Mark as __always_inline.
27115
27116 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
27117
27118         [BZ #15378]
27119         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
27120         when none of the search directories exist.
27121
27122 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
27123
27124         [BZ #17869]
27125         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
27126         power8 in .machine directive.
27127
27128         [BZ #17868]
27129         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
27130         set dependency from opd value.
27131
27132 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27133
27134         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27135         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
27136         architecture.
27137
27138 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27139
27140         [BZ #17870]
27141         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
27142         with uint64_t.
27143         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
27144         (uint64_t) 1.
27145         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
27146         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
27147         Replace 1UL with (uint64_t) 1.
27148         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
27149         int with uint64_t.
27150
27151 2015-01-23  Roland McGrath  <roland@hack.frob.com>
27152
27153         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
27154         (if_freenameindex): Likewise.
27155
27156         * resource/getrlimit64.c: Add missing libc_hidden_def.
27157
27158 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
27159
27160         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
27161         __label__.
27162         (_FP_FMA): Likewise.
27163         (_FP_TO_INT_ROUND): Likewise.
27164         (_FP_FROM_INT): Likewise.
27165
27166 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27167
27168         [BZ #16418]
27169         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27170         Make code racy and cancel safe.
27171
27172 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
27173
27174         * sysdeps/arm/unwind-resume.h: Fix copyright year.
27175         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
27176         attribution.
27177
27178         * pwd/tst-getpw.c: Rewrite.
27179
27180         [BZ #17702]
27181         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
27182         (modules-names): Add moddummy1 and moddummy2.
27183         ($(objpfx)tst-rec-dlopen): Define.
27184         * dlfcn/moddummy1.c: New file.
27185         * dlfcn/moddummy2.c: New file.
27186         * dlfcn/tst-rec-dlopen.c: New file.
27187         * elf/dl-cache.c (_dl_load_cache_lookup):
27188         Return char*. Copy result with alloca/strcpy/strdup.
27189         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
27190         returns char*. Free cached. If not saving realname
27191         free cached.
27192         * elf/dl-open.c (dl_open_worker): Do not assert that
27193         _r_debug->r_state is RT_CONSISTENT.
27194         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
27195         returns char*.
27196
27197 2015-01-21  Torvald Riegel  <triegel@redhat.com>
27198             Carlos O'Donell  <carlos@redhat.com>
27199
27200         [BZ #12674]
27201         * nptl/sem_waitcommon.c: New file.
27202         * nptl/sem_wait.c: Include sem_waitcommon.c.
27203         (__sem_wait_cleanup, do_futex_wait): Remove.
27204         (__new_sem_wait): Adapt.
27205         (__new_sem_trywait): New function.
27206         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
27207         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
27208         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
27209         (sem_timedwait): Adapt.
27210         * nptl/sem_post.c (__new_sem_post): Adapt.
27211         (futex_wake): New function.
27212         (__old_sem_post): Add release MO fence.
27213         * nptl/sem_open.c (sem_open): Adapt.
27214         * nptl/sem_init.c (__new_sem_init): Adapt.
27215         (futex_private_if_supported): New function.
27216         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
27217         (__old_sem_getvalue): Add using previous code.
27218         * sysdeps/nptl/internaltypes.h: Adapt.
27219         * nptl/tst-sem13.c (do_test): Adapt.
27220         * nptl/tst-sem11.c (main): Adapt.
27221         * nptl/sem_trywait.c: Remove.
27222         * nptl/DESIGN-sem.txt: Remove.
27223         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
27224         (gen-as-const-headers): Remove structsem.sym.
27225         * nptl/structsem.sym: Remove.
27226         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
27227         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
27228         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
27229         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
27230         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
27231         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
27232         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
27233         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
27234         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
27235         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
27236         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
27237         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
27238         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
27239         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
27240         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
27241         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
27242         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
27243         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
27244         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
27245         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
27246         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
27247         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
27248
27249 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
27250
27251         * INSTALL: Regenerated.
27252
27253         * po/libc.pot: Regenerated.
27254
27255 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
27256             Sandra Loosemore  <sandra@codesourcery.com>
27257             Andrew Jenner  <andrew@codesourcery.com>
27258             Joseph Myers  <joseph@codesourcery.com>
27259             Nathan Sidwell  <nathan@codesourcery.com>
27260
27261         * NEWS: Mention new Nios II port.
27262         * sysdeps/nios2/Implies: New file.
27263         * sysdeps/nios2/Makefile: New file.
27264         * sysdeps/nios2/Subdirs: New file.
27265         * sysdeps/nios2/Versions: New file.
27266         * sysdeps/nios2/__longjmp.S: New file.
27267         * sysdeps/nios2/abort-instr.h: New file.
27268         * sysdeps/nios2/backtrace.c: New file.
27269         * sysdeps/nios2/bits/endian.h: New file.
27270         * sysdeps/nios2/bits/fenv.h: New file.
27271         * sysdeps/nios2/bits/link.h: New file.
27272         * sysdeps/nios2/bits/setjmp.h: New file.
27273         * sysdeps/nios2/bsd-_setjmp.S: New file.
27274         * sysdeps/nios2/bsd-setjmp.S: New file.
27275         * sysdeps/nios2/configure: New generated file.
27276         * sysdeps/nios2/configure.ac: New file.
27277         * sysdeps/nios2/crti.S: New file.
27278         * sysdeps/nios2/crtn.S: New file.
27279         * sysdeps/nios2/dl-init.c: New file.
27280         * sysdeps/nios2/dl-machine.h: New file.
27281         * sysdeps/nios2/dl-sysdep.h: New file.
27282         * sysdeps/nios2/dl-tls.h: New file.
27283         * sysdeps/nios2/dl-trampoline.S: New file.
27284         * sysdeps/nios2/gccframe.h: New file.
27285         * sysdeps/nios2/gmp-mparam.h: New file.
27286         * sysdeps/nios2/jmpbuf-offsets.h: New file.
27287         * sysdeps/nios2/jmpbuf-unwind.h: New file.
27288         * sysdeps/nios2/ldsodefs.h: New file.
27289         * sysdeps/nios2/libc-tls.c: New file.
27290         * sysdeps/nios2/libm-test-ulps: New file.
27291         * sysdeps/nios2/machine-gmon.h: New file.
27292         * sysdeps/nios2/math-tests.h: New file.
27293         * sysdeps/nios2/math_private.h: New file.
27294         * sysdeps/nios2/memusage.h: New file.
27295         * sysdeps/nios2/nptl/Makefile: New file.
27296         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
27297         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
27298         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
27299         * sysdeps/nios2/nptl/pthreaddef.h: New file.
27300         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
27301         * sysdeps/nios2/nptl/tls.h: New file.
27302         * sysdeps/nios2/preconfigure: New file.
27303         * sysdeps/nios2/s_fma.c: New file.
27304         * sysdeps/nios2/s_fmaf.c: New file.
27305         * sysdeps/nios2/setjmp.S: New file.
27306         * sysdeps/nios2/sfp-machine.h: New file.
27307         * sysdeps/nios2/sotruss-lib.c: New file.
27308         * sysdeps/nios2/stackguard-macros.h: New file.
27309         * sysdeps/nios2/stackinfo.h: New file.
27310         * sysdeps/nios2/start.S: New file.
27311         * sysdeps/nios2/sysdep.h: New file.
27312         * sysdeps/nios2/tls-macros.h: New file.
27313         * sysdeps/nios2/tst-audit.h: New file.
27314         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
27315         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
27316         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
27317         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
27318         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
27319         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
27320         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
27321         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
27322         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
27323         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
27324         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
27325         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
27326         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
27327         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
27328         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
27329         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
27330         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
27331         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
27332         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
27333         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
27334         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
27335         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
27336         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
27337         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
27338         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
27339         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
27340         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
27341         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
27342         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
27343         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
27344         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
27345         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
27346         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
27347         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
27348         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
27349         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
27350         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
27351         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
27352         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
27353         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
27354         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
27355         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
27356         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
27357         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
27358
27359 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27360
27361         [BZ #17844]
27362         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
27363         (getutent): Use weak_alias in non SHARED case
27364         and default_symbol_version in SHARED case.
27365         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
27366         (getutent_r, pututline): Likewise.
27367         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
27368         (getutid): Likewise.
27369         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
27370         (getutid_r): Likewise.
27371         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
27372         (getutline): Likewise.
27373         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
27374         (getutline_r): Likewise.
27375         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
27376         (updwtmp): Likewise.
27377
27378 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
27379
27380         [BZ #17848]
27381         * sysdeps/s390/s390-32/memcmp.S
27382         (memcmp_g5): Rename to __memcmp_g5.
27383         * sysdeps/s390/s390-32/memcpy.S
27384         (memcpy_g5): Rename to __memcpy_g5.
27385         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27386         (memcpy_mvcle) Rename to __memcpy_mvcle.
27387         * sysdeps/s390/s390-32/memset.S
27388         (memset_g5): Rename to __memset_g5.
27389         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27390         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27391         and use prefixed functions.
27392         * sysdeps/s390/s390-32/multiarch/memcmp.S
27393         (memcmp_z196): Rename to __memcmp_z196.
27394         (memcmp_z10): Rename to __memcmp_z10.
27395         (memcmp): Set alias to __memcmp_g5.
27396         (bcmp): Set alias to __memcmp_g5.
27397         * sysdeps/s390/s390-32/multiarch/memcpy.S
27398         (memcpy_z196): Rename to __memcpy_z196.
27399         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27400         (memcpy_z10): Rename to __memcpy_z10.
27401         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27402         (memcpy): Set alias to __memcpy_g5.
27403         * sysdeps/s390/s390-32/multiarch/memset.S
27404         (memset_z196): Rename to __memset_z196.
27405         Jump to __memset_mvcle instead of memset_mvcle.
27406         (memset_z10): Rename to __memset_z10.
27407         Jump to __memset_mvcle instead of memset_mvcle.
27408         (memset_mvcle) Rename to __memset_mvcle.
27409         (memset): Set alias to __memset_g5.
27410         * sysdeps/s390/s390-64/memcmp.S
27411         (memcmp_z900): Rename to __memcmp_z900.
27412         * sysdeps/s390/s390-64/memcpy.S
27413         (memcpy_z900): Rename to __memcpy_z900.
27414         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27415         (memcpy_mvcle) Rename to __memcpy_mvcle.
27416         * sysdeps/s390/s390-64/memset.S
27417         (memset_z900): Rename to __memset_z900.
27418         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
27419         (IFUNC_RESOLVE): Prefix ifunc-resolve function
27420         and use prefixed functions.
27421         * sysdeps/s390/s390-64/multiarch/memcmp.S
27422         (memcmp_z196): Rename to __memcmp_z196.
27423         (memcmp_z10): Rename to __memcmp_z10.
27424         (memcmp): Set alias to __memcmp_z900.
27425         (bcmp): Set alias to __memcmp_z900.
27426         * sysdeps/s390/s390-64/multiarch/memcpy.S
27427         (memcpy_z196): Rename to __memcpy_z196.
27428         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27429         (memcpy_z10): Rename to __memcpy_z10.
27430         Jump to __memcpy_mvcle instead of memcpy_mvcle.
27431         (memcpy): Set alias to __memcpy_z900.
27432         * sysdeps/s390/s390-64/multiarch/memset.S
27433         (memset_z196): Rename to __memset_z196.
27434         Jump to __memset_mvcle instead of memset_mvcle.
27435         (memset_z10): Rename to __memset_z10.
27436         Jump to __memset_mvcle instead of memset_mvcle.
27437         (memset_mvcle) Rename to __memset_mvcle.
27438         (memset): Set alias to __memset_z900.
27439
27440 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
27441
27442         [BZ #17748]
27443         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
27444         __fesetenv instead of fesetenv.
27445
27446 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27447
27448         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
27449         macro.
27450
27451 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27452
27453         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
27454         regression on LE.
27455
27456         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
27457         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
27458         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27459         strncmp-power8 object.
27460         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27461         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
27462         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
27463         * NEWS: Update.
27464
27465 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27466             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27467
27468         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
27469         trailing byte check.
27470
27471 2015-01-13  David S. Miller  <davem@davemloft.net>
27472
27473         * include/signal.h (__sigreturn): Guard with __USE_MISC.
27474
27475 2015-01-13  Roland McGrath  <roland@hack.frob.com>
27476
27477         * login/logout.c (logout): Use memset rather than bzero.
27478         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
27479         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
27480         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
27481         (_gethtbyaddr): Likewise.
27482         * locale/programs/simple-hash.c (bcopy): Macro removed.
27483
27484 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27485
27486         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27487         Add strcmp-power8 object.
27488         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27489         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
27490         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
27491         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
27492         __strcmp_power8 implementation.
27493         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
27494         * NEWS: Update.
27495
27496         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27497         Add strncpy-power8 and stpncpy-power8 objects.
27498         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27499         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
27500         implementations.
27501         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
27502         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
27503         __stpncpy_power8 implementation.
27504         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
27505         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
27506         __strncpy_power8 implementation.
27507         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
27508         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
27509         * NEWS: Update.
27510
27511         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
27512         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
27513         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
27514
27515         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27516         strncat-power8 object.
27517         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
27518         __strcat_power8 implementation.
27519         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27520         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
27521         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
27522         optimized strcat for power8.
27523
27524         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
27525         strcpy-power8 and stpcpy-power8 objects.
27526         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27527         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
27528         implementations.
27529         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
27530         multiarch stpcpy implementation for POWER8.
27531         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
27532         multiarch strcpy implementation for POWER8.
27533         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
27534         __strcpy_power8 function.
27535         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
27536         stpcpy for POWER8.
27537         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
27538         strcpy for POWER8.
27539         * NEWS: Update.
27540
27541 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
27542
27543         [BZ #16009]
27544         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
27545         weights and rules. Use do_xfrm_cached if data fits in cache,
27546         do_xfrm otherwise.  Moved former main loop to...
27547         * (do_xfrm_cached): New function.
27548         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
27549         find_idx, find_position and stack_push.
27550         * (find_idx): New function.
27551         * (find_position): Likewise.
27552         * localedata/sort-test.sh: Added test run for do_xfrm.
27553         * localedata/xfrm-test.c (main): Added command line option
27554         -nocache to run the test with strings that are too large for
27555         the STRXFRM cache.
27556
27557 2015-01-13  Torvald Riegel  <triegel@redhat.com>
27558
27559         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
27560         variable to lll_futex_wake call, not the value itself.
27561
27562 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
27563
27564         [BZ #17803]
27565         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
27566         twom64.  Adjust value to 0x1p-64L.
27567         (__scalblnl): Only return standard underflowing result for K <=
27568         -64 not K <= -63; adjust exponent for underflowing result by 64
27569         not 63.
27570         * math/libm-test.inc (scalbn_test_data): Add more tests.
27571         (scalbln_test_data): Likewise.
27572
27573         [BZ #17834]
27574         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
27575         0x1p63L.
27576         (__scalblnl): Get new exponent of adjusted subnormal value from ES
27577         not HX.
27578         * math/libm-test.inc (scalbn_test_data): Add more tests.
27579         (scalbln_test_data): Likewise.
27580
27581 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27582             Stefani Seibold  <stefani@seibold.net>
27583
27584         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
27585         (sysdep_routines): Add dl-vdso here, ...
27586         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
27587         (sysdep_routines): ... not here.
27588         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
27589         fallback when vDSO is not presented.
27590         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
27591         Define with libc_hidden_proto/libc_hidden_data_def definitions.
27592         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
27593         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
27594         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
27595         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
27596         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
27597         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
27598         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
27599         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
27600         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
27601         fallback configurable symbol when vDSO is not available.
27602         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
27603         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
27604         be able to redefine fallback symbol when vDSO is not available.
27605         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
27606         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
27607
27608 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27609
27610         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
27611         (TLS_INIT_TP): Add tm_capable initialization.
27612         (TLS_DEFINE_INIT_TP): Likewise.
27613         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
27614         TCB.
27615         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
27616         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
27617         calculation.
27618         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
27619         transactoion is lock elision is built and TCB tm_capable is set.
27620         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
27621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
27622         (INTERNAL_SYSCALL_NCS): Likewise.
27623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
27624         (INTERNAL_SYSCALL_NCS): Likewise.
27625         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
27626
27627         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
27628         for powerpc.
27629         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27630         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
27631         and remove it for 32 bits case.
27632         [pthread_rwlock_t] (__rwelision): New field for lock elision.
27633         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
27634         initialization.
27635         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
27636         Disable lock elision with rdlocks if elision is not available.
27637
27638         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
27639         (sysdep_routines): Add lock elision objects.
27640         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
27641         [pthread_mutex_t] (__spins): Rework to add lock elision field.
27642         [pthread_mutex_t] (__elision): Add field.
27643         [__PTHREAD_SPINS]: Adjust to init lock elision field.
27644         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
27645         elision definitions for powerpc.
27646         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
27647         implementation of lock elision for powerpc.
27648         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
27649         implementation of timed lock elision for powerpc.
27650         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
27651         implementation of trylock with lock elision for powerpc.
27652         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
27653         implementaion of unlock for lock elision for powerpc.
27654         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
27655         automatic enable lock elision for mutexes.
27656         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
27657         transaction execution definitions for powerpc.
27658         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
27659         definitions.
27660         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
27661         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
27662         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
27663         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
27664         * NEWS: Update.
27665
27666 2015-01-09  Roland McGrath  <roland@hack.frob.com>
27667
27668         * sysdeps/posix/shm-directory.c: Use <> rather than ""
27669         for #include of <shm-directory.h>.
27670
27671 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
27672
27673         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
27674         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
27675
27676 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
27677
27678         [BZ #17791]
27679         * NEWS: Mention bug fix.
27680         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
27681         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
27682         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
27683
27684 2015-01-09  Torvald Riegel <triegel@redhat.com>
27685
27686         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
27687
27688 2015-01-09  Torvald Riegel <triegel@redhat.com>
27689
27690         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
27691
27692 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27693
27694         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
27695         pointer and cast to uintptr_t.
27696
27697 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27698
27699         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
27700         removed.
27701         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
27702
27703 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
27704
27705         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
27706         of 0.
27707
27708 2015-01-08  Roland McGrath  <roland@hack.frob.com>
27709
27710         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
27711         <nptl/pthreadP.h> instead.
27712         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
27713
27714         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
27715         already defined.
27716         [__SIGRTMIN] (init): Function removed.
27717         [__SIGRTMIN] (initialized): Variable removed.
27718         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
27719         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
27720         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
27721         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
27722         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
27723         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
27724         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
27725         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
27726         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
27727         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
27728         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
27729         * sysdeps/nptl/allocrtsig.c: New file.
27730         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
27731         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
27732         * sysdeps/generic/testrtsig.h: File removed.
27733
27734         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
27735         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
27736
27737         * nptl/nptl-init.c (pthread_functions): Conditionalize
27738         .ptr__nptl_setxid initialization on [SIGSETXID].
27739
27740         * sysdeps/nptl/sys/procfs.h: New file.
27741         * nptl_db/Makefile (headers): Add it.
27742         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
27743
27744         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
27745         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
27746         * nptl/pthread_attr_setaffinity.c: Include it.
27747         * nptl/pthread_setattr_default_np.c: Likewise.
27748         * nptl/check-cpuset.h: New file.
27749
27750 2015-01-08  Richard Henderson  <rth@redhat.com>
27751
27752         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
27753         (CFLAGS-tst-execstack-prog.c): Likewise.
27754         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
27755
27756 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
27757             Sandra Loosemore  <sandra@codesourcery.com>
27758             Andrew Jenner  <andrew@codesourcery.com>
27759             Joseph Myers  <joseph@codesourcery.com>
27760             Nathan Sidwell  <nathan@codesourcery.com>
27761
27762         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
27763         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
27764         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
27765         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
27766         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
27767         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
27768         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
27769         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
27770         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
27771         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
27772         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
27773         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
27774         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
27775         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
27776         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
27777         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
27778         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
27779
27780 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27781
27782         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
27783         timespec struct member in syscall macro.
27784         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
27785         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
27786         first timeval struct member in syscall macro.
27787         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
27788
27789 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
27790
27791         [BZ #17748]
27792         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
27793         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
27794         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
27795         __feupdateenv and define as weak alias of __feupdateenv.  Use
27796         libm_hidden_weak.
27797         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
27798         libm_hidden_def.
27799         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
27800         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
27801         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
27802         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
27803         libm_hidden_def.
27804         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
27805         __feupdateenv and define as weak alias of __feupdateenv.  Use
27806         libm_hidden_weak.
27807         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
27808         libm_hidden_def.
27809         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
27810         __feupdateenv and define as weak alias of __feupdateenv.  Use
27811         libm_hidden_weak.
27812         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
27813         libm_hidden_def.
27814         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
27815         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
27816         (__feupdateenv): Likewise.
27817         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
27818         __feupdateenv and define as weak alias of __feupdateenv.  Use
27819         libm_hidden_weak.
27820         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
27821         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
27822         libm_hidden_def.
27823         * sysdeps/tile/math_private.h (__feupdateenv): New inline
27824         function.
27825         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
27826         libm_hidden_def.
27827         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
27828         __feupdateenv instead of feupdateenv.
27829         (default_libc_feupdateenv_test): Likewise.
27830         (libc_feresetround_ctx): Likewise.
27831
27832 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27833
27834         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
27835         prototype.
27836
27837 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
27838
27839         * posix/regcomp.c (parse_bracket_exp): Initialize type to
27840         COLL_SYM in a couple of places to avoid uninitialized variable
27841         wanings on tilegx gcc 4.8.2.
27842
27843 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
27844
27845         * sysdeps/aarch64/strcpy.S: New file.
27846         * sysdeps/aarch64/stpcpy.S: New file.
27847         * NEWS: Updated.
27848
27849 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
27850
27851         * sysdeps/aarch64/strrchr.S: New file.
27852         * NEWS: Updated.
27853
27854 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
27855
27856         [BZ #17658]
27857         * stdlib/setenv.c: Fix memory leak when setting large,
27858         duplicate string.
27859
27860 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
27861
27862         [BZ #17273]
27863         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
27864         and tabs from buffer before parsing fstab entry.
27865         * misc/tst-mntent.c (main): Add test for mount entry with
27866         trailing spaces and tabs.
27867
27868 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
27869
27870         [BZ #17748]
27871         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
27872         * math/fesetround.c (fesetround): Rename to __fesetround and
27873         define as weak alias of __fesetround.  Use libm_hidden_weak.
27874         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
27875         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
27876         * sysdeps/arm/fesetround.c (fesetround): Likewise.
27877         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
27878         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
27879         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
27880         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
27881         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
27882         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
27883         __fesetround_inline.
27884         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
27885         __fesetround_inline instead of __fesetround.
27886         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
27887         __fesetround and define as weak alias of __fesetround.  Use
27888         libm_hidden_weak.  Call __fesetround_inline instead of
27889         __fesetround.
27890         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
27891         __fesetround and define as weak alias of __fesetround.  Use
27892         libm_hidden_weak.
27893         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
27894         Likewise.
27895         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
27896         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
27897         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
27898         * sysdeps/tile/math_private.h (__fesetround): New inline function.
27899         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
27900         __fesetround and define as weak alias of __fesetround.  Use
27901         libm_hidden_weak.
27902         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
27903         __fesetround instead of fesetround.
27904         (default_libc_feholdexcept_setround): Likewise.
27905         (libc_feholdsetround_ctx): Likewise.
27906         (libc_feholdsetround_noex_ctx): Likewise.
27907
27908         [BZ #17748]
27909         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
27910         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
27911         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
27912         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
27913         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27914         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
27915         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27916         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
27917         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27918         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
27919         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27920         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27921         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
27922         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27923         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
27924         libm_hidden_def.
27925         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
27926         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
27927         Likewise.
27928         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
27929         define as weak alias of __fesetenv.  Use libm_hidden_weak.
27930         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
27931         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
27932         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
27933         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
27934         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
27935         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
27936         __fesetenv instead of fesetenv.
27937         (libc_feresetround_noex_ctx): Likewise.
27938         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
27939         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
27940         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
27941         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
27942         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
27943         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
27944         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
27945         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
27946         (__feupdateenv): Likewise.
27947         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
27948         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
27949         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
27950         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
27951
27952 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
27953
27954         [BZ #17806]
27955         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
27956         addresses have been freed.
27957
27958 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
27959
27960         * resolv/res_init.c (__res_vinit): Improve comments about nserv
27961         and nservall.
27962
27963 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
27964
27965         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
27966         Clean up check_pf allocation pattern. addresses
27967
27968 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27969
27970         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
27971         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
27972         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
27973         * nptl/pthread_exit.c (__pthread_exit): Likewise.
27974         * nptl/pthread_join.c (pthread_join): Likewise.
27975         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
27976         * sysdeps/posix/waitid.c (__waitid): Likewise.
27977         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
27978         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
27979         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
27980         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
27981         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
27982         Likewise.
27983         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
27984         (__libc_pread64): Likewise.
27985         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
27986         (__libc_pwrite): Likewise.
27987         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
27988         (__libc_pwrite64): Likewsie.
27989         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
27990         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
27991         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
27992         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
27993         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
27994         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
27995         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
27996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
27997         Likewise.
27998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
27999         (__libc_pread64): Likewise.
28000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
28001         Likewise.
28002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
28003         (__libc_pwrite64): Likewise.
28004         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
28005         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
28006         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
28007         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
28008         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
28009         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
28010         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
28011         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
28012         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
28013         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
28014         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
28015         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
28016         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
28017         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
28018         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28019         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
28020         Likewise.
28021
28022 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
28023
28024         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
28025         (CFLAGS-test-double.c): Likewise.
28026         (CFLAGS-test-ldouble.c): Likewise.
28027         (CPPFLAGS-test-ifloat.c): Likewise.
28028         (CPPFLAGS-test-idouble.c): Likewise.
28029         (CPPFLAGS-test-ildoubl.c): Likewise.
28030         (CFLAGS-test-test-fenv.c): Remove variable.
28031         (CFLAGS-test-misc.c): Likewise.
28032
28033 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28034
28035         [BZ #17797]
28036         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
28037         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
28038         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
28039         CLOCKS_PER_SEC == 1000000.
28040         * time/clocktest.c (main): Replace %ld with %jd and cast to
28041         intmax_t.
28042
28043 2015-01-05  Roland McGrath  <roland@hack.frob.com>
28044
28045         * sysdeps/generic/unwind-resume.h: New file.
28046         * sysdeps/gnu/unwind-resume.c: Include it.
28047         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
28048         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
28049         argument list.
28050         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
28051         global rather than static.
28052         (_Unwind_Resume): Update user.
28053         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
28054         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
28055         rather than static.  Add __attribute__ ((cold)).
28056         (_Unwind_Resume, __gcc_personality_v0): Update callers.
28057         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
28058         * sysdeps/arm/arm-unwind-resume.S: New file.
28059         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
28060         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
28061         * sysdeps/arm/Makefile [$(subdir) = csu]
28062         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
28063         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
28064         Add rt-arm-unwind-resume.
28065         [$(subdir) = nptl]
28066         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28067         Add pt-arm-unwind-resume.
28068         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
28069         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
28070
28071 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28072
28073         [BZ #17748]
28074         * include/fenv.h (__feholdexcept): Declare.  Use
28075         libm_hidden_proto.
28076         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
28077         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
28078         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28079         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
28080         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
28081         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
28082         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
28083         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28084         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
28085         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
28086         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28087         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
28088         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
28089         (feholdexcept): Likewise.
28090         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
28091         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
28092         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
28093         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
28094         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
28095         __feholdexcept instead of feholdexcept.
28096         (default_libc_feholdexcept_setround): Likewise.
28097
28098 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28099
28100         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
28101         to avoid using stl/str to align destination.
28102
28103 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28104
28105         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
28106
28107 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28108
28109         [BZ #17796]
28110         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
28111         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
28112         Define as weak alias not strong alias.
28113
28114 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
28115
28116         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
28117         bltzal with addiupc.
28118         (RTLD_START): Ditto.
28119
28120 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
28121
28122         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
28123         for __vdso_* functions in declarations.
28124         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
28125         definitions.
28126         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
28127         INTERNAL_VSYSCALL): Use struct return types to check for error.
28128
28129         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
28130         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
28131         function with cast from llround().
28132         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
28133         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
28134         Define.
28135
28136 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
28137
28138         [BZ #17793]
28139         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
28140         Define as weak alias not strong alias.
28141
28142         [BZ #17635]
28143         * ctype/ctype-c99.c: New file.  isblank implementation moved from
28144         ...
28145         * ctype/ctype-extn.c: ... here.
28146         (__isblank_l): Move to ...
28147         * ctype/ctype-c99_l.c: ... here.  New file.
28148         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
28149         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
28150         Remove variable.
28151         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
28152         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
28153         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
28154         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
28155         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
28156
28157         [BZ #17777]
28158         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
28159         (posix_fadvise64): Define as weak alias not strong alias.
28160         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
28161         (posix_fallocate64): Likewise.
28162         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
28163         Remove variable.
28164         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
28165         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
28166         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
28167         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
28168         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
28169
28170 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
28171
28172         [BZ #16191]
28173         * NEWS: Mention bug fix.
28174         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
28175         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
28176         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
28177         (HOST_STACK_END_ADDR): Likewise.
28178
28179 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28180
28181         [BZ #17748]
28182         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
28183         * math/fegetround.c (fegetround): Rename to __fegetround and
28184         define as weak alias of __fegetround.  Use libm_hidden_weak.
28185         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
28186         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
28187         * sysdeps/arm/fegetround.c (fegetround): Likewise.
28188         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
28189         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
28190         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
28191         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
28192         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
28193         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
28194         Undefine after rather than before function definition; use
28195         parentheses around function name in definition.
28196         (__fegetround): Also undefine macro after function definition.
28197         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
28198         __fegetround and define as weak alias of __fegetround.  Use
28199         libm_hidden_weak.  Do not undefine as macro.
28200         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
28201         Likewise.
28202         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
28203         __fegetround and define as weak alias of __fegetround.  Use
28204         libm_hidden_weak.
28205         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
28206         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
28207         * sysdeps/tile/math_private.h (__fegetround): New inline function.
28208         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
28209         __fegetround and define as weak alias of __fegetround.  Use
28210         libm_hidden_weak.
28211         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
28212         __fegetround instead of fegetround.
28213
28214         [BZ #17782]
28215         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
28216         Condition macro definition on [__USE_MISC].
28217
28218         [BZ #17781]
28219         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28220         (struct sigaction): Change type of sa_flags field to int.
28221
28222         [BZ #17780]
28223         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
28224         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
28225         __glibc_reserved0.
28226
28227         * nptl/version.c (banner): Use single year in copyright notice.
28228
28229         * NEWS: Update copyright dates.
28230         * catgets/gencat.c (print_version): Likewise.
28231         * csu/version.c (banner): Likewise.
28232         * debug/catchsegv.sh: Likewise.
28233         * debug/pcprofiledump.c (print_version): Likewise.
28234         * debug/xtrace.sh (do_version): Likewise.
28235         * elf/ldconfig.c (print_version): Likewise.
28236         * elf/ldd.bash.in: Likewise.
28237         * elf/pldd.c (print_version): Likewise.
28238         * elf/sotruss.sh: Likewise.
28239         * elf/sprof.c (print_version): Likewise.
28240         * iconv/iconv_prog.c (print_version): Likewise.
28241         * iconv/iconvconfig.c (print_version): Likewise.
28242         * locale/programs/locale.c (print_version): Likewise.
28243         * locale/programs/localedef.c (print_version): Likewise.
28244         * login/programs/pt_chown.c (print_version): Likewise.
28245         * malloc/memusage.sh (do_version): Likewise.
28246         * malloc/memusagestat.c (print_version): Likewise.
28247         * malloc/mtrace.pl: Likewise.
28248         * manual/libc.texinfo: Likewise.
28249         * nptl/version.c (banner): Likewise.
28250         * nscd/nscd.c (print_version): Likewise.
28251         * nss/getent.c (print_version): Likewise.
28252         * nss/makedb.c (print_version): Likewise.
28253         * posix/getconf.c (main): Likewise.
28254         * scripts/test-installation.pl: Likewise.
28255         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
28256
28257 2015-01-02  Will Newton  <will.newton@linaro.org>
28258
28259         * sysdeps/arm/armv7/configure: Removed.
28260         * sysdeps/arm/armv7/configure.ac: Likewise.
28261
28262 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
28263
28264         * All files with FSF copyright notices: Update copyright dates
28265         using scripts/update-copyrights.
28266         * intl/plural.c: Regenerated.
28267         * locale/programs/charmap-kw.h: Likewise.
28268         * locale/programs/locfile-kw.h: Likewise.
28269
28270 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28271
28272         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
28273
28274 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28275
28276         [BZ #17748]
28277         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
28278         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
28279         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28280         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28281         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28282         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
28283         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28284         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
28285         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28286         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28287         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28288         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28289         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28290         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28291         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
28292         libm_hidden_def.
28293         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
28294         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
28295         Likewise.
28296         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
28297         define as weak alias of __fegetenv.  Use libm_hidden_weak.
28298         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
28299         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
28300         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
28301         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
28302         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
28303         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
28304         __fegetenv instead of fegetenv.
28305         (libc_feholdsetround_noex_ctx): Likewise.
28306
28307 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
28308
28309         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
28310         (Elf_MIPS_ABIFlags_v0): New structure.
28311         (EF_MIPS_FP64): Define.
28312         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
28313         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
28314         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
28315         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
28316         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
28317         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
28318         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
28319         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
28320         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
28321         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
28322         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
28323         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
28324         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
28325         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
28326         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
28327         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
28328         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
28329         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
28330         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
28331         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
28332         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
28333         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
28334         field.
28335         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
28336         EF_MIPS_FP64.
28337         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
28338         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
28339         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
28340         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
28341         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
28342         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
28343         * sysdeps/mips/tst-abi-interlink.c: Likewise.
28344         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
28345         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
28346         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
28347         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
28348         record the current FP ABI extension.
28349         (mips-mode-switch): Define to show if kernel headers support mode
28350         switching.
28351         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
28352         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
28353         supported SYSV ABI version to 3.
28354         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
28355         feature.
28356
28357 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28358             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28359
28360         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
28361         path.
28362         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
28363
28364 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
28365
28366         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
28367         __fegetround and redefine to call __fegetround.  Remove condition
28368         on [!__NO_MATH_INLINES].
28369         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
28370         function.
28371         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
28372         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
28373         Remove macro.
28374         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
28375         instead of <fenv_libc.h>.
28376         (__llrintl): Call fegetround instead of __fegetround.
28377         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
28378         instead of <fenv_libc.h>.
28379         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28380         (__lrintl): Call fegetround instead of __fegetround.
28381         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
28382         instead of <fenv_libc.h>.
28383         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28384         (__rintl): Call fegetround instead of __fegetround.
28385
28386 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
28387
28388         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
28389         arrays.
28390
28391 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28392
28393         [BZ #17775]
28394         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
28395         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
28396         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
28397
28398 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28399
28400         * sysdeps/i386/tls-macros.h: Include <features.h>.
28401         (TLS_LE): Use non-PIC version for GCC >= 5.0.
28402         (TLS_IE): Likewise.
28403         (TLS_LD): Likewise.
28404         (TLS_GD): Likewise.
28405         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
28406         define for GCC >= 5.0.
28407
28408 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
28409
28410         * math/test-fenv.c (test_single_exception, set_single_exc,
28411         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
28412         feexcp_mask_test, feenable_test, fe_single_test): Add
28413         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
28414         case where they are not used.
28415         * math/libm-test.inc: Likewise.
28416         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
28417         unused in the absence of FP rounding/exception support.
28418         * stdio-common/tst-printf-round.c: Likewise.
28419         * stdlib/tst-strtod-round.c: Likewise.
28420         * stdlib/tst-strtod-underflow.c: Likewise.
28421
28422 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
28423
28424         [BZ #17723]
28425         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
28426         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
28427         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28428         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28429         libm_hidden_weak.
28430         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
28431         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28432         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
28433         libm_hidden_def.
28434         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28435         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28436         libm_hidden_weak.
28437         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
28438         Likewise.
28439         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
28440         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28441         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28442         libm_hidden_weak.
28443         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28444         libm_hidden_def.
28445         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
28446         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
28447         (__feraiseexcept): Likewise.
28448         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
28449         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
28450         libm_hidden_weak.
28451         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
28452         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
28453         libm_hidden_def.
28454         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
28455         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
28456         Use libm_hidden_def.
28457         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
28458         libm_hidden_def.
28459         (feraiseexcept): Define as weak not strong alias.  Use
28460         libm_hidden_weak.
28461         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
28462         New inline function.  Factored out of ...
28463         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
28464         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
28465         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
28466         feraiseexcept.
28467         * math/w_acos.c (__acos): Likewise.
28468         * math/w_asin.c (__asin): Likewise.
28469         * math/w_ilogb.c (__ilogb): Likewise.
28470         * math/w_j0.c (y0): Likewise.
28471         * math/w_j1.c (y1): Likewise.
28472         * math/w_jn.c (yn): Likewise.
28473         * math/w_log.c (__log): Likewise.
28474         * math/w_log10.c (__log10): Likewise.
28475         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
28476         * sysdeps/aarch64/fpu/math_private.h
28477         (libc_feupdateenv_test_aarch64): Likewise.
28478         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
28479         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
28480         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
28481         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
28482         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
28483         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
28484         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
28485         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
28486         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
28487         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28488
28489 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
28490
28491         [BZ #17732]
28492         * io/test-utime.c (main): Replace %ld with %jd and cast to
28493         intmax_t.
28494         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
28495         * nptl/tst-mutex5.c: Include <stdint.h>.
28496         (do_test): Replace %ld with %jd and cast to intmax_t.
28497         * posix/tst-regex.c (run_test): Likewise.
28498         (run_test_backwards): Likewise.
28499         * rt/tst-clock.c: Include <stdint.h>.
28500         (clock_test): Replace %ld with %jd and cast to intmax_t.
28501         * rt/tst-cpuclock1.c: Include <stdint.h>.
28502         (do_test): Replace %lu with %ju and cast to uintmax_t.
28503         * rt/tst-cpuclock2.c: Include <stdint.h>.
28504         (do_test): Replace %lu with %ju and cast to uintmax_t.
28505         * rt/tst-mqueue1.c: Include <stdint.h>.
28506         (check_attrs): Replace %ld with %jd and cast to intmax_t.
28507         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
28508         intmax_t.
28509         * rt/tst-mqueue4.c (do_test): Likewise.
28510         * rt/tst-timer4.c: Include <stdint.h>.
28511         (check_ts): Replace %ld with %jd and cast to intmax_t.
28512         (do_test): Likewise.
28513         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
28514         and cast to intmax_t.
28515         * sysdeps/pthread/tst-timer.c (main): Likewise.
28516         * time/clocktest.c (main): Likewise.
28517         * time/tst-posixtz.c (do_test): Likewise.
28518         * timezone/tst-timezone.c (main): Likewise.
28519
28520 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28521             H.J. Lu  <hongjiu.lu@intel.com>
28522
28523         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
28524         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
28525         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
28526         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
28527         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
28528         version if bit_Fast_Unaligned_Load is set.
28529         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28530         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28531         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28532         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28533         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28534         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28535         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28536         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
28537         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
28538         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
28539         to 4.
28540         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
28541         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
28542         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
28543         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
28544
28545 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
28546
28547         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
28548         instead of #if to avoid a Wundef warning.
28549         * stdlib/tst-limits.c (do_test): Likewise.
28550
28551         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
28552         parallel other exception macros.
28553         (fegetenv): Convert from macro to extern inline so that it applies
28554         retroactively to inline functions already seen by the compiler.
28555         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
28556
28557         * posix/Makefile (before-compile): Use $(objpfx) for
28558         posix-conf-vars-def.h.
28559
28560 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28561
28562         * posix/getconf.c (main): Use size_t for type of I.
28563         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
28564         NSPEC.
28565
28566         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
28567         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
28568         * posix/posix-envs.def: Likewise.
28569         * sysdeps/posix/sysconf.c: Likewise.
28570         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
28571         (specs): Remove array.
28572         * scripts/gen-posix-conf-vars.awk: Support generation of specs
28573         array.
28574
28575         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
28576         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
28577         (__sysconf): Use CONF_IS_* macros.
28578
28579         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
28580         ($(objpfx)posix-conf-vars-def.h): New target.
28581         * posix/posix-conf-vars.list: New file.
28582         * posix/posix-conf-vars.h: New file.
28583         * posix/confstr.c: Include posix-conf-vars.h.
28584         (confstr): Use CONF_IS_* macros.
28585         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
28586         CONF_IS_* macros.
28587         * scripts/gen-posix-conf-vars.awk: New file.
28588
28589 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
28590
28591         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
28592         fegetround): Add no-op macros to avoid linknamespace issues.
28593
28594         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
28595         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
28596
28597         * sysdeps/unix/sysv/linux/tile/sysdep.h
28598         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
28599         assembly-specific section to avoid a redefinition warning.
28600
28601         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
28602         long before casting to pointer to avoid a cast warning.
28603
28604 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
28605
28606         * sysdeps/tile/tilegx/Implies: New file.
28607
28608 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
28609
28610         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
28611
28612 2014-12-23  Florian Weimer  <fweimer@redhat.com>
28613
28614         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
28615
28616 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28617
28618         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
28619         not define.
28620         * sysdeps/unix/sysv/linux/utimes.c: Do not include
28621         <kernel-features.h>.
28622         (__utimes) [__NR_utimes]: Make code unconditional.
28623         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
28624         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
28625         (__ASSUME_UTIMES): Do not undefine.
28626         * sysdeps/unix/sysv/linux/tile/kernel-features.h
28627         (__ASSUME_UTIMES): Likewise.
28628         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28629         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
28630         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
28631         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
28632
28633 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28634
28635         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
28636
28637 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
28638
28639         [BZ #17747]
28640         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
28641         alias to weak alias for j0l, y0l.
28642         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
28643         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
28644
28645         [BZ #17746]
28646         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
28647         conversion.
28648
28649 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
28650
28651         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
28652         to zero if not already defined.
28653
28654 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28655
28656         [BZ #17724]
28657         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
28658         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
28659         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
28660         (char *) casts added.
28661         * sysdeps/ieee754/k_standardf.c: New file.
28662         * sysdeps/ieee754/k_standardl.c: Likewise.
28663         * math/Makefile (libm-support): Remove k_standard.
28664         (libm-calls): Add k_standard.
28665
28666 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28667
28668         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28669         Optimize to avoid an unnecessary FPCR read.
28670
28671 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28672
28673         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28674         Optimize to reduce FPCR/FPSR accesses.
28675
28676 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28677
28678         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
28679         Call libc_fetestexcept_aarch64.
28680
28681 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
28682
28683         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
28684         Call libc_fesetround_aarch64.
28685
28686 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
28687
28688         [BZ #17733]
28689         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
28690         (__bind): Do not define as weak alias.
28691         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
28692         define.
28693         (__getsockname): Do not define as weak alias.
28694
28695 2014-12-22  Will Newton  <will.newton@linaro.org>
28696
28697         * manual/install.texi: Document that we require bison 2.7
28698         or above.
28699         * INSTALL: Regenerate.
28700         * configure.ac: Use AC_CHECK_PROG_VER instead of
28701         AC_PATH_PROG when checking for bison and check for
28702         version 2.7 or above.
28703         * configure: Regenerate.
28704
28705 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
28706
28707         [BZ #17745]
28708         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
28709         * sysdeps/tile/ffsll.c (ffsll): To here.
28710
28711         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
28712
28713 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28714
28715         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
28716         if not defined.
28717         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
28718         definition.
28719         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28720         hidden ___tls_get_addr.
28721         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
28722         hidden __tls_get_addr.
28723         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
28724         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
28725         Likewise.
28726
28727 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28728
28729         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
28730         _dl_init call.
28731
28732 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
28733
28734         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
28735         from "call _dl_init@PLT".
28736         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
28737
28738 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
28739
28740         * manual/search.texi: (Array Sort Function): Clarify stable sorting
28741         guarantees.
28742
28743 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
28744
28745         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
28746
28747 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28748
28749         [BZ #17744]
28750         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
28751         strnlen.
28752
28753 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28754
28755         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
28756         of multu on MIPSr6.
28757         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
28758         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
28759         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
28760         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
28761         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
28762
28763 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
28764
28765         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
28766         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
28767         (PTR_SUBU): Use subu for mips32r6/mips64r6.
28768         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
28769         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
28770         mips32r6/mips64r6.
28771         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
28772
28773 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
28774
28775         * string/strncat.c (STRNCAT): Simplify implementation.
28776
28777 2014-12-19  David S. Miller  <davem@davemloft.net>
28778
28779         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
28780         access the quad as both a long double and as a series of 4 words.
28781
28782         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
28783         link_map->l_info array access.
28784
28785 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
28786
28787         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
28788
28789         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
28790         * math/atest-exp2.c (TIMEOUT): Likewise.
28791         * math/atest-sincos.c (TIMEOUT): Likewise.
28792
28793 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28794
28795         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
28796         -Wno-error with -fno-builtin-lround.
28797
28798 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28799
28800         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
28801         Contains futex constants and functions moved over from ...
28802         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
28803         <lowlevellock-futex.h>.
28804         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
28805         (lll_timedwait_tid): Add comments and parentheses around macro
28806         arguments.
28807
28808 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28809
28810         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
28811         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
28812         (__lll_private_flag): Remove.
28813         (lll_futex_wait): Likewise.
28814         (lll_futex_timed_wait): Likewise.
28815         (lll_futex_wake): Likewise.
28816         (lll_futex_requeue): Likewise.
28817         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
28818         (__lll_timedwait_tid): Spell out argument names.
28819         (lll_timedwait_tid): Add comments and parentheses around macro
28820         arguments.
28821         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
28822         LLL_SHARED and LLL_PRIVATE usable from assembly code.
28823
28824 2014-12-19  Torvald Riegel  <triegel@redhat.com>
28825
28826         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
28827         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
28828         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28829         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
28830         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
28831         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
28832         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
28833         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
28834         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
28835         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
28836         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
28837         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
28838         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
28839         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
28840         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
28841         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
28842         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
28843         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
28844         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
28845
28846 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28847
28848         * sysdeps/x86_64/x32/Makefile: New file.
28849
28850 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
28851
28852         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
28853         1L with (mp_limb_t) 1.
28854
28855 2014-12-17  Roland McGrath  <roland@hack.frob.com>
28856
28857         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
28858         * nptl/libc_pthread_init.c: ... here.
28859         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
28860         * nptl/register-atfork.c: ... here.
28861
28862         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
28863         Use pthread_sigmask rather than INTERNAL_SYSCALL.
28864         Use assert_perror to check its return value.
28865         (__gai_create_helper_thread): Likewise.
28866
28867         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
28868
28869         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
28870
28871 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
28872
28873         [BZ #17725]
28874         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
28875         __profil_counter.
28876         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
28877         Likewise.
28878         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
28879         Likewise.
28880         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
28881         Likewise.
28882         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
28883         (profil_counter): Likewise.
28884         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
28885         (profil_counter): Likewise.
28886         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
28887         Likewise.
28888         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
28889         Likewise.
28890         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
28891         (profil_counter): Likewise.
28892         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
28893         Likewise.
28894         [!__profil_counter] (profil_counter): Define as weak alias of
28895         __profil_counter.
28896         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
28897         (profil_counter): Rename to __profil_counter.
28898         [!__profil_counter] (profil_counter): Define as weak alias of
28899         __profil_counter.
28900         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
28901         (profil_counter): Rename to __profil_counter.
28902         [!__profil_counter] (profil_counter): Define as weak alias of
28903         __profil_counter.
28904         * sysdeps/posix/profil.c: Update comment referring to
28905         profil_counter.
28906         (__profil): Use __profil_counter instead of profil_counter.
28907         * sysdeps/posix/sprofil.c (profil_counter): Rename to
28908         __profil_counter.  Use __profil_counter_ushort and
28909         __profil_counter_uint in definitions.
28910         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
28911         instead of profil_counter_uint and profil_counter_ushort.
28912
28913         [BZ #17722]
28914         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
28915         define as weak alias of __inet_makeaddr.
28916         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
28917         as weak alias of __inet_addr.
28918         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
28919         as weak alias of __inet_pton.  Use libc_hidden_weak.
28920         * include/arpa/inet.h (__inet_pton): Declare.  Use
28921         libc_hidden_proto.
28922         (inet_makeaddr): Don't use libc_hidden_proto.
28923         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
28924         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
28925         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
28926         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
28927         Remove variable.
28928         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
28929         (test-xfail-POSIX/time.h/linknamespace): Likewise.
28930
28931 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
28932
28933         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
28934
28935 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
28936
28937         * stdio-common/bug-vfprintf-nargs.c (do_test):
28938         Cast value to intptr_t to avoid format warning
28939         for usage with PRIdPTR printing macro.
28940
28941 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
28942
28943         * libio/tst-widetext.c (do_test):
28944         Use format type %td instead of %Zd for ptrdiff_t
28945         in order to avoid format warning.
28946
28947 2014-12-17  Andreas Schwab  <schwab@suse.de>
28948
28949         * nscd/mem.c (gc): Add size_t cast to match printf format.
28950
28951 2014-12-16  Roland McGrath  <roland@hack.frob.com>
28952
28953         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
28954         (init): Apply PTR_MANGLE to pointers before storing them.
28955         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
28956         before using them.
28957
28958 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
28959
28960         [BZ #17719]
28961         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
28962         define as weak alias of __memrchr.
28963         (__memrchr): Do not define as strong alias of memrchr.
28964         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
28965         Remove variable.
28966         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
28967         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
28968         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
28969
28970         [BZ #17717]
28971         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
28972         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
28973         (if_indextoname): Rename to __if_indextoname and define as weak
28974         alias of __if_indextoname.  Use libc_hidden_weak.
28975         (if_freenameindex): Rename to __if_freenameindex and define as
28976         weak alias of __if_freenameindex.
28977         (if_nameindex): Rename to __if_nameindex and define as weak alias
28978         of __if_nameindex.
28979         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
28980         __if_nametoindex and define as weak alias of __if_nametoindex.
28981         Use libc_hidden_weak.
28982         (if_freenameindex): Rename to __if_freenameindex and define as
28983         weak alias of __if_freenameindex.
28984         (if_nameindex): Rename to __if_nameindex and define as weak alias
28985         of __if_nameindex.
28986         (if_indextoname): Rename to __if_indextoname and define as weak
28987         alias of __if_indextoname.  Use libc_hidden_weak.
28988         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
28989         __if_nametoindex and define as weak alias of __if_nametoindex.
28990         Use libc_hidden_weak.
28991         (if_freenameindex): Rename to __if_freenameindex and define as
28992         weak alias of __if_freenameindex.  Use libc_hidden_weak.
28993         (if_nameindex_netlink): Use __if_freenameindex instead of
28994         if_freenameindex.
28995         (if_nameindex): Rename to __if_nameindex and define as weak alias
28996         of __if_nameindex.  Use libc_hidden_weak.
28997         (if_indextoname): Rename to __if_indextoname and define as weak
28998         alias of __if_indextoname.  Use libc_hidden_weak.
28999         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
29000         libc_hidden_proto.
29001         [!_ISOMAC] (__if_freenameindex): Likewise.
29002         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
29003         if_nametoindex.
29004         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
29005         variable.
29006         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
29007         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
29008         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
29009         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
29010         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
29011         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
29012         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
29013
29014         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
29015         Remove variable.
29016         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
29017         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
29018
29019 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29020
29021         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
29022         subscript above bounds'
29023
29024         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
29025         bounds.
29026
29027 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
29028
29029         * libio/tst-fopenloc.c: Use test-skeleton.c.
29030
29031         * stdlib/tst-bsearch.c: Use test-skeleton.c.
29032         (entry): Rename to ITEM.
29033         (do_test, comp): Adjust.
29034
29035         * stdio-common/tst-fseek.c: Use test-skeleton.c.
29036
29037 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29038
29039         * string/tester.c: Include <libc-internal.h>.
29040         (test_memset): Ignore -Wmemset-transposed-args.
29041
29042 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29043
29044         * misc/tst-mntent2.c (do_test): Fix warning.
29045
29046 2014-12-16  Torvald Riegel  <triegel@redhat.com>
29047
29048         * elf/tst-unique4lib.cc(a): Mark as used.
29049
29050 2014-12-16  Florian Weimer  <fweimer@redhat.com>
29051
29052         [BZ #17630]
29053         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
29054         names.
29055
29056 2014-12-16  Allan McRae  <allan@archlinux.org>
29057
29058         * stdio-common/Makefile (tests): Re-add bug26.
29059
29060 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
29061
29062         [BZ #17657]
29063         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
29064         static array.
29065
29066 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
29067
29068         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
29069         (__lll_lock_wait): Likewise.
29070         (__lll_timedlock_wait): Likewise.
29071         (__lll_timedwait_tid): Likewise.
29072         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
29073         (__lll_robust_timedlock_wait): Likewise.
29074         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
29075         (lll_cond_trylock): Likewise.
29076         (__lll_lock): Likewise.
29077         (__lll_robust_lock): Likewise.
29078         (__lll_cond_lock): Likewise.
29079         (lll_robust_cond_lock): Likewise.
29080         (__lll_timedlock): Likewise.
29081         (__lll_robust_timedlock): Likewise.
29082         (__lll_unlock): Likewise.
29083         (__lll_robust_unlock): Likewise.
29084         (lll_wait_tid): Likewise.
29085         (lll_timedwait_tid): Likewise.
29086
29087 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29088
29089         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
29090
29091 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29092
29093         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
29094
29095 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29096
29097         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
29098         * stdio-common/tst-sprintf.c: Likewise.
29099
29100 2014-12-15  Torvald Riegel  <triegel@redhat.com>
29101
29102         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
29103
29104 2014-12-15  Jeff Law  <law@redhat.com>
29105
29106         [BZ #16617]
29107         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
29108         on the heap.  (CVE-2012-3406)
29109         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
29110         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
29111         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
29112
29113 2014-12-15  Will Newton  <will.newton@linaro.org>
29114
29115         * manual/install.texi: Bump required version of texinfo
29116         to 4.7 from 4.5.
29117         * INSTALL: Regenerated.
29118         * configure.ac: Check for makeinfo version 4.7 and above.
29119         * configure: Regenerated.
29120
29121 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29122
29123         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
29124         PREFIX, string constant to insert between directory and name.
29125         * sysdeps/posix/shm_open.c: Update caller.
29126         * sysdeps/posix/shm_unlink.c: Likewise.
29127         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
29128         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
29129         (SEM_SHM_PREFIX): New macro.
29130         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
29131         [$(have-thread-library) = no].
29132         * nptl/Makefile (libpthread-routines): Add shm-directory.
29133         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
29134         * sysdeps/nptl/shm-directory.h: New file.
29135         * sysdeps/posix/shm-directory.c
29136         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
29137         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
29138         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
29139         INTERNAL_SYSCALL.
29140         (__where_is_shmfs): Function removed.
29141         (mountpoint, defaultmount, defaultdir, __namedsem_once):
29142         Variables removed.
29143         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
29144         Use SHM_GET_NAME.
29145         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
29146
29147         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
29148         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
29149         unconditional for use inside libpthread.
29150         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
29151
29152 2014-12-12  Roland McGrath  <roland@hack.frob.com>
29153
29154         * nptl/pthread_getaffinity.c: New file.
29155         * nptl/pthread_setaffinity.c: New file.
29156         * nptl/pthread_getname.c: New file.
29157         * nptl/pthread_setname.c: New file.
29158
29159         * nptl/pthread_create.c (START_THREAD_DEFN)
29160         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
29161
29162 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29163             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29164
29165         * resolv/res_send.c (send_vc): Disable warning resplen may
29166         be used uninitialized.
29167
29168 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
29169
29170         * nptl/tst-mutex6.c
29171         (ATTR_NULL): New define checks ATTR against NULL.
29172         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
29173         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
29174
29175 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
29176
29177         [BZ #17581]
29178         * malloc/hooks.c
29179         (mem2mem_check): Revert my previous change.
29180         (malloc_check_get_size): Revert my previous change.
29181         (mem2chunk_check): Revert my previous change.
29182
29183 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29184
29185         * sysdeps/posix/shm-directory.c: New file.
29186         * sysdeps/posix/shm-directory.h: New file.
29187         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
29188         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
29189         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
29190         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
29191         Transmute EPERM to EACCES.
29192         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
29193         from ...
29194         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
29195         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
29196
29197 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29198
29199         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
29200         pointer and cast to uintptr_t.
29201         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
29202         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
29203         Add cast to avoid warning.
29204         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
29205
29206 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29207
29208         * nptl/semaphore.h: Move to ...
29209         * sysdeps/pthread/semaphore.h: ... here.
29210         * Makefile (installed-headers): Change nptl/semaphore.h to
29211         sysdeps/pthread/semaphore.h.
29212
29213 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29214
29215         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
29216         generated error format strings.
29217
29218         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
29219         -Wformat-extra-args warnings for scanf formats.
29220         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
29221         test of zero-length format (duh).
29222         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
29223         corner-case scanf format test.
29224         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
29225         generated fprintf format string.
29226         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
29227         corner-case sprintf format tests.
29228         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
29229         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
29230         -Wformat-extra-args warnings throughout.
29231         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
29232         (CFLAGS-scanf4.c): Likewise.
29233         (CFLAGS-scanf7.c): Likewise.
29234         (CFLAGS-tst-sprintf.c): Likewise.
29235         (CFLAGS-tst-printf.c): Likewise.
29236         (CFLAGS-tst-printfsz.c): Likewise.
29237
29238 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
29239
29240         * include/cpio.h: New file.
29241         * include/fmtmsg.h: Likewise.
29242
29243         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
29244         corresponding format argument to size_t.
29245         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
29246         arguments.
29247         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
29248         corresponding format argument to size_t.
29249         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
29250         arguments.
29251         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
29252         corresponding format argument to size_t.
29253         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
29254         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
29255         (CFLAGS-tst-mbswcs2.c): Likewise.
29256         (CFLAGS-tst-mbswcs3.c): Likewise.
29257         (CFLAGS-tst-mbswcs4.c): Likewise.
29258         (CFLAGS-tst-mbswcs5.c): Likewise.
29259         (CFLAGS-tst-trans.c): Likewise.
29260
29261 2014-12-11  Roland McGrath  <roland@hack.frob.com>
29262
29263         * posix/regexbug1.c (main): Use "%s" format with regerror results,
29264         rather than assuming they won't contain any '%'s.
29265
29266 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
29267
29268         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
29269         inhibit_loop_to_libcall to avoid recursive calls.
29270         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
29271         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
29272
29273 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
29274
29275         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
29276         prototype.
29277
29278 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29279
29280         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
29281         integer value instead of boolean.
29282
29283 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
29284
29285         * malloc/malloc.c: Fix powerof2 check.
29286
29287 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29288
29289         * locale/programs/locfile.h (maybe_swap_uint32):
29290         Remove inline and add unused attribute.
29291
29292 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
29293
29294         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
29295         Truncating assembler expression to a .long expression.
29296
29297 2014-12-11  Andreas Schwab  <schwab@suse.de>
29298
29299         * elf/rtld.c (struct map_args): Constify str member.
29300         (do_preload): Constify fname argument.
29301
29302 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29303
29304         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
29305         constants definition.
29306
29307 2014-12-11  Andreas Schwab  <schwab@suse.de>
29308
29309         [BZ #16657]
29310         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
29311         FORCE_ELISION instead of DO_ELISION.
29312         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
29313         Remove.
29314         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
29315         Likewise.
29316
29317         * iconvdata/gconv-modules: Remove duplicate entry.
29318
29319 2014-12-11  Will Newton  <will.newton@linaro.org>
29320
29321         Merge gettext 0.19.3 into intl/.
29322
29323         This involves a number of cosmetic changes to comments
29324         and ANSI function definitions and prototypes throughout
29325         all the files. The gettext copyright header is used but
29326         with the date ranges taken from the glibc copy.
29327
29328         * NEWS: Add gettext merge to 2.21.
29329         * intl/bindtextdom.c: Switch to gettext copyright.
29330         Use ANSI definitions and prototypes.
29331         Use gl_* locking primitives rather than __libc_* ones.
29332         Use __builtin_expect rather than __glibc_likely/unlikely.
29333         * intl/dcgettext.c: Switch to gettext copyright.
29334         Use ANSI definitions and prototypes.
29335         * intl/dcigettext.c: Switch to gettext copyright.
29336         Use ANSI definitions and prototypes.
29337         (INTDIV0_RAISES_SIGFPE): New define.
29338         Use gl_* locking primitives rather than __libc_* ones.
29339         Include eval-plural.h instead of plural-eval.c.
29340         Use __builtin_expect rather than __glibc_likely/unlikely.
29341         * intl/dcngettext.c: Switch to gettext copyright.
29342         Use ANSI definitions and prototypes.
29343         * intl/dgettext.c: Likewise.
29344         * intl/dngettext.c: Likewise.
29345         * intl/plural-eval.c: Renamed to...
29346         * intl/eval-plural.h: ...this.
29347         * intl/explodename.c: Switch to gettext copyright.
29348         Use ANSI definitions and prototypes.
29349         (_nl_explode_name): Use strchr instead of __rawmemchr.
29350         * intl/finddomain.c: Switch to gettext copyright.
29351         Use ANSI definitions and prototypes.
29352         Use gl_* locking primitives rather than __libc_* ones.
29353         (_nl_find_domain): Use malloc rather than alloca for
29354         allocation of temporary locale name.
29355         * intl/gettext.c: Switch to gettext copyright.
29356         Use ANSI definitions and prototypes.
29357         * intl/gettextP.h: Switch to gettext copyright.
29358         Use ANSI definitions and prototypes.
29359         Use gl_* locking primitives rather than __libc_* ones.
29360         * intl/gmo.h: Switch to gettext copyright.
29361         (struct sysdep_string): Move struct segment_pair outside of
29362         struct definition.
29363         * intl/hash-string.c: Use ANSI definitions and prototypes.
29364         * intl/hash-string.h: Switch to gettext copyright.
29365         Use ANSI definitions and prototypes.
29366         * intl/l10nflist.c: Switch to gettext copyright.
29367         Use ANSI definitions and prototypes.
29368         (_nl_normalize_codeset): Avoid integer overflow.
29369         * intl/loadinfo.h: Switch to gettext copyright.
29370         Use ANSI definitions and prototypes.
29371         (LIBINTL_DLL_EXPORTED): New define.
29372         (PATH_SEPARATOR): New define.
29373         * intl/loadmsgcat.c: Switch to gettext copyright.
29374         * intl/localealias.c: Switch to gettext copyright.
29375         Use ANSI definitions and prototypes.
29376         (_nl_expand_alias): Use PATH_SEPARATOR.
29377         * intl/ngettext.c: Switch to gettext copyright.
29378         Use ANSI definitions and prototypes.
29379         * intl/plural-exp.c: Likewise.
29380         * intl/plural-exp.h: Switch to gettext copyright.
29381         Use ANSI definitions and prototypes.
29382         (struct expression): Move definition of enum operator outside
29383         of struct definition.
29384         * intl/plural.c: Regenerate.
29385         * intl/plural.y: Switch to gettext copyright.
29386         Use ANSI definitions and prototypes.
29387         Port to bison 3.0.
29388         * intl/textdomain.c: Switch to gettext copyright.
29389         Use ANSI definitions and prototypes.
29390         Use gl_* locking primitives rather than __libc_* ones.
29391
29392 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
29393
29394         * debug/warning-nop.c: Add used atrribute.
29395
29396 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29397
29398         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
29399
29400         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
29401         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
29402         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
29403
29404 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29405             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29406
29407         [BZ #17634]
29408         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
29409         Undefine after defining function.  Define as weak alias of
29410         __wcschr.  Use libc_hidden_weak.
29411         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
29412         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
29413         (libc_hidden_def): Also define __GI___wcschr alias.
29414         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
29415         __wcschr and define as weak alias of __wcschr.
29416         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
29417         __wcschr.
29418         [!WCSCHR] (DEFAULT_WCSCHR): Define.
29419         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
29420         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
29421         libc_hidden_weak.  Do not use libc_hidden_def.
29422         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
29423         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
29424         __GI___wcschr alias.
29425         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
29426         [IS_IN (libc)] (wcschr): Define as macro expanding to
29427         __redirect_wcschr.
29428         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
29429         [IS_IN (libc)] (__wcschr_power6): Likewise.
29430         [IS_IN (libc)] (__wcschr_power7): Likewise.
29431         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
29432         instead of wcschr.
29433         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
29434         __libc_wcschr.
29435         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
29436         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
29437         __wcschr and define as weak alias of __wcschr.  Use
29438         libc_hidden_builtin_def.
29439         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
29440         as weak alias of __wcschr.  Use libc_hidden_weak.
29441         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
29442         wcschr.
29443         * time/era.c (_nl_init_era_entries): Likewise.
29444         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
29445         variable.
29446         (test-xfail-XPG3/time.h/linknamespace): Likewise.
29447         (test-xfail-XPG4/time.h/linknamespace): Likewise.
29448
29449 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29450
29451         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
29452         format for long int variable.
29453
29454 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
29455
29456         [BZ #10672]
29457         * manual/search.texi: (Array Sort Function): Remove claim how to make
29458         qsort stable.
29459
29460 2014-12-10  Andreas Schwab  <schwab@suse.de>
29461
29462         [BZ #12847]
29463         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
29464         user-controlled locks.
29465
29466 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
29467
29468         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
29469         register.
29470
29471 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
29472
29473         * configure.ac (--disable-werror): New configure option.
29474         (enable_werror): New AC_SUBST.
29475         * configure: Regenerated.
29476         * config.make.in (enable-werror): New variable.
29477         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
29478         -Wno-error=undef.
29479         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
29480         * manual/install.texi (Configuring and compiling): Document
29481         --disable-werror.
29482         * INSTALL: Regenerated.
29483         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
29484         (CFLAGS-tst-chk2.c): Likewise.
29485         (CFLAGS-tst-chk3.c): Likewise.
29486         (CFLAGS-tst-chk4.cc): Likewise.
29487         (CFLAGS-tst-chk5.cc): Likewise.
29488         (CFLAGS-tst-chk6.cc): Likewise.
29489         (CFLAGS-tst-lfschk1.c): Likewise.
29490         (CFLAGS-tst-lfschk2.c): Likewise.
29491         (CFLAGS-tst-lfschk3.c): Likewise.
29492         (CFLAGS-tst-lfschk4.cc): Likewise.
29493         (CFLAGS-tst-lfschk5.cc): Likewise.
29494         (CFLAGS-tst-lfschk6.cc): Likewise.
29495
29496         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
29497         (main): Disable -Wdeprecated-declarations around calls to
29498         register_printf_function.
29499
29500         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
29501         (do_test): Disable -Wdiv-by-zero around some calls to
29502         fwrite_unlocked and fread_unlocked.
29503
29504         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
29505         (DIAG_POP_NEEDS_COMMENT): Likewise.
29506         (_DIAG_STR1): Likewise.
29507         (_DIAG_STR): Likewise.
29508         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
29509         * stdio-common/bug21.c: Include <libc-internal.h>.
29510         (do_test): Disable -Wformat around call to sscanf.
29511         * stdio-common/scanf14.c: Include <libc-internal.h>.
29512         (main): Disable -Wformat around some calls to scanf functions.
29513
29514 2014-12-09  Torvald Riegel  <triegel@redhat.com>
29515
29516         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
29517
29518 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29519
29520         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
29521         stack variable alignment.
29522
29523 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
29524
29525         [BZ #17682]
29526         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
29527         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
29528         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
29529         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
29530         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
29531         __getrlimit instead of getrlimit.
29532         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
29533         __gettimeofday instead of gettimeofday.
29534         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
29535         Likewise.
29536         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
29537         Likewise.
29538         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
29539         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
29540         Remove variable.
29541         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
29542         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
29543
29544 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29545
29546         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
29547         for wide-character tests.
29548
29549 2014-12-04  Roland McGrath  <roland@hack.frob.com>
29550
29551         * io/openat64.c: #include <libc-internal.h>
29552         (__openat64): Prototypify.  Use ignore_value on MODE.
29553         * io/openat.c: Likewise.
29554         * misc/reboot.c: #include <libc-internal.h>
29555         (reboot): Prototypify.  Use ignore_value on HOWTO.
29556         * misc/ptrace.c: #include <libc-internal.h>
29557         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
29558
29559 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
29560
29561         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
29562         XPG4, UNIX98 and XOPEN2K.
29563         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
29564         Remove variable.
29565         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
29566
29567 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29568
29569         * libio/fileops.c: Use ISO C style for function definitions.
29570         * libio/iofopen.c: Likewise.
29571         * libio/wfileops.c: Likewise.
29572
29573         [BZ #17653]
29574         * libio/fileops.c (_IO_new_file_underflow): Unset cached
29575         offset on EOF.
29576         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
29577         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
29578         (fgets_func): Function pointer to fgets and fgetws.
29579         (do_ftell_test): Add test to verify ftell value after read
29580         EOF.
29581         (do_test): Set fgets_func.
29582
29583         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
29584         O_TRUNC flag for w and w+ modes.
29585         (do_rewind_test): Likewise.
29586         (do_ftell_test): Likewise.
29587         (do_write_test): Likewise.
29588
29589         [BZ #17647]
29590         * libio/fileops.c (do_ftell): Seek only when there are
29591         unflushed writes.
29592         * libio/wfileops.c (do_ftell_wide): Likewise.
29593         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
29594         test case.
29595         (do_one_test): Call it.
29596
29597 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
29598
29599         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
29600         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
29601         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
29602         Remove variable.
29603         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
29604         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
29605         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
29606
29607 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29608
29609         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
29610         Remove variable.
29611         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
29612
29613         [BZ #17668]
29614         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
29615         as weak alias of __getifaddrs.  Use libc_hidden_weak.
29616         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29617         __freeifaddrs.  Use libc_hidden_weak.
29618         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
29619         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
29620         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29621         __freeifaddrs.  Use libc_hidden_weak.
29622         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
29623         __getifaddrs and define as weak alias of __getifaddrs.  Use
29624         libc_hidden_weak.
29625         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
29626         __freeifaddrs.  Use libc_hidden_weak.
29627         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
29628         Remove variable.
29629         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
29630         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
29631
29632 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
29633
29634         [BZ #17601]
29635         * sysdeps/mips/start.S (__start): Use indirect jump to call
29636         __libc_start_main.
29637
29638 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
29639
29640         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
29641
29642         * nptl/tst-mutex1.c: Include <stdbool.h>.
29643         [!ATTR] (ATTR_NULL): New macro.
29644         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
29645         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
29646         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
29647
29648         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
29649         to char *.
29650
29651         [BZ #17665]
29652         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
29653         Change conditional to [__USE_MISC].
29654
29655         [BZ #17664]
29656         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
29657         fgets_unlocked.
29658         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
29659         __fgets_unlocked.
29660         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
29661         fgets_unlocked.
29662         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
29663         Remove variable.
29664         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
29665         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
29666         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
29667         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
29668         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
29669         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
29670         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
29671         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
29672         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
29673
29674         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
29675
29676 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29677
29678         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29679         Remove strpbrk objects.
29680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29681         (__libc_ifunc_impl_list): Remove strpbrk implementation.
29682         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
29683         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
29684         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
29685         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
29686
29687         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29688         Remove strcspn objects.
29689         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29690         (__libc_ifunc_impl_list): Remove strcspn implementation.
29691         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
29692         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
29693         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
29694         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
29695
29696         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
29697         Remove strspn objetcs.
29698         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
29699         (__libc_ifunc_impl_list): Remove strspn implementation.
29700         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
29701         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
29702         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
29703         * sysdeps/powerpc/powerpc64/strspn.S: New file.
29704
29705 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
29706
29707         [BZ #17581]
29708         * malloc/hooks.c
29709         (mem2mem_check): Add a terminator to the chain of checking blocks.
29710         (malloc_check_get_size): Use it here.
29711         (mem2chunk_check): Ditto.
29712
29713 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29714
29715         * sysdeps/powerpc/powerpc64/strtok.S: New file.
29716         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
29717
29718 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
29719
29720         * bits/ioctl-types.h: Indent preprocessor directives correctly.
29721
29722         * nptl/nptl-init.c: Include libc-internal.h.
29723         (__pthread_initialize_minimal_internal): Use ROUND_UP.
29724
29725         * elf/ldconfig.c (search_dir): Expand comment.
29726
29727 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
29728
29729         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
29730         variable.
29731         (linknamespace-symlist-stdlibs-tests): Likewise.
29732         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
29733         instead of $(objpfx)symlist-stdlibs.
29734         (linknamespace-libs-isoc): New variable.
29735         (linknamespace-libs): Use $(linknamespace-libs-isoc).
29736         (linknamespace-libs-ISO): New variable.
29737         (linknamespace-libs-ISO99): Likewise.
29738         (linknamespace-libs-ISO11): Likewise.
29739         (linknamespace-libs-XPG3): Likewise.
29740         (linknamespace-libs-XPG4): Likewise.
29741         (linknamespace-libs-POSIX): Likewise.
29742         (linknamespace-libs-UNIX98): Likewise.
29743         (linknamespace-libs-XOPEN2K): Likewise.
29744         (linknamespace-libs-POSIX2008): Likewise.
29745         (linknamespace-libs-XOPEN2K8): Likewise.
29746         ($(objpfx)symlist-stdlibs): Replace by
29747         $(linknamespace-symlist-stdlibs-tests).  Use
29748         $(linknamespace-libs-$*) as set of libraries.
29749         ($(linknamespace-header-tests)): Update dependencies.  Use
29750         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
29751         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
29752         * conform/linknamespace.pl: Remove comment about considering
29753         definitions of symbols from irrelevant libraries.
29754
29755 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
29756
29757         [BZ #13862]
29758         * elf/dl-tls.c: Include <atomic.h>.
29759         (oom): Remove #ifdef SHARED/#endif.
29760         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
29761         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
29762         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
29763         big enough.
29764         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
29765         * nptl/Makefile (tests): Add tst-stack4.
29766         (modules-names): Add tst-stack4mod.
29767         ($(objpfx)tst-stack4): New.
29768         (tst-stack4mod.sos): Likewise.
29769         ($(objpfx)tst-stack4.out): Likewise.
29770         ($(tst-stack4mod.sos)): Likewise.
29771         (clean): Likewise.
29772         * nptl/tst-stack4.c: New file.
29773         * nptl/tst-stack4mod.c: Likewise.
29774
29775 2014-11-27  J. Brown  <jb999@gmx.de>
29776
29777         * sysdeps/x86/bits/string.h: Add recent CPUs.
29778
29779 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29780
29781         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
29782         sigblock.
29783
29784         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
29785         feof.
29786
29787         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
29788         variable.
29789
29790 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
29791
29792         * nscd/connections.c: Include libc-internal.h because of macro
29793         usage ignore_value.
29794
29795 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
29796
29797         * string/bits/string3.h (__warn_memset_zero_len): Don't
29798         declare for gcc newer than 5.0.
29799         (memset): Don't test for zero-length __LEN for gcc newer than
29800         5.0.
29801
29802 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
29803
29804         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
29805         size_t for %zu format.
29806
29807         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
29808         difference, not %ju.
29809
29810 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
29811
29812         * include/libc-internal.h (ignore_value): New macro.
29813         * nscd/connections.c (restart): Wrap calls to setuid and setgid
29814         with ignore_value.
29815
29816         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
29817         definition.
29818
29819         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
29820         pthread_cleanup_push to void *.
29821
29822         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
29823         Undefine.
29824
29825         [BZ #16619]
29826         [BZ #16740]
29827         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
29828         instead of 1L << 52.
29829
29830         * libio/bug-rewind.c (do_test): Check fwscanf return values.
29831         * libio/bug-rewind2.c (do_test): Likewise.
29832
29833         * debug/test-stpcpy_chk-ifunc.c: Remove file.
29834         * debug/test-strcpy_chk-ifunc.c: Likewise.
29835         * wcsmbs/test-wcschr-ifunc.c: Likewise.
29836         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
29837         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
29838         * wcsmbs/test-wcslen-ifunc.c: Likewise.
29839         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
29840         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
29841         * Rules [$(multi-arch) = no] (tests): Do not filter out
29842         $(tests-ifunc).
29843         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
29844         * debug/Makefile (tests-ifunc): Remove variable.
29845         (tests): Do not add $(tests-ifunc).
29846         * wcsmbs/Makefile (tests-ifunc): Remove variable.
29847         (tests): Do not add $(tests-ifunc).
29848         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
29849         [TEST_IFUNC]: Remove conditionals.
29850         * string/test-string.h (TEST_IFUNC): Remove macro.
29851         [TEST_IFUNC]: Remove conditionals.
29852
29853         * string/test-strchr.c [!WIDE] (L): New macro.
29854         [WIDE] (L): Likewise.
29855         (check1): Use CHAR instead of char.  Use L on string and character
29856         constants.
29857
29858 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
29859
29860         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
29861         tests.
29862         * sysdeps/powerpc/bits/atomic.h
29863         (__arch_atomic_exchange_and_add_32_acq): Add definition.
29864         (__arch_atomic_exchange_and_add_32_rel): Likewise.
29865         (atomic_exchange_and_add_acq): Likewise.
29866         (atomic_exchange_and_add_rel): Likewise.
29867         * sysdeps/powerpc/powerpc32/bits/atomic.h
29868         (__arch_atomic_exchange_and_add_64_acq): Add definition.
29869         (__arch_atomic_exchange_and_add_64_rel): Likewise.
29870         * sysdeps/powerpc/powerpc64/bits/atomic.h
29871         (__arch_atomic_exchange_and_add_64_acq): Add definition.
29872         (__arch_atomic_exchange_and_add_64_rel): Likewise.
29873
29874 2014-11-26  Torvald Riegel  <triegel@redhat.com>
29875
29876         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
29877         Change synchronization of __sched_fifo_min_prio and
29878         __sched_fifo_max_prio.
29879         * nptl/pthread_mutexattr_getprioceiling.c
29880         (pthread_mutexattr_getprioceiling): Likewise.
29881         * nptl/pthread_mutexattr_setprioceiling.c
29882         (pthread_mutexattr_setprioceiling): Likewise.
29883         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
29884         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
29885         Likewise.
29886
29887 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
29888
29889         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
29890         void.
29891
29892 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
29893
29894         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
29895         third argument const.
29896
29897 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29898
29899         fnmatch: work around GCC compiler warning bug with uninit var
29900         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
29901         This works around a bug with x86-64 GCC 4.9.2 and earlier
29902         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
29903         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
29904         used uninitialized in this function [-Wmaybe-uninitialized]".
29905
29906 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
29907
29908         * posix/bug-regex31.c (main): Return RES not 0.
29909
29910 2014-11-25  Anton Blanchard <anton@samba.org>
29911
29912         * sysdeps/powerpc/bits/atomic.h
29913         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
29914
29915 2014-11-24  Sterling Augustine  <saugustine@google.com>
29916
29917         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
29918
29919 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
29920
29921         [BZ #17608]
29922         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
29923
29924 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
29925
29926         [BZ #17633]
29927         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
29928         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
29929         variable.
29930         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
29931         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
29932
29933 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
29934
29935         * string/strncpy.c (strncpy): Improve performance by using memset.
29936
29937 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
29938
29939         * string/strcpy.c (strcpy):
29940         Improve performance by using strlen and memcpy.
29941
29942 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
29943
29944         * string/strcoll_l.c (get_next_seq): __always_inline.
29945         * string/strcoll_l.c (do_compare): __always_inline.
29946
29947 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29948
29949         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
29950         defined.
29951         * include/mqueue.h: Likewise.
29952         * include/stdlib.h: Likewise.
29953
29954         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
29955         (get_null_defines): Adjust.
29956         * sunrpc/Makefile: Adjust comment.
29957         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
29958         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
29959         (CFLAGS-interp.c): Likewise.
29960         (CFLAGS-ldconfig.c): Likewise.
29961         (CPPFLAGS-.os): Likewise.
29962         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
29963         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
29964         * extra-modules.mk (extra-modules.mk): Likewise.
29965         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
29966         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
29967         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
29968         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
29969         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
29970         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
29971         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
29972         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
29973         * iconvdata/Makefile (CPPFLAGS): Likewise.
29974         (cpp-srcs-left): Add libof for all iconvdata routines.
29975         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
29976         * include/assert.h: Likewise.
29977         * include/ctype.h: Likewise.
29978         * include/errno.h: Likewise.
29979         * include/libc-symbols.h: Likewise.
29980         * include/math.h: Likewise.
29981         * include/netdb.h: Likewise.
29982         * include/resolv.h: Likewise.
29983         * include/stdio.h: Likewise.
29984         * include/stdlib.h: Likewise.
29985         * include/string.h: Likewise.
29986         * include/sys/stat.h: Likewise.
29987         * include/wctype.h: Likewise.
29988         * intl/l10nflist.c: Likewise.
29989         * libidn/idn-stub.c: Likewise.
29990         * libio/libioP.h: Likewise.
29991         * nptl/libc_multiple_threads.c: Likewise.
29992         * nptl/pthreadP.h: Likewise.
29993         * posix/regex_internal.h: Likewise.
29994         * resolv/res_hconf.c: Likewise.
29995         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
29996         * sysdeps/arm/memmove.S: Likewise.
29997         * sysdeps/arm/sysdep.h: Likewise.
29998         * sysdeps/generic/_itoa.h: Likewise.
29999         * sysdeps/generic/symbol-hacks.h: Likewise.
30000         * sysdeps/gnu/errlist.awk: Likewise.
30001         * sysdeps/gnu/errlist.c: Likewise.
30002         * sysdeps/i386/i586/memcpy.S: Likewise.
30003         * sysdeps/i386/i586/memset.S: Likewise.
30004         * sysdeps/i386/i686/memcpy.S: Likewise.
30005         * sysdeps/i386/i686/memmove.S: Likewise.
30006         * sysdeps/i386/i686/mempcpy.S: Likewise.
30007         * sysdeps/i386/i686/memset.S: Likewise.
30008         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
30009         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
30010         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
30011         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
30012         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
30013         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
30014         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
30015         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
30016         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
30017         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30018         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
30019         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
30020         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
30021         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
30022         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
30023         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
30024         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
30025         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
30026         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
30027         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
30028         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
30029         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
30030         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
30031         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
30032         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
30033         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
30034         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
30035         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
30036         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
30037         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30038         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
30039         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
30040         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
30041         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
30042         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
30043         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
30044         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
30045         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
30046         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30047         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30048         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
30049         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
30050         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30051         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30052         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
30053         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
30054         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
30055         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
30056         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
30057         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
30058         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
30059         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
30060         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
30061         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
30062         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
30063         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
30064         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
30065         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
30066         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
30067         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
30068         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
30069         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
30070         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
30071         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30072         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30073         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
30074         * sysdeps/posix/closedir.c: Likewise.
30075         * sysdeps/posix/opendir.c: Likewise.
30076         * sysdeps/posix/readdir.c: Likewise.
30077         * sysdeps/posix/rewinddir.c: Likewise.
30078         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
30079         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
30080         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
30081         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
30082         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
30083         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
30084         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
30085         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
30086         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
30087         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
30088         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
30089         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
30090         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
30091         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
30092         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
30093         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
30094         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
30095         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
30096         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
30097         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
30098         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
30099         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
30100         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
30101         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
30102         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
30103         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
30104         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
30105         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
30106         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
30107         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
30108         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
30109         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
30110         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
30111         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
30112         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
30113         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
30114         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
30115         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
30116         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
30117         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
30118         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
30119         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
30120         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
30121         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
30122         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
30123         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
30124         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
30125         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
30126         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
30127         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
30128         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
30129         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
30130         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
30131         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
30132         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
30133         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
30134         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
30135         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
30136         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
30137         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
30138         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
30139         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
30140         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
30141         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
30142         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
30143         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
30144         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
30145         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
30146         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
30147         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
30148         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
30149         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
30150         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
30151         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
30152         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
30153         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
30154         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
30155         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
30156         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
30157         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
30158         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
30159         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
30160         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
30161         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
30162         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
30163         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
30164         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
30165         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
30166         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
30167         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
30168         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
30169         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
30170         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
30171         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
30172         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30173         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
30174         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
30175         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
30176         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
30177         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
30178         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30179         * sysdeps/unix/alpha/sysdep.S: Likewise.
30180         * sysdeps/unix/alpha/sysdep.h: Likewise.
30181         * sysdeps/unix/make-syscalls.sh: Likewise.
30182         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30183         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30184         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30185         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
30186         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30187         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
30188         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
30189         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30190         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30191         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
30192         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30193         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30194         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30195         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30196         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30197         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30198         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30199         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30200         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30201         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30202         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
30203         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30204         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30205         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30206         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30207         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30208         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30211         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
30212         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30213         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30214         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30215         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30216         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
30217         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30218         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30219         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30220         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
30221         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
30222         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30223         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30224         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30225         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
30226         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30227         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30228         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30229         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
30230         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30231         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30232         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30233         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30234         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30235         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30236         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
30237         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30238         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30239         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30240         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
30241         * sysdeps/x86_64/memcpy.S: Likewise.
30242         * sysdeps/x86_64/memmove.c: Likewise.
30243         * sysdeps/x86_64/memset.S: Likewise.
30244         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
30245         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30246         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
30247         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
30248         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
30249         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30250         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30251         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
30252         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
30253         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
30254         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
30255         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
30256         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
30257         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30258         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30259         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
30260         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
30261         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
30262         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30263         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
30264         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
30265         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
30266         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
30267         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
30268         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
30269         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
30270         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
30271         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
30272         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30273         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
30274         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
30275         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
30276         * sysdeps/x86_64/strcmp.S: Likewise.
30277
30278         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
30279
30280         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
30281         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
30282         * elf/rtld-Rules: Likewise.
30283         * elf/setup-vdso.h: Likewise.
30284         * include/assert.h: Likewise.
30285         * include/bits/stdlib-float.h: Likewise.
30286         * include/errno.h: Likewise.
30287         * include/sys/stat.h: Likewise.
30288         * include/unistd.h: Likewise.
30289         * sysdeps/aarch64/setjmp.S: Likewise.
30290         * sysdeps/alpha/setjmp.S: Likewise.
30291         * sysdeps/arm/__longjmp.S: Likewise.
30292         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
30293         * sysdeps/arm/setjmp.S: Likewise.
30294         * sysdeps/arm/sysdep.h: Likewise.
30295         * sysdeps/generic/_itoa.h: Likewise.
30296         * sysdeps/generic/dl-sysdep.h: Likewise.
30297         * sysdeps/generic/ldsodefs.h: Likewise.
30298         * sysdeps/i386/dl-tls.h: Likewise.
30299         * sysdeps/i386/setjmp.S: Likewise.
30300         * sysdeps/m68k/setjmp.c: Likewise.
30301         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
30302         * sysdeps/mach/hurd/opendir.c: Likewise.
30303         * sysdeps/posix/getcwd.c: Likewise.
30304         * sysdeps/posix/opendir.c: Likewise.
30305         * sysdeps/posix/profil.c: Likewise.
30306         * sysdeps/powerpc/dl-procinfo.h: Likewise.
30307         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
30308         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
30309         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
30310         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
30311         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
30312         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
30313         * sysdeps/s390/dl-tls.h: Likewise.
30314         * sysdeps/s390/s390-32/setjmp.S: Likewise.
30315         * sysdeps/s390/s390-64/setjmp.S: Likewise.
30316         * sysdeps/sh/sh3/setjmp.S: Likewise.
30317         * sysdeps/sh/sh4/setjmp.S: Likewise.
30318         * sysdeps/unix/alpha/sysdep.h: Likewise.
30319         * sysdeps/unix/arm/sysdep.S: Likewise.
30320         * sysdeps/unix/i386/sysdep.S: Likewise.
30321         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30322         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
30323         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
30324         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
30325         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30326         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
30327         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
30328         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30329         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
30330         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
30331         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
30332         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
30333         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
30334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30336         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
30337         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30338         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30339         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
30340         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30341         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
30342         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30343         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30344         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
30345         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30346         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
30347         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30348         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30349         * sysdeps/x86_64/setjmp.S: Likewise.
30350
30351         * include/math.h: Use IS_IN instead of IS_IN_libm.
30352         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
30353         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30354         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
30355         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
30356         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30357         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
30358         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
30359         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30360         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30361         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
30362         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
30363         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
30364         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
30365         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
30366         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
30367         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
30368         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
30369         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
30370         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
30371         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
30372         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
30373         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
30374         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
30375         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
30376         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
30377         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
30378         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
30379         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30380         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30381         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
30382         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
30383         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
30384         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
30385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
30386         Likewise.
30387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
30388         Likewise.
30389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
30390         Likewise.
30391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
30392         Likewise.
30393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
30394         Likewise.
30395         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
30396         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
30397         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
30398         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
30399         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
30400         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
30401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
30402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
30403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
30404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
30405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
30406         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
30407         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
30408         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
30409         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
30410         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
30411         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
30412         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
30413         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
30414         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
30415         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
30416         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
30417         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
30418         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
30419         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
30420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
30421         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
30422
30423         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
30424         * nptl/pthreadP.h: Likewise.
30425         * nptl_db/structs.def: Likewise.
30426         * sysdeps/arm/sysdep.h: Likewise.
30427         * sysdeps/nptl/bits/libc-lock.h: Likewise.
30428         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
30429         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
30430         * sysdeps/unix/alpha/sysdep.h: Likewise.
30431         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30432         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
30433         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30434         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30435         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30436         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30437         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30438         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30439         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30440         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30441         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30442         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30443         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30444         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
30446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30447         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30448         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30449         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30450         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30451         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30452         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30453         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
30454         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30455         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
30456         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30457
30458         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
30459         * nptl/pthreadP.h: Likewise.
30460         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
30461         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30462         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30463         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
30464         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
30465         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
30466         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
30467         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
30468         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
30469         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
30470         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30471         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
30472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
30473         Likewise.
30474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
30475         Likewise.
30476         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30477         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30478         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30479         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
30480         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30481         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30482         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
30483         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30484
30485         * dlfcn/dladdr.c: Use IS_IN.
30486         * dlfcn/dladdr1.c: Likewise.
30487         * dlfcn/dlclose.c: Likewise.
30488         * dlfcn/dlerror.c: Likewise.
30489         * dlfcn/dlinfo.c: Likewise.
30490         * dlfcn/dlmopen.c: Likewise.
30491         * dlfcn/dlopen.c: Likewise.
30492         * dlfcn/dlsym.c: Likewise.
30493         * dlfcn/dlvsym.c: Likewise.
30494
30495         * include/ifaddrs.h: Use IS_IN.
30496         * inet/check_pf.c: Likewise.
30497         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
30498         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
30499
30500         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
30501         IS_IN_ldconfig.
30502         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
30503         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
30504
30505         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
30506         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
30507         IS_IN (libc).
30508
30509         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
30510
30511         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
30512         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30513         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
30514         * include/libc-symbols.h (IS_IN_LIB): New macro.
30515         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
30516         * include/netdb.h: Likewise.
30517         * include/stap-probe.h: Remove all uses of IN_LIB.
30518
30519         * Makeconfig (module-cppflags-real): Define MODULE_NAME
30520         instead of IN_MODULE.
30521         * include/libc-symbols.h (IN_MODULE): Define using
30522         MODULE_NAME.
30523         (PASTE_NAME, PASTE_NAME1): New macros.
30524         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
30525         of IN_LIB.
30526         (STAP_PROBE_ASM): Likewise.
30527
30528 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30529
30530         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
30531         __mach_init in dlopened libc.
30532
30533 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
30534
30535         * sysdeps/arm/preconfigure.ac: Delete EABI check.
30536         * sysdeps/arm/preconfigure: Regenerate.
30537
30538 2014-11-21  Roland McGrath  <roland@hack.frob.com>
30539
30540         * nptl/pthread_create.c (__pthread_create_2_1): Set
30541         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
30542         when copying values from IATTR into PD.
30543
30544 2014-11-21  Will Newton  <will.newton@linaro.org>
30545             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30546
30547         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
30548         Refactor inline-asm.  Also add comment.
30549
30550         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
30551         ElfW macro instead of hardcoded Elf64 types.
30552         (la_aarch64_gnu_pltenter): Likewise.
30553         * sysdeps/aarch64/dl-machine.h
30554         (elf_machine_runtime_setup): Use ElfW(Addr).
30555
30556         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
30557         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
30558         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
30559         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
30560         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
30561         (R_AARCH64_TLS_DTPMOD64): Rename to ..
30562         (R_AARCH64_TLS_DTPMOD): This.
30563         (R_AARCH64_TLS_DTPREL64): Rename to ...
30564         (R_AARCH64_TLS_DTPREL): This.
30565         (R_AARCH64_TLS_TPREL64): Rename to ...
30566         (R_AARCH64_TLS_TPREL): This.
30567         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
30568         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
30569         R_AARCH64_TLS_TPREL64.
30570         (elf_machine_rela): Likewise.
30571
30572 2014-11-21  Torvald Riegel  <triegel@redhat.com>
30573
30574         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
30575         by setting it to 0.  64b atomics are not supported currently.
30576
30577 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30578
30579         [BZ #16469]
30580         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
30581         search domain names.
30582
30583 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30584
30585         [BZ #16469]
30586         * NEWS: Update.
30587         * resolv/res_query.c (__libc_res_nquerydomain): Retain
30588         trailing dot.
30589         * posix/tst-getaddrinfo5.c: New.
30590         * posix/Makefile (tests): Add it.
30591
30592 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30593
30594         [BZ #14498]
30595         * NEWS: Fixed.
30596         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
30597         after parsing line but before break_if_match.
30598         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
30599         if there is a protocol mismatch.
30600
30601 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
30602
30603         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
30604         because the potential race is on the user-supplied stream.
30605
30606 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30607
30608         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
30609         string literal if not passed a buffer.
30610         * manual/job.texi (ctermid): Update reasoning, note deviation
30611         from posix, suggest mtasurace when not passed a buffer, for
30612         future non-preliminary safety notes.
30613
30614 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30615
30616         * manual/users.texi (cuserid): Fix MT-Safety note for the case
30617         of not passing it a buffer.
30618         Reported by Peng Haitao.
30619
30620 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
30621
30622         * manual/Makefile ($(objpfx)stamp-summary): Require
30623         check-safety.sh to pass.
30624         * manual/check-safety.sh: Wish for verification that every
30625         @deftypefn and @deftypefun is followed by a @safety remark.
30626
30627 2014-11-20  Roland McGrath  <roland@hack.frob.com>
30628
30629         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
30630
30631         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
30632         PTHREAD_CANCEL_ASYNCHRONOUS.
30633         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
30634         send SIGCANCEL.
30635
30636         * nptl/default-sched.h: New file.
30637         * sysdeps/unix/sysv/linux/default-sched.h: New file.
30638         * nptl/pthread_create.c: Include it.
30639         (__pthread_create_2_1): Use collect_default_sched instead of making
30640         Linux syscalls here directly.
30641
30642 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30643
30644         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
30645         __pthread_once): Use C11 atomics.
30646
30647 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30648
30649         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
30650
30651 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30652
30653         * include/atomic.h (__atomic_link_error, __atomic_check_size,
30654         atomic_thread_fence_acquire, atomic_thread_fence_release,
30655         atomic_thread_fence_seq_cst, atomic_load_relaxed,
30656         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
30657         atomic_compare_exchange_weak_relaxed,
30658         atomic_compare_exchange_weak_acquire,
30659         atomic_compare_exchange_weak_release,
30660         atomic_exchange_acquire, atomic_exchange_release,
30661         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
30662         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
30663         atomic_fetch_and_acquire,
30664         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
30665
30666 2014-11-20  Torvald Riegel  <triegel@redhat.com>
30667
30668         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
30669         USE_ATOMIC_COMPILER_BUILTINS): Define.
30670         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
30671         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30672         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
30673         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30674         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
30675         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30676         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
30677         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30678         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
30679         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30680         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
30681         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30682         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
30683         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30684         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
30685         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30686         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30687         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30688         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30689         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30690         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
30691         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30692         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
30693         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30694         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
30695         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30696         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
30697         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30698         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
30699         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30700         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
30701         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30702         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
30703         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30704         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
30705         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30706         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
30707         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30708         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
30709         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
30710
30711 2014-11-19  Roland McGrath  <roland@hack.frob.com>
30712
30713         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
30714         the sched_priority value here.  It was already checked when the user
30715         called pthread_attr_setschedparam.
30716
30717         * nptl/tst-bad-schedattr.c: New file.
30718         * nptl/Makefile (tests): Add it.
30719
30720 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
30721             Florian Weimer  <fweimer@redhat.com>
30722             Joseph Myers  <joseph@codesourcery.com>
30723             Adam Conrad  <adconrad@0c3.net>
30724             Andreas Schwab  <schwab@suse.de>
30725             Brooks  <bmoses@google.com>
30726
30727         [BZ #17625]
30728         * wordexp-test.c (__dso_handle): Add prototype.
30729         (__register_atfork): Likewise.
30730         (__app_register_atfork): New function.
30731         (registered_forks): New global.
30732         (register_fork): New function.
30733         (test_case): Add 3 new tests for WRDE_CMDSUB.
30734         (main): Call __app_register_atfork.
30735         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
30736         fork count is non-zero fail the test.
30737         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
30738         is set.
30739         (parse_dollars): Remove check for WRDE_NOCMD.
30740         (parse_dquote): Likewise.
30741
30742 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30743
30744         * Makeconfig (built-modules): List non-library modules to be
30745         built.
30746         (module-cppflags): Include libc-modules.h for
30747         everything except shlib-versions.v.i.
30748         (CPPFLAGS): Use it.
30749         (before-compile): Add libc-modules.h.
30750         ($(common-objpfx)libc-modules.h,
30751         $(common-objpfx)libc-modules.stmp): New targets.
30752         (common-generated): Add libc-modules.h and libc-modules.stmp.
30753         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
30754         * include/libc-symbols.h: Don't include libc-modules.h.
30755         * include/libc-modules.h: Remove file.
30756         * scripts/gen-libc-modules.awk: New script to generate
30757         libc-modules.h.
30758         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
30759         Depend on libc-modules.stmp.
30760
30761         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
30762
30763         * Makeconfig (in-module): Get value of libof set for the
30764         translation unit.
30765         (CPPFLAGS): Use $(in-module).
30766         * Makerules: Don't suffix routine names for nonlib.
30767         * include/libc-modules.h: New file.
30768         * include/libc-symbols.h: Include libc-modules.h
30769         (IS_IN): New macro to replace IS_IN_* macros.
30770         * elf/Makefile: Set libof-* for each routine.
30771         * elf/rtld-Rules: Likewise.
30772         * extra-modules.mk: Likewise.
30773         * iconv/Makefile: Likewise.
30774         * iconvdata/Makefile: Likewise.
30775         * locale/Makefile: Likewise.
30776         * malloc/Makefile: Likewise.
30777         * nss/Makefile: Likewise.
30778         * sysdeps/gnu/Makefile: Likewise.
30779         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
30780         * sysdeps/unix/sysv/linux/Makefile: Likewise.
30781         * sysdeps/s390/s390-64/Makefile: Likewise.
30782         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
30783         CPPFLAGS for nscd instead of nonlib.
30784
30785 2014-11-18  Roland McGrath  <roland@hack.frob.com>
30786
30787         * nptl/createthread.c: New file.
30788
30789         * nptl/createthread.c: Moved ...
30790         * sysdeps/unix/sysv/linux/createthread.c: ... here.
30791
30792         * nptl/createthread.c: Add proper top-line comment.
30793         (do_clone): Folded into ...
30794         (create_thread): ... here.  Take new arguments STOPPED_START and
30795         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
30796         increment __nptl_threads, do event-reporting logic, do
30797         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
30798         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
30799         resource cleanup if sched_setaffinity or sched_setscheduler fails,
30800         just send SIGCANCEL.
30801         * nptl/pthread_create.c: Forward-declare create_thread before
30802         including createthread.c.
30803         (start_thread): Use new macro START_THREAD_DEFN to replace defining
30804         declaration, and new macro START_THREAD_SELF to replace argument.
30805         Remove return statement.
30806         (report_thread_creation): New function.
30807         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
30808         synchronization logic, and __nptl_nthreads increment here, around
30809         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
30810         PD->parent_cancelhandling here, before create_thread.  When
30811         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
30812         __deallocate_stack, and ENOMEM translation here.
30813
30814 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
30815
30816         [BZ #17616]
30817         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
30818         (mptwo): Rename to __mptwo.
30819         (__inv): Use __mptwo instead of mptwo.
30820         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
30821         (mptwo): Rename to __mptwo.
30822         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
30823         of mpone and __mptwo instead of mptwo.
30824         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
30825         instead of mpone.
30826         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
30827         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
30828         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
30829         of mpone and __mptwo instead of mptwo.
30830         (__mpranred): Use __mpone instead of mpone.
30831         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
30832         variable.
30833         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
30834         (test-xfail-ISO99/math.h/linknamespace): Likewise.
30835         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
30836         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
30837         (test-xfail-ISO11/math.h/linknamespace): Likewise.
30838         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
30839         (test-xfail-XPG3/math.h/linknamespace): Likewise.
30840         (test-xfail-XPG4/math.h/linknamespace): Likewise.
30841         (test-xfail-POSIX/math.h/linknamespace): Likewise.
30842         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
30843         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
30844         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
30845         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
30846         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
30847         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
30848         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
30849         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
30850         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
30851         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
30852
30853 2014-11-18  Tom de Vries  <tom@codesoucery.com>
30854
30855         * manual/signal.texi (Primitives Interrupted by Signals): In section,
30856         replace BSD Handler xref with BSD Signal Handling.
30857
30858 2014-11-17  Richard Henderson  <rth@redhat.com>
30859
30860         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
30861         (_FP_PACK_RAW_2): Remove.
30862         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
30863         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
30864         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
30865         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
30866         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
30867         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
30868         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
30869         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
30870         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
30871         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
30872         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
30873         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
30874         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
30875         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
30876         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
30877         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
30878
30879 2014-11-14  Roland McGrath  <roland@hack.frob.com>
30880
30881         * signal/signal.h [__USE_MISC]
30882         (struct sigvec): Remove type.
30883         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
30884         (sigvec): Remove declaration.
30885         * sysdeps/posix/sigvec.c: Moved ...
30886         * signal/sigvec.c: ... here, replacing old file.
30887         (struct sigvec): New type, copied from old signal.h definition.
30888         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
30889         (__sigvec): Convert definition to prototype.
30890         (sigvec): Replace weak_alias with compat_symbol.
30891         * signal/Versions (libc: GLIBC_2.21): New version set.
30892         * include/signal.h: Remove __sigvec declaration.
30893         * sysdeps/unix/bsd/sigvec.c: Remove file.
30894         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
30895         * manual/signal.texi (BSD Handler): Remove subsection.
30896         Move siginterrupt up to ...
30897         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
30898         (Blocking in BSD): Fold subsection into its parent.
30899         * NEWS: Mention sigvec removal.
30900
30901 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
30902
30903         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
30904         (DLA_FMS): Make definition conditional only on [__FMA4__].
30905         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
30906         definition.
30907
30908         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
30909         Make definition conditional only on [PROF].
30910         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
30911         definition.
30912         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
30913         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
30914
30915         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
30916         !__GNUC__].
30917         * include/signal.h (__sigpause): Move declaration above call to
30918         libc_hidden_proto.
30919         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
30920         variable.
30921         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
30922         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
30923
30924 2014-11-14  David S. Miller  <davem@davemloft.net>
30925
30926         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
30927         Define before including <string/memcpy.c> and <string/mempcpy.c>.
30928
30929 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
30930
30931         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
30932         * configure: Regenerated.
30933         * manual/install.texi (Tools for Compilation): Document a
30934         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
30935         compiler verified to work.
30936         * INSTALL: Regenerated.
30937
30938         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
30939         redeclare with asm name.
30940         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
30941         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
30942         including <string.h>.
30943         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30944         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
30945         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30946         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
30947         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30948         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
30949         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
30950
30951 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
30952
30953         * stdlib/strtol.c (__strtol): Use prototype definition.
30954
30955         [BZ #17594]
30956         * stdlib/strtol.c (SYM__): New macro.
30957         (SYM__1): Likewise.
30958         (__strtol): Likewise.
30959         (strtol): Rename to __strtol and define as weak alias of
30960         __strtol.  Use libc_hidden_weak.
30961
30962 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30963
30964         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
30965         Use numbered labels in inline assembly.
30966
30967 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30968
30969         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
30970         Add setjmp LIBC_PROBE.
30971         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
30972         Likewise.
30973         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
30974         Add longjmp, longjmp_target LIBC_PROBE.
30975         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
30976         Likewise.
30977
30978 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30979
30980         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
30981         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
30982         to get rid of unused variable warning.
30983
30984 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30985
30986         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
30987         Check for unwind_backtrace ==  NULL only in SHARED case.
30988         (__backchain_backtrace): Compile only in SHARED case.
30989         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
30990         Likewise.
30991         (__backchain_backtrace): Declare as static.
30992
30993 2014-11-12  Roland McGrath  <roland@hack.frob.com>
30994
30995         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
30996         (__libc_multiple_threads_ptr): Variable moved ...
30997         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
30998
30999 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
31000
31001         * conform/GlibcConform.pm: New file.
31002         * conform/conformtest.pl: Use GlibcConform module.
31003         * conform/linknamespace.pl: New file.
31004         * conform/list-header-symbols.pl: Likewise.
31005         * conform/Makefile (linknamespace-symlists-base): New variable.
31006         (linknamespace-symlists-tests): Likewise.
31007         (linknamespace-header-base): Likewise.
31008         (linknamespace-header-tests): Likewise.
31009         (tests-special): Add new tests.
31010         ($(linknamespace-symlists-tests)): New rule.
31011         (linknamespace-libs): New variable.
31012         ($(objpfx)symlist-stdlibs): New rule.
31013         ($(linknamespace-header-tests)): Likewise.
31014         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
31015         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
31016         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
31017         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
31018         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
31019         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
31020         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
31021         (test-xfail-ISO/math.h/linknamespace): Likewise.
31022         (test-xfail-ISO/signal.h/linknamespace): Likewise.
31023         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
31024         (test-xfail-ISO/time.h/linknamespace): Likewise.
31025         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
31026         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
31027         (test-xfail-ISO99/math.h/linknamespace): Likewise.
31028         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
31029         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
31030         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
31031         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
31032         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
31033         (test-xfail-ISO11/math.h/linknamespace): Likewise.
31034         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
31035         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
31036         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
31037         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
31038         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
31039         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
31040         (test-xfail-XPG3/math.h/linknamespace): Likewise.
31041         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
31042         (test-xfail-XPG3/search.h/linknamespace): Likewise.
31043         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
31044         (test-xfail-XPG3/time.h/linknamespace): Likewise.
31045         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
31046         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
31047         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
31048         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
31049         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31050         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
31051         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
31052         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
31053         (test-xfail-XPG4/math.h/linknamespace): Likewise.
31054         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
31055         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
31056         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
31057         (test-xfail-XPG4/search.h/linknamespace): Likewise.
31058         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31059         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
31060         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
31061         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
31062         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
31063         (test-xfail-XPG4/time.h/linknamespace): Likewise.
31064         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
31065         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
31066         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
31067         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31068         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31069         (test-xfail-POSIX/math.h/linknamespace): Likewise.
31070         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
31071         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
31072         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
31073         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
31074         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
31075         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
31076         (test-xfail-POSIX/time.h/linknamespace): Likewise.
31077         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
31078         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31079         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
31080         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
31081         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
31082         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31083         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31084         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
31085         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
31086         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
31087         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
31088         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
31089         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
31090         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
31091         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
31092         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
31093         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
31094         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
31095         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31096         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
31097         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
31098         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
31099         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
31100         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
31101         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
31102         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
31103         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31104         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
31105         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
31106         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
31107         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
31108         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31109         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31110         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
31111         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
31112         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
31113         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
31114         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
31115         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
31116         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
31117         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
31118         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31119         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
31120         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
31121         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
31122         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
31123         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
31124         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
31125         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
31126         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31127         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
31128         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
31129         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
31130         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31131         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31132         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31133         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
31134         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
31135         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
31136         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
31137         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
31138         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
31139         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
31140         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
31141         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
31142         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
31143         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
31144         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31145         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
31146         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
31147         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
31148         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
31149         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
31150         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
31151         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
31152         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
31153         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
31154         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
31155         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
31156         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
31157         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
31158         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
31159         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
31160         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
31161         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
31162         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
31163         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
31164         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
31165         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31166         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
31167         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
31168         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
31169         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
31170         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
31171         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
31172         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
31173         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
31174         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31175
31176         [BZ #17589]
31177         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
31178         of fgets_unlocked.
31179
31180         [BZ #17585]
31181         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
31182         (memmem): Rename to __memmem and define as weak alias of
31183         __memmem.  Use libc_hidden_weak.
31184         (__memmem): Use libc_hidden_def.
31185         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
31186         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
31187         memmem.
31188
31189         [BZ #17582]
31190         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
31191         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
31192         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
31193         and define as weak alias of __fgets_unlocked.  Use
31194         libc_hidden_weak.
31195         (__fgets_unlocked): Use libc_hidden_def.
31196         * include/stdio.h (__fgets_unlocked): Declare.  Use
31197         libc_hidden_proto.
31198         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
31199         __fgets_unlocked instead of fgets_unlocked.
31200         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
31201         (GET_NPROCS_CONF_PARSER): Likewise.
31202         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
31203         (GET_NPROCS_CONF_PARSER): Likewise.
31204
31205         [BZ #17574]
31206         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
31207         weak alias of __wmemset.  Use libc_hidden_weak.
31208         (__wmemset): Use libc_hidden_def.
31209         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
31210         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
31211         of wmemset.
31212
31213         [BZ #17573]
31214         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
31215         with asm name __mempcpy.
31216         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
31217
31218         [BZ #17572]
31219         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
31220         and define as weak alias of __rawmemchr.
31221         (__rawmemchr): Do not define as strong alias of rawmemchr.
31222
31223         [BZ #17571]
31224         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
31225         alias of __qsort_r.
31226         (qsort): Call __qsort_r instead of qsort_r.
31227         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
31228         (__qsort_r): Declare.  Call libc_hidden_proto.
31229         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
31230         instead of qsort_r.
31231         * nscd/gai.c (__qsort_r): Define to qsort_r.
31232         * posix/tst-rfc3484.c (__qsort_r): Likewise.
31233         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
31234         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
31235
31236         [BZ #17570]
31237         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
31238         define as weak alias of __malloc_info.
31239
31240         [BZ #17584]
31241         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
31242         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31243         (__rewinddir): Use libc_hidden_def.
31244         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
31245         as weak alias of __rewinddir.  Don't use libc_hidden_def.
31246         (__rewinddir): Use libc_hidden_def.
31247         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
31248         weak alias of __rewinddir.  Don't use libc_hidden_def.
31249         (__rewinddir): Use libc_hidden_def.
31250         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
31251         (__rewinddir): Use libc_hidden_proto.
31252         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
31253         rewinddir.
31254         (__getcwd): Use __rewinddir instead of rewinddir.
31255
31256         [BZ #17583]
31257         * libio/fileno.c (fileno): Rename to __fileno and define as weak
31258         alias of __fileno.  Use libc_hidden_weak.
31259         (__fileno): Use libc_hidden_def.
31260         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
31261         * libio/ftello.c (ftello): Rename to __ftello and define as weak
31262         alias of __ftello.
31263         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
31264         __ftello.
31265         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
31266         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
31267         libc_hidden_def.
31268         (fread_unlocked): Don't use libc_hidden_ver.
31269         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
31270         and define as weak alias of __fread_unlocked.  Don't use
31271         libc_hidden_def.
31272         (__fread_unlocked): Use libc_hidden_def.
31273         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
31274         (ftello): Don't use libc_hidden_proto.
31275         (__ftello): Declare.  Use libc_hidden_proto.
31276         (fread_unlocked): Don't use libc_hidden_proto.
31277         (__fread_unlocked): Declare.  Use libc_hidden_proto.
31278         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
31279         and __ftello instead of fileno, fread_unlocked and ftello.
31280
31281 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
31282
31283         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
31284         GOT12.
31285         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
31286         Likewise.
31287         (_dl_start_user): Likewise.
31288         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
31289
31290 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
31291             Siddhesh Poyarekar  <siddhesh@redhat.com>
31292
31293         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
31294         Move argv and envp down instead of moving argc up.
31295         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
31296
31297 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
31298
31299         [BZ #17506]
31300         * test-skeleton.c (main): Return successful if one of
31301         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
31302         * string/tst-strcoll-overflow.c: Define expected status.
31303
31304 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
31305
31306         [BZ #17475]
31307         * locale/iso-639.def: Define Bhili and Tulu language codes.
31308
31309 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
31310
31311         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
31312
31313 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
31314
31315         [BZ #17555]
31316         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
31317
31318 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
31319
31320         * configure.ac: Updated check of minimal required version to
31321         2.22.
31322         * manual/install.texi (Tools for Compilation): Updated version
31323         number.
31324         * configure: Regenerated.
31325         * INSTALL: Likewise.
31326
31327 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
31328
31329         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
31330         __tls_get_addr.
31331
31332 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
31333
31334         * include/sys/wait.h (__libc_waitpid): Remove declaration.
31335         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
31336         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31337         libc_hidden_weak.
31338         (waitpid): Define as alias of __waitpid.
31339         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
31340         __waitpid.
31341         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31342         libc_hidden_weak.
31343         (waitpid): Define as alias of __waitpid.
31344         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
31345         __libc_waitpid alias.
31346         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
31347         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
31348         Likewise.
31349         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
31350         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
31351         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
31352         alias.
31353         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
31354         __waitpid.
31355         (__waitpid): Don't define as alias.  Use libc_hidden_def not
31356         libc_hidden_weak.
31357         (waitpid): Define as alias of __waitpid.
31358
31359 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
31360
31361         * manual/llio.texi: Add comment that write safety has been
31362         fixed in Linux.
31363
31364         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
31365         (localplt-build-dso): Add elf/ld.so.
31366         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
31367         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
31368         and free for ld.so.
31369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
31370         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
31371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
31372         Likewise.
31373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
31374         Likewise.
31375         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
31376         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
31377         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
31378         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
31379         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
31380         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
31381         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
31382         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
31383         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
31384         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
31385         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
31386
31387 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
31388
31389         [BZ #14132]
31390         * include/libc-symbols.h (INTUSE): Remove macro.
31391         (INTDEF): Likewise.
31392         (INTVARDEF): Likewise.
31393         (_INTVARDEF): Likewise.
31394         (INTDEF2): Likewise.
31395         (INTVARDEF2): Likewise.
31396         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
31397         rtld_hidden_def instead of INTVARDEF.
31398         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
31399         (_dl_starting_up_internal): Remove declaration.
31400         (_dl_starting_up): Use rtld_hidden_proto.
31401         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
31402         declaration.
31403         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
31404         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
31405         _dl_starting_up.
31406         * elf/dl-writev.h (_dl_writev): Likewise.
31407         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
31408         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
31409         _dl_starting_up_internal.
31410
31411 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31412
31413         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
31414         test-skeleton.c.
31415
31416 2014-11-05  Will Newton  <will.newton@linaro.org>
31417
31418         * benchtests/Makefile: (bench-malloc): Add malloc thread
31419         scalability benchmark.
31420         * benchtests/bench-malloc-threads.c: New file.
31421
31422 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
31423
31424         * sysdeps/aarch64/strchrnul.S: New file.
31425
31426 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31427
31428         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
31429         definition.
31430         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
31431         Likwise.
31432         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
31433         Likewise.
31434         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
31435         Likewise.
31436         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
31437         Likewise.
31438         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
31439         Likewise.
31440
31441 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
31442
31443         * catgets/test-gencat.c: Use test-skeleton.c.
31444         * catgets/tst-catgets.c: Likewise.
31445         * csu/tst-empty.c: Likewise.
31446         * elf/tst-audit2.c: Likewise.
31447         * elf/tst-global1.c: Likewise.
31448         * elf/tst-pathopt.c: Likewise.
31449         * elf/tst-piemod1.c: Likewise.
31450         * elf/tst-tls10.c: Likewise.
31451         * elf/tst-tls11.c: Likewise.
31452         * elf/tst-tls12.c: Likewise.
31453         * gnulib/tst-gcc.c: Likewise.
31454         * iconvdata/tst-e2big.c: Likewise.
31455         * iconvdata/tst-loading.c: Likewise.
31456         * iconv/tst-iconv1.c: Likewise.
31457         * iconv/tst-iconv2.c: Likewise.
31458         * inet/test-inet6_opt.c: Likewise.
31459         * inet/tst-gethnm.c: Likewise.
31460         * inet/tst-network.c: Likewise.
31461         * inet/tst-ntoa.c: Likewise.
31462         * intl/tst-codeset.c: Likewise.
31463         * intl/tst-gettext2.c: Likewise.
31464         * intl/tst-gettext3.c: Likewise.
31465         * intl/tst-ngettext.c: Likewise.
31466         * intl/tst-translit.c: Likewise.
31467         * io/test-stat.c: Likewise.
31468         * libio/test-fmemopen.c: Likewise.
31469         * libio/tst-freopen.c: Likewise.
31470         * libio/tst-sscanf.c: Likewise.
31471         * libio/tst-ungetwc1.c: Likewise.
31472         * libio/tst-ungetwc2.c: Likewise.
31473         * libio/tst-widetext.c: Likewise.
31474         * localedata/tst-ctype.c: Likewise.
31475         * localedata/tst-digits.c: Likewise.
31476         * localedata/tst-leaks.c: Likewise.
31477         * localedata/tst-mbswcs1.c: Likewise.
31478         * localedata/tst-mbswcs2.c: Likewise.
31479         * localedata/tst-mbswcs3.c: Likewise.
31480         * localedata/tst-mbswcs4.c: Likewise.
31481         * localedata/tst-mbswcs5.c: Likewise.
31482         * localedata/tst-setlocale.c: Likewise.
31483         * localedata/tst-trans.c: Likewise.
31484         * localedata/tst-wctype.c: Likewise.
31485         * localedata/tst-xlocale1.c: Likewise.
31486         * login/tst-grantpt.c: Likewise.
31487         * malloc/tst-calloc.c: Likewise.
31488         * malloc/tst-malloc.c: Likewise.
31489         * malloc/tst-mallocstate.c: Likewise.
31490         * malloc/tst-mcheck.c: Likewise.
31491         * malloc/tst-mtrace.c: Likewise.
31492         * malloc/tst-obstack.c: Likewise.
31493         * math/atest-exp2.c: Likewise.
31494         * math/atest-exp.c: Likewise.
31495         * math/atest-sincos.c: Likewise.
31496         * math/test-matherr.c: Likewise.
31497         * math/test-misc.c: Likewise.
31498         * math/test-powl.c: Likewise.
31499         * math/tst-definitions.c: Likewise.
31500         * misc/tst-dirname.c: Likewise.
31501         * misc/tst-efgcvt.c: Likewise.
31502         * misc/tst-fdset.c: Likewise.
31503         * misc/tst-hsearch.c: Likewise.
31504         * misc/tst-mntent2.c: Likewise.
31505         * nptl/tst-sem7.c: Likewise.
31506         * nptl/tst-sem8.c: Likewise.
31507         * nptl/tst-sem9.c: Likewise.
31508         * nss/test-netdb.c: Likewise.
31509         * posix/tst-fnmatch.c: Likewise.
31510         * posix/tst-getlogin.c: Likewise.
31511         * posix/tst-gnuglob.c: Likewise.
31512         * posix/tst-mmap.c: Likewise.
31513         * pwd/tst-getpw.c: Likewise.
31514         * resolv/tst-inet_ntop.c: Likewise.
31515         * rt/tst-timer.c: Likewise.
31516         * stdio-common/test-fseek.c: Likewise.
31517         * stdio-common/test-popen.c: Likewise.
31518         * stdio-common/test-vfprintf.c: Likewise.
31519         * stdio-common/tst-cookie.c: Likewise.
31520         * stdio-common/tst-fileno.c: Likewise.
31521         * stdio-common/tst-gets.c: Likewise.
31522         * stdio-common/tst-obprintf.c: Likewise.
31523         * stdio-common/tst-perror.c: Likewise.
31524         * stdio-common/tst-sprintf2.c: Likewise.
31525         * stdio-common/tst-sprintf3.c: Likewise.
31526         * stdio-common/tst-sprintf.c: Likewise.
31527         * stdio-common/tst-swprintf.c: Likewise.
31528         * stdio-common/tst-tmpnam.c: Likewise.
31529         * stdio-common/tst-unbputc.c: Likewise.
31530         * stdio-common/tst-wc-printf.c: Likewise.
31531         * stdlib/tst-environ.c: Likewise.
31532         * stdlib/tst-fmtmsg.c: Likewise.
31533         * stdlib/tst-limits.c: Likewise.
31534         * stdlib/tst-rand48-2.c: Likewise.
31535         * stdlib/tst-rand48.c: Likewise.
31536         * stdlib/tst-random2.c: Likewise.
31537         * stdlib/tst-random.c: Likewise.
31538         * stdlib/tst-strtol.c: Likewise.
31539         * stdlib/tst-strtoll.c: Likewise.
31540         * stdlib/tst-tls-atexit.c: Likewise.
31541         * stdlib/tst-xpg-basename.c: Likewise.
31542         * string/test-ffs.c: Likewise.
31543         * string/tst-bswap.c: Likewise.
31544         * string/tst-inlcall.c: Likewise.
31545         * string/tst-strtok.c: Likewise.
31546         * string/tst-strxfrm.c: Likewise.
31547         * sysdeps/x86_64/tst-audit10.c: Likewise.
31548         * sysdeps/x86_64/tst-audit3.c: Likewise.
31549         * sysdeps/x86_64/tst-audit4.c: Likewise.
31550         * sysdeps/x86_64/tst-audit5.c: Likewise.
31551         * time/tst-ftime_l.c: Likewise.
31552         * time/tst-getdate.c: Likewise.
31553         * time/tst-mktime3.c: Likewise.
31554         * time/tst-mktime.c: Likewise.
31555         * time/tst-posixtz.c: Likewise.
31556         * time/tst-strptime2.c: Likewise.
31557         * time/tst-strptime3.c: Likewise.
31558         * wcsmbs/tst-btowc.c: Likewise.
31559         * wcsmbs/tst-mbrtowc.c: Likewise.
31560         * wcsmbs/tst-mbsrtowcs.c: Likewise.
31561         * wcsmbs/tst-wchar-h.c: Likewise.
31562         * wcsmbs/tst-wcpncpy.c: Likewise.
31563         * wcsmbs/tst-wcrtomb.c: Likewise.
31564         * wcsmbs/tst-wcsnlen.c: Likewise.
31565         * wcsmbs/tst-wcstof.c: Likewise.
31566
31567 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
31568
31569         [BZ #14132]
31570         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
31571         INTDEF.
31572         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
31573         declaration.
31574         (_dl_mcount): Use rtld_hidden_proto.
31575         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
31576         _dl_mcount.
31577         * elf/rtld.c (_rtld_global_ro): Likewise.
31578
31579         [BZ #14132]
31580         * elf/dl-init.c (_dl_init): Don't use INTDEF.
31581         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
31582         of _dl_init_internal.
31583         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
31584         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
31585         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
31586         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
31587         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
31588         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
31589         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
31590         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
31591         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
31592         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
31593         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
31594         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
31595         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
31596         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
31597         * sysdeps/tile/dl-start.S (_start): Likewise.
31598         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
31599         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
31600
31601         [BZ #14132]
31602         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
31603         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
31604         (rtld_progname): Make macro definition unconditional.
31605         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
31606         INTDEF.
31607         (dlmopen_doit): Do not use INTUSE with _dl_argv.
31608         (dl_main): Likewise.
31609         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
31610         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
31611         instead of _dl_argv_internal.
31612         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31613         __GI__dl_argv instead of INTUSE(_dl_argv).
31614         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
31615         __GI__dl_argv instead of _dl_argv_internal.
31616
31617         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
31618         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
31619         macro.
31620         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
31621         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
31622         New macro.
31623         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
31624         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
31625         macro.
31626         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
31627         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
31628
31629 2014-11-04  Andreas Schwab  <schwab@suse.de>
31630
31631         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
31632
31633 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31634
31635         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
31636         mtvsrd instruction in binary form.
31637
31638 2014-11-03  Andreas Schwab  <schwab@suse.de>
31639
31640         [BZ #17522]
31641         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
31642         for less than MB_LEN_MAX use a local buffer of that size.
31643         * libio/tst-fputws.c: New file.
31644         * libio/Makefile (tests): Add tst-fputws.
31645
31646 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
31647
31648         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
31649         the size of the fpu_fr.fpu_dregs[] array.
31650
31651 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
31652
31653         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
31654         (__nanosleep): Do not define as alias.
31655         (nanosleep): Define as alias of __nanosleep.
31656         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
31657         __libc_nanosleep name.
31658
31659 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31660
31661         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
31662         install.texi in comment.
31663
31664 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31665
31666         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
31667         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
31668         ... add here and use lwsync or sync ...
31669         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
31670         ... and add here using lwsync.
31671
31672 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
31673
31674         * elf/dl-machine-reject-phdr.h: New file.
31675         * elf/dl-load.c: #include that.
31676         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
31677         if that returned true.
31678
31679 2014-10-31  Roland McGrath  <roland@hack.frob.com>
31680
31681         [BZ #17496]
31682         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
31683         gen-as-const-headers chunk.  Add a big scare comment after the last
31684         safe place to touch before-compile.
31685
31686 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
31687
31688         * manual/install.texi (Tools for Compilation): Update autoconf
31689         version requirements.
31690         * INSTALL: Regenerated.
31691
31692         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
31693         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
31694         (__libc_pselect): Likewise.
31695
31696         [BZ #14138]
31697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
31698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31701
31702 2014-10-31  Torvald Riegel  <triegel@redhat.com>
31703
31704         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
31705         correct barrier instruction.
31706         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
31707         Likewise.
31708         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
31709         Likewise.
31710
31711 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31712
31713         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
31714         after defining inlines.  Instead, just use parens to defeat macro
31715         expansion of __isctype in its declaration.
31716
31717 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31718
31719         * include/sys/uio.h (__libc_readv): Remove declaration.
31720         (__libc_writev): Likewise.
31721         * misc/readv.c (__libc_readv): Rename to __readv.
31722         (__readv): Do not define as alias.
31723         (readv): Define as alias of __readv.
31724         * misc/writev.c (__libc_writev): Rename to __writev.
31725         (__writev): Do not define as alias.
31726         (writev): Define as alias of __writev.
31727         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
31728         (__readv): Do not define as alias.
31729         (readv): Define unconditionally as alias of __readv.
31730         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
31731         (__writev): Do not define as alias.
31732         (writev): Define unconditionally as alias of __writev.
31733         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
31734         name.
31735         (writev): Do not define __libc_writev name.
31736
31737 2014-10-30  Roland McGrath  <roland@hack.frob.com>
31738
31739         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
31740         (convert_charseq): New function, broken out of ...
31741         (use_from_charmap): ... here.  Call it.
31742         (use_to_charmap): Use convert_charseq and free instead of duplicating
31743         its code with a variable-length stack struct.
31744
31745 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
31746
31747         * include/fcntl.h (__libc_creat): Remove declaration.
31748         * io/creat.c (__libc_creat): Rename to creat.
31749         (creat): Do not define as alias.
31750         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
31751         of creat instead of __libc_creat.
31752         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
31753         to creat.
31754         (creat): Do not define as alias.
31755         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
31756         __libc_creat.
31757         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
31758         __libc_creat name.
31759         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
31760         Likewise.
31761
31762 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
31763
31764         * manual/llio.texi: Add comments discussing why write() may be
31765         considered MT-unsafe on Linux.
31766
31767 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
31768
31769         * dl-load.c (local_strdup): Remove.
31770         (expand_dynamic_string_token): Use __strdup.
31771         (decompose_rpath): Likewise.
31772         (_dl_map_object): Likewise.
31773
31774 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
31775
31776         [BZ #14132]
31777         * sysdeps/generic/unwind-dw2-fde.c
31778         (__register_frame_info_bases_internal): Do not declare.
31779         (__register_frame_info_table_bases_internal): Likewise.
31780         (__deregister_frame_info_bases_internal): Likewise.
31781         (__register_frame_info_bases): Declare and use hidden_proto before
31782         definition.  Use hidden_def instead of INTDEF.
31783         (__register_frame_info_table_bases): Likewise.
31784         (__deregister_frame_info_bases): Likewise.
31785         (__register_frame_info): Do not use INTUSE.
31786         (__register_frame): Likewise.
31787         (__register_frame_info_table): Likewise.
31788         (__register_frame_table): Likewise.
31789         (__deregister_frame_info): Likewise.
31790         (__deregister_frame): Likewise.
31791
31792 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
31793
31794         * sysdeps/unix/sysv/linux/arm/kernel-features.h
31795         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
31796         not undefine.
31797         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
31798         Likewise.
31799         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
31800         Likewise.
31801
31802 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
31803
31804         [BZ #14138]
31805         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
31806         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
31807         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
31808         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
31809         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
31810         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
31811         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
31812         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
31813         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
31814         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
31815         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
31816         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
31817         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
31818         syscall.
31819         (setfsuid): Likewise.
31820         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
31821         (setfsuid): Likewise.
31822         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
31823         (setfsuid): Likewise.
31824         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
31825         Likewise.
31826         (setfsuid): Likewise.
31827         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
31828         (setfsuid): Likewise.
31829         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
31830         Likewise.
31831         (setfsuid): Likewise.
31832
31833 2014-10-27  Andreas Schwab  <schwab@suse.de>
31834
31835         [BZ #17501]
31836         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
31837         check for Slow_SSE4_2 feature bit.
31838         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
31839         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
31840         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
31841         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
31842
31843 2014-10-24  Roland McGrath  <roland@hack.frob.com>
31844
31845         * configure.ac: Validate compiler version with a empirical test of
31846         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
31847         $CC -v output.
31848         * configure: Regenerated.
31849
31850         * inet/htons.c (htons): Prototypify.
31851         * inet/htonl.c (htonl): Likewise.
31852
31853 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31854
31855         * string/strncat.c (strncat): Improve performance by using strlen.
31856
31857 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31858
31859         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
31860
31861 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31862
31863         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
31864         Call libc_fetestexcept_aarch64.
31865
31866 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31867
31868         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
31869         Call libc_feholdexcept_aarch64.
31870
31871 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31872
31873         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
31874         Call get_rounding_mode.
31875
31876 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31877
31878         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
31879         Simplify logic.
31880
31881 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
31882
31883         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
31884         Simplify logic.
31885
31886 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
31887
31888         [BZ #14138]
31889         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
31890         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
31891         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
31892         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
31893         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
31894         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
31895         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
31896         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
31897         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
31898         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
31899         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
31900         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
31901         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
31902         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
31903         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
31904         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
31905         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
31906         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
31907         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
31908         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
31909         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
31910         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
31911         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
31912         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
31913         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
31914         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
31915         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
31916         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
31917         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
31918         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
31919         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
31920         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
31921         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
31922         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
31923         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
31924         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
31925         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
31926         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
31927         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
31928         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
31929         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
31930         syscall.
31931         (geteuid): Likewise.
31932         (getgid): Likewise.
31933         (getuid): Likewise.
31934         (getresgid): Likewise.
31935         (getresuid): Likewise.
31936         (getgroups): Likewise.
31937         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
31938         (geteuid): Likewise.
31939         (getgid): Likewise.
31940         (getuid): Likewise.
31941         (getresgid): Likewise.
31942         (getresuid): Likewise.
31943         (getgroups): Likewise.
31944         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
31945         (geteuid): Likewise.
31946         (getgid): Likewise.
31947         (getuid): Likewise.
31948         (getresgid): Likewise.
31949         (getresuid): Likewise.
31950         (getgroups): Likewise.
31951         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
31952         Likewise.
31953         (geteuid): Likewise.
31954         (getgid): Likewise.
31955         (getuid): Likewise.
31956         (getresgid): Likewise.
31957         (getresuid): Likewise.
31958         (getgroups): Likewise.
31959         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
31960         (geteuid): Likewise.
31961         (getgid): Likewise.
31962         (getuid): Likewise.
31963         (getresgid): Likewise.
31964         (getresuid): Likewise.
31965         (getgroups): Likewise.
31966         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
31967         Likewise.
31968         (geteuid): Likewise.
31969         (getgid): Likewise.
31970         (getuid): Likewise.
31971         (getgroups): Likewise.
31972
31973         [BZ #14138]
31974         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
31975         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
31976         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
31977         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
31978         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
31979         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
31980         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
31981         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
31982         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
31983         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
31984         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
31985         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
31986         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
31987         __chown.
31988         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
31989         (lchown): Likewise.
31990         (fchown): Likewise.
31991         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
31992         Likewise.
31993         (lchown): Likewise.
31994         (fchown): Likewise.
31995         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
31996         (lchown): Likewise.
31997         (fchown): Likewise.
31998         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
31999         Likewise.
32000         (lchown): Likewise.
32001         (fchown): Likewise.
32002
32003 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32004
32005         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
32006         Simplify logic.
32007
32008 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32009
32010         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32011         Cleanup logic.
32012
32013 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32014
32015         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
32016         Remove unused include.
32017
32018 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
32019
32020         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
32021         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
32022         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
32023         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
32024
32025 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
32026             Helge Deller <deller@gmx.de>
32027
32028         [BZ #17508]
32029         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
32030         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
32031         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
32032
32033 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
32034
32035         [BZ #14132]
32036         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
32037         Remove macro definition.
32038         (__ashrdi3_v_glibc20): Likewise.
32039         (__lshrdi3_v_glibc20): Likewise.
32040         (__cmpdi2_v_glibc20): Likewise.
32041         (__ucmpdi2_v_glibc20): Likewise.
32042         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
32043         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
32044         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
32045         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
32046         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
32047         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
32048
32049 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32050
32051         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
32052         old GNU extension [0] syntax.
32053         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
32054         alloca rather than an array member with variable length.
32055         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
32056         * nscd/nscd.c (invalidate_db): New function, broken out of ...
32057         (parse_opt): ... here.  Likewise use alloca there.
32058         Validate the -i argument before checking for rootness.
32059         (send_shutdown): New function, broken out of ...
32060         (parse_opt): ... here.
32061
32062 2014-10-22  Roland McGrath  <roland@hack.frob.com>
32063
32064         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
32065         macro to get at the _rt_local_ro field.
32066         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
32067         ([PIC] case) or _dl_hwcap ([!PIC] case).
32068         * sysdeps/arm/setjmp.S: Likewise.
32069
32070         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
32071         * sysdeps/arm/configure.ac: New check to define it.
32072         * sysdeps/arm/configure: Regenerated.
32073         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
32074         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
32075         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
32076         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
32077         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
32078         Use move/movt pair instead of a load.
32079         (LDST_GLOBAL): Macro removed.
32080         (LDR_GLOBAL): New macro replaces it.
32081         (LDR_HIDDEN): New macro.
32082         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
32083         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
32084
32085         * setjmp/tst-setjmp-static.c: New file.
32086         * setjmp/Makefile (tests): Add it.
32087         (tests-static): New variable.
32088
32089 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
32090
32091         [BZ #17485]
32092         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
32093
32094 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
32095
32096         [BZ #14132]
32097         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
32098
32099 2014-10-21  Roland McGrath  <roland@hack.frob.com>
32100
32101         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
32102
32103 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32104
32105         * io/fts.c (dirent_not_directory): New function.
32106         (fts_build): Call it.
32107
32108 2014-10-20  Roland McGrath  <roland@hack.frob.com>
32109
32110         * nptl/version.c (__nptl_main): Use normal __write rather than
32111         INTERNAL_SYSCALL.
32112         (banner): Update copyright years.
32113
32114         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
32115         gettimeofday.
32116         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
32117         * nptl/pthread_cond_timedwait.c: Likewise.
32118         * nptl/pthread_mutex_timedlock.c: Likewise.
32119         * nptl/sem_timedwait.c: Likewise.
32120
32121         * sysdeps/nptl/bits/libc-lock.h
32122         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
32123         (__libc_lock_init_recursive): Return void, not 0.
32124         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
32125         (__libc_rwlock_init): Likewise.
32126         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
32127
32128 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32129
32130         [BZ #15215]
32131         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
32132         (__pthread_once_slow): ... here.
32133         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
32134         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
32135
32136 2014-10-20  Torvald Riegel  <triegel@redhat.com>
32137
32138         [BZ #15215]
32139         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
32140         __PTHREAD_ONCE_FORK_GEN_INCR): New.
32141         * sysdeps/nptl/fork.c (__libc_fork): Use them.
32142         * nptl/pthread_once.c (__pthread_once): Likewise.
32143         Update comments.
32144
32145 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
32146
32147         [BZ #14138]
32148         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
32149         name.
32150         (writev): Use __libc_writev as strong name.
32151         * sysdeps/unix/sysv/linux/readv.c: Remove file.
32152         * sysdeps/unix/sysv/linux/writev.c: Likewise.
32153
32154 2014-10-17  Roland McGrath  <roland@hack.frob.com>
32155
32156         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
32157
32158         * sysdeps/i386/nptl/tls.h
32159         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
32160         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
32161         New macros.
32162         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
32163         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
32164         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
32165         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
32166         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
32167         Call CHECK_THREAD_SYSINFO instead of doing an assert.
32168
32169         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
32170         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
32171         on [__NR_futex].
32172         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
32173         broken out of ...
32174         (__pthread_mutex_init): ... here.  Call it.
32175         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
32176         Conditionalize PI cases on [__NR_futex].
32177         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
32178         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
32179         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
32180
32181         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
32182         conditional on [SIGSETXID].
32183         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
32184         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
32185         is defined.  Likewise for SIGSETXID.
32186         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
32187         Conditionalize definitions on [SIGSETXID].
32188         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
32189         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
32190         unblocking on [SIGCANCEL].
32191
32192         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
32193         [__NR_set_robust_list].
32194
32195 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
32196
32197         * string/strcoll_l.c (get_next_seq): Fix up formatting.
32198         (do_compare): Likewise.
32199
32200 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
32201
32202         [BZ #15884]
32203         * string/strcoll_l.c: Don't include stdio.h.
32204         (coll_seq): Remove members idxarr and rulearr.
32205         (get_next_seq_cached): Remove function.
32206         (get_next_seq): Likewise.
32207         (get_next_seq_nocache): Rename to get_next_seq.
32208         (do_compare): Remove function.
32209         (do_compare_nocache): Rename to do_compare.
32210         (STRCOLL): Remove weight and rules cache.
32211
32212 2014-10-16  Roland McGrath  <roland@hack.frob.com>
32213
32214         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
32215         * sysdeps/arm/sfp-machine.h: ... to here.
32216         * sysdeps/arm/Implies: Remove arm/soft-fp.
32217
32218 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
32219
32220         * conform/data/sys/utsname.h-data (*_t): Allow.
32221         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
32222         [POSIX] (WEXITED): Do not expect constant.
32223         [POSIX] (WSTOPPED): Likewise.
32224         [POSIX] (WNOHANG): Likewise.
32225         [POSIX] (WNOWAIT): Likewise.
32226         [POSIX] (siginfo_t): Do not expect type or elements.
32227         [POSIX] (pid_t): Do not expect type.
32228         [POSIX] (signal.h): Do not allow header.
32229         [POSIX] (sys/resource.h): Likewise.
32230         [POSIX] (si_*): Do not allow pattern.
32231         [POSIX] (W*): Likewise.
32232         [POSIX] (P_*): Likewise.
32233         [POSIX] (BUS_*): Likewise.
32234         [POSIX] (CLD_*): Likewise.
32235         [POSIX] (FPE_*): Likewise.
32236         [POSIX] (ILL_*): Likewise.
32237         [POSIX] (POLL_*): Likewise.
32238         [POSIX] (SEGV_*): Likewise.
32239         [POSIX] (SI_*): Likewise.
32240         [POSIX] (TRAP_*): Likewise.
32241         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
32242         variable.
32243
32244 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
32245
32246         [BZ #12926]
32247         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
32248         infinite loop when __recvmsg returns 0.
32249
32250 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
32251
32252         * CANCEL-FCT-WAIVE: Remove file.
32253         * CANCEL-FILE-WAIVE: Likewise.
32254
32255         [BZ #14132]
32256         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
32257         instead of INTVARDEF.
32258         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32259         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
32260         rtld_hidden_data_def instead of INTVARDEF.
32261         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
32262         * elf/dl-deps.c (expand_dst): Likewise.
32263         * elf/dl-load.c (_dl_dst_count): Likewise.
32264         (_dl_dst_substitute): Likewise.
32265         (decompose_rpath): Likewise.
32266         (_dl_init_paths): Likewise.
32267         (open_path): Likewise.
32268         (_dl_map_object): Likewise.
32269         * elf/rtld.c (dl_main): Likewise.
32270         (process_dl_audit): Likewise.
32271         (process_envvars): Likewise.
32272         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
32273         Remove declaration.
32274         (__libc_enable_secure): Use rtld_hidden_proto.
32275
32276 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32277
32278         * elf/dl-load.c
32279         (add_path): New function broken out of _dl_rtld_di_serinfo.
32280         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
32281
32282 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32283
32284         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
32285         parentheses around macro arguments.
32286         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
32287         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
32288         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
32289         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
32290         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
32291         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32292         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32293         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
32294         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
32295         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
32296         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
32297         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
32298         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
32299         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
32300         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
32301         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
32302         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
32303         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
32304         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
32305         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
32306         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
32307         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
32308         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
32309         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
32310         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
32311         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
32312         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
32313         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
32314         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
32315         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
32316         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
32317         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
32318         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
32319         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
32320         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
32321         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
32322         Likewise.
32323         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
32324         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32325         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32326         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
32327         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
32328         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
32329         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
32330         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
32331         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
32332         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
32333         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
32334         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
32335         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
32336         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
32337         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
32338         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
32339         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
32340         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
32341         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
32342         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
32343         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
32344         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
32345         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
32346         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
32347         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
32348         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
32349         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
32350         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
32351         (_FP_FRAC_SRS_1): Likewise.
32352         (_FP_FRAC_CLZ_1): Likewise.
32353         (_FP_MUL_MEAT_1_imm): Likewise.
32354         (_FP_MUL_MEAT_1_wide): Likewise.
32355         (_FP_MUL_MEAT_1_hard): Likewise.
32356         (_FP_SQRT_MEAT_1): Likewise.
32357         (_FP_FRAC_ASSEMBLE_1): Likewise.
32358         (_FP_FRAC_DISASSEMBLE_1): Likewise.
32359         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
32360         (__FP_CLZ_2): Likewise.
32361         (_FP_MUL_MEAT_2_wide): Likewise.
32362         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
32363         (_FP_MUL_MEAT_2_gmp): Likewise.
32364         (_FP_MUL_MEAT_2_120_240_double): Likewise.
32365         (_FP_SQRT_MEAT_2): Likewise.
32366         (_FP_FRAC_ASSEMBLE_2): Likewise.
32367         (_FP_FRAC_DISASSEMBLE_2): Likewise.
32368         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
32369         (_FP_FRAC_CLZ_4): Likewise.
32370         (_FP_MUL_MEAT_4_wide): Likewise.
32371         (_FP_MUL_MEAT_4_gmp): Likewise.
32372         (_FP_SQRT_MEAT_4): Likewise.
32373         (_FP_FRAC_ASSEMBLE_4): Likewise.
32374         (_FP_FRAC_DISASSEMBLE_4): Likewise.
32375         * soft-fp/op-common.h (_FP_CMP): Likewise.
32376         (_FP_CMP_EQ): Likewise.
32377         (_FP_CMP_UNORD): Likewise.
32378         (_FP_TO_INT): Likewise.
32379         (_FP_FROM_INT): Likewise.
32380         [!__FP_CLZ] (__FP_CLZ): Likewise.
32381         (_FP_DIV_HELP_imm): Likewise.
32382         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
32383         Likewise.
32384         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
32385         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
32386         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
32387         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
32388         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
32389         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32390         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32391         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
32392         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
32393         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
32394         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
32395         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
32396         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
32397         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
32398         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
32399         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
32400         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
32401         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
32402         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
32403         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
32404         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
32405         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
32406         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
32407         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
32408         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
32409         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
32410         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
32411         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
32412         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
32413         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
32414         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
32415         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
32416         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
32417         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
32418         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
32419         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
32420         (FP_UNPACK_RAW_SP): Likewise.
32421         (FP_PACK_RAW_S): Likewise.
32422         (FP_PACK_RAW_SP): Likewise.
32423         (FP_UNPACK_S): Likewise.
32424         (FP_UNPACK_SP): Likewise.
32425         (FP_UNPACK_SEMIRAW_S): Likewise.
32426         (FP_UNPACK_SEMIRAW_SP): Likewise.
32427         (FP_PACK_S): Likewise.
32428         (FP_PACK_SP): Likewise.
32429         (FP_PACK_SEMIRAW_S): Likewise.
32430         (FP_PACK_SEMIRAW_SP): Likewise.
32431         (_FP_SQRT_MEAT_S): Likewise.
32432         (FP_CMP_S): Likewise.
32433         (FP_CMP_EQ_S): Likewise.
32434         (FP_CMP_UNORD_S): Likewise.
32435         (FP_TO_INT_S): Likewise.
32436         (FP_FROM_INT_S): Likewise.
32437
32438         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
32439
32440         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
32441         (FP_EX_INVALID_IMZ): Likewise.
32442         (FP_EX_INVALID_IMZ_FMA): Likewise.
32443         (FP_EX_INVALID_ISI): Likewise.
32444         (FP_EX_INVALID_ZDZ): Likewise.
32445         (FP_EX_INVALID_IDI): Likewise.
32446         (FP_EX_INVALID_SQRT): Likewise.
32447         (FP_EX_INVALID_CVI): Likewise.
32448         (FP_EX_INVALID_VC): Likewise.
32449         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
32450         "invalid" exceptions.
32451         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
32452         (_FP_ADD_INTERNAL): Likewise.
32453         (_FP_MUL): Likewise.
32454         (_FP_FMA): Likewise.
32455         (_FP_DIV): Likewise.
32456         (_FP_CMP_CHECK_NAN): Likewise.
32457         (_FP_SQRT): Likewise.
32458         (_FP_TO_INT): Likewise.
32459         (FP_EXTEND): Likewise.
32460
32461 2014-10-09  Allan McRae  <allan@archlinux.org>
32462
32463         * po/fr.po: Update French translation from translation project.
32464
32465 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
32466
32467         [BZ #14132]
32468         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
32469         of INTDEF.
32470         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
32471         (__cxa_atexit): Use libc_hidden_proto.
32472         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
32473
32474         [BZ #14132]
32475         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
32476         declaration.
32477         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
32478         [!_ISOMAC] (__iswspace_l_internal): Likewise.
32479         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
32480         [!_ISOMAC] (__iswctype_internal): Likewise.
32481         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
32482         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
32483         alias.
32484         (fcntl): Remove __fcntl_internal alias.
32485         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
32486         __connect_internal alias.
32487         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
32488         Likewise.
32489
32490         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
32491         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
32492         FP_DENORM_ZERO.
32493         (_FP_CHECK_FLUSH_ZERO): New macro.
32494         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
32495         (_FP_CMP): Likewise.
32496         (_FP_CMP_EQ): Likewise.
32497         (_FP_TO_INT): Do not set inexact for subnormal arguments if
32498         FP_DENORM_ZERO.
32499         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
32500         (FP_TRUNC): Likewise.
32501
32502         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
32503         treated as invalid conversion, not as normal exponent.
32504
32505         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
32506         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
32507         (_FP_CMP_EQ): Likewise.
32508         (_FP_CMP_UNORD): Likewise.
32509         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
32510         (FP_CMP_EQ_D): Likewise.
32511         (FP_CMP_UNORD_D): Likewise.
32512         * soft-fp/extended.h (FP_CMP_E): Likewise.
32513         (FP_CMP_EQ_E): Likewise.
32514         (FP_CMP_UNORD_E): Likewise.
32515         * soft-fp/quad.h (FP_CMP_Q): Likewise.
32516         (FP_CMP_EQ_Q): Likewise.
32517         (FP_CMP_UNORD_Q): Likewise.
32518         * soft-fp/single.h (FP_CMP_S): Likewise.
32519         (FP_CMP_EQ_S): Likewise.
32520         (FP_CMP_UNORD_S): Likewise.
32521         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
32522         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
32523         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
32524         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
32525         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
32526         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
32527         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
32528         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
32529         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
32530         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
32531         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
32532         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
32533         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
32534         to FP_CMP_Q.
32535         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
32536         FP_CMP_Q.
32537         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
32538         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
32539         FP_CMP_EQ_Q.
32540         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
32541         FP_CMP_Q.
32542         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
32543         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
32544         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
32545         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
32546         FP_CMP_EQ_Q.
32547         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
32548         FP_CMP_Q.
32549         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
32550         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
32551         FP_CMP_EQ_Q.
32552         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
32553         FP_CMP_Q.
32554         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
32555         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
32556         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
32557         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
32558         FP_CMP_EQ_Q.
32559
32560         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
32561         a subnormal result, set the underflow exception if trapping on
32562         underflow is enabled.
32563         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
32564         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
32565         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
32566         redefine to 0.
32567         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
32568         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32569         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
32570         * soft-fp/extendxftf2.c (__extendxftf2): Use
32571         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
32572
32573         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
32574         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
32575         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32576         FP_HANDLE_EXCEPTIONS.
32577         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
32578         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32579         FP_HANDLE_EXCEPTIONS.
32580         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
32581         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32582         FP_HANDLE_EXCEPTIONS.
32583         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
32584         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
32585         FP_HANDLE_EXCEPTIONS.
32586
32587 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
32588
32589         [BZ #14132]
32590         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
32591         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
32592         use INTUSE.
32593         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
32594         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
32595         Remove alias.
32596         (__adjtimex): Define using libc_hidden_ver.
32597         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
32598         Remove declaration.
32599         (ntp_gettime): Call __adjtimex directly.
32600         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
32601         Remove declaration.
32602         (ntp_gettimex): Call __adjtimex directly.
32603         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
32604         __adjtimex_internal alias.
32605
32606 2014-10-08  Roland McGrath  <roland@hack.frob.com>
32607
32608         [BZ #17460]
32609         * nscd/nscd.c (more_help): Rewrite list of tables collection
32610         using xstrdup and asprintf.
32611
32612         * nscd/nscd_conf.c: Remove local xstrdup declaration.
32613
32614 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32615             Roland McGrath  <roland@hack.frob.com>
32616
32617         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
32618         (do_lookup_unique): ... local function 'enter' here; update callers.
32619
32620 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
32621
32622         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
32623         compat_symbol calls on [SHARED].
32624         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
32625         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
32626         Remove.
32627         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32628         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
32629         (oldsetrlimit): Remove.
32630         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32632         (lchown): New syscall entry.
32633         (oldsetrlimit): Remove.
32634         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32635         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
32636         (oldsetrlimit): Remove.
32637         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
32638
32639         [BZ #14138]
32640         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
32641         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
32642         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
32643         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
32644         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
32645         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
32646         (fchown): Likewise.
32647         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
32648         (fchown): Likewise.
32649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
32650         Likewise.
32651
32652 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32653
32654         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
32655         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
32656         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
32657         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
32658         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
32659         Likewise.
32660         (__old_sem_post): Likewise.
32661
32662 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
32663
32664         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
32665         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
32666         HAVE_CLOCK_GETTIME_VSYSCALL macros.
32667         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
32668         Use INLINE_VSYSCALL macro.
32669         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
32670         __vdso_clock_gettime.
32671         * sysdeps/unix/sysv/linux/tile/init-first.c
32672         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
32673         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
32674         __vdso_clock_gettime.
32675
32676         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
32677         to set up frame more cleanly.
32678
32679         * sysdeps/tile/memcmp.c: New file.
32680
32681         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
32682
32683         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
32684         * sysdeps/tile/tilegx/strcasestr.c: New file.
32685         * sysdeps/tile/tilegx/strnlen.c: New file.
32686         * sysdeps/tile/tilegx/strstr.c: New file.
32687
32688         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
32689
32690 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
32691
32692         * nptl/tst-setuid3.c: Write errors to stdout.
32693
32694 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32695
32696         * elf/dl-deps.c
32697         (preload): New functions broken out of _dl_map_object_deps.
32698         (_dl_map_object_deps):  Remove a nested function. Update call sites.
32699
32700 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
32701
32702         [BZ #14138]
32703         * sysdeps/unix/sysv/linux/execve.c: Remove file.
32704         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
32705
32706 2014-10-01  Steve Ellcey  <sellcey@mips.com>
32707
32708         * sysdeps/mips/strcmp.S: New.
32709
32710 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
32711
32712         [BZ #14138]
32713         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
32714         (linkat): Likewise.
32715         (mkdirat): Likewise.
32716         (readlinkat): Likewise.
32717         (renameat): Likewise.
32718         (symlinkat): Likewise.
32719         (unlinkat): Likewise.
32720         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
32721         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
32722         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
32723         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
32724         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
32725         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
32726         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
32727
32728 2014-09-30  Will Newton  <will.newton@linaro.org>
32729
32730         * math/math.h: Define long double math functions if
32731         _LIBC_TEST is defined.
32732         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
32733
32734         * localedata/Makefile: Move assignment to tests-special
32735         into an ifdef testing run-built-tests.
32736         * timezone/Makefile: Likewise.
32737
32738 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
32739
32740         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
32741         with $(BASH) not $(SHELL).
32742
32743 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
32744             Matthew LeGendre  <legendre1@llnl.gov>
32745
32746         [BZ #17411]
32747         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
32748         l_reloc_result.
32749
32750 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32751
32752         * stdio-common/printf_fp.c
32753         (hack_digit): New function, broken out of ...
32754         (__printf_fp): ... local function here.  Update call sites.
32755         hack_digit now takes an additional parameter that is a pointer
32756         to a struct of the referenced locals.  Those locals moved inside
32757         the struct and references updated.
32758
32759 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
32760
32761         * aclocal.m4: Require autoconf 2.69.
32762         * configure: Regenerated.
32763         * sysdeps/aarch64/configure: Likewise.
32764         * sysdeps/alpha/configure: Likewise.
32765         * sysdeps/arm/armv7/configure: Likewise.
32766         * sysdeps/arm/configure: Likewise.
32767         * sysdeps/ia64/configure: Likewise.
32768         * sysdeps/mach/configure: Likewise.
32769         * sysdeps/mips/configure: Likewise.
32770         * sysdeps/s390/configure: Likewise.
32771         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
32772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
32773
32774         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
32775         file.
32776         * sysdeps/ia64/configure.ac: Likewise.
32777
32778 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
32779
32780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
32781         specify symbol version for ld.so.  Do not include entry for
32782         libpthread.
32783         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
32784         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
32785         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32786
32787         [BZ #14171]
32788         * Makeconfig [$(build-shared) = yes]
32789         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
32790         makefiles.
32791         [$(build-shared) = yes && $(soversions.mk-done) = t]
32792         ($(common-objpfx)gnu/lib-names.h): Remove rule.
32793         [$(build-shared) = yes && $(soversions.mk-done) = t]
32794         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
32795         to Makerules.
32796         [$(build-shared) = yes && $(soversions.mk-done) = t]
32797         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
32798         here.
32799         [$(build-shared) = yes && $(soversions.mk-done) = t]
32800         (common-generated): Don't append gnu/lib-names.h and
32801         gnu/lib-names.stmp here.
32802         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
32803         (lib-names-h-abi): New variable.
32804         [$(build-shared) = yes && $(soversions.mk-done) = t]
32805         (lib-names-stmp-abi): Likewise.
32806         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32807         abi-variants] (before-compile): Append
32808         $(common-objpfx)$(lib-names-h-abi).
32809         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32810         abi-variants] (common-generated): Append gnu/lib-names.h.
32811         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32812         abi-variants] (install-others-nosubdir): Depend on
32813         $(inst_includedir)/$(lib-names-h-abi).
32814         [$(build-shared) = yes && $(soversions.mk-done) = t &&
32815         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
32816         [$(build-shared) = yes && $(soversions.mk-done) = t]
32817         ($(common-objpfx)$(lib-names-h-abi)): New rule.
32818         [$(build-shared) = yes && $(soversions.mk-done) = t]
32819         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
32820         [$(build-shared) = yes && $(soversions.mk-done) = t]
32821         (common-generated): Append $(lib-names-h-abi) and
32822         $(lib-names-stmp-abi).
32823         * scripts/lib-names.awk: Do not handle multi being set.
32824         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
32825         Remove variable.
32826         (abi-lp64_be-ld-soname): Likewise.
32827         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
32828         Likewise.
32829         (abi-hard-ld-soname): Likewise.
32830         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
32831         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
32832         Remove variable.
32833         (abi-o32_hard-ld-soname): Likewise.
32834         (abi-o32_soft_2008-ld-soname): Likewise.
32835         (abi-o32_hard_2008-ld-soname): Likewise.
32836         (abi-n32_soft-ld-soname): Likewise.
32837         (abi-n32_hard-ld-soname): Likewise.
32838         (abi-n32_soft_2008-ld-soname): Likewise.
32839         (abi-n32_hard_2008-ld-soname): Likewise.
32840         (abi-n64_soft-ld-soname): Likewise.
32841         (abi-n64_hard-ld-soname): Likewise.
32842         (abi-n64_soft_2008-ld-soname): Likewise.
32843         (abi-n64_hard_2008-ld-soname): Likewise.
32844         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
32845         Likewise.
32846         (abi-64-v2-ld-soname): Likewise.
32847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
32848         ld.so entries.
32849         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
32850         variable.
32851         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
32852         entry.
32853         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
32854         variable.
32855         (abi-64-ld-soname): Likewise.
32856         (abi-x32-ld-soname): Likewise.
32857         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
32858         entry.
32859         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
32860
32861 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
32862
32863         [BZ #14138]
32864         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
32865         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
32866         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
32867         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
32868         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
32869         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
32870         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
32871         syscall entry for GLIBC_2.2 symbol version.
32872         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
32873         Likewise.
32874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
32875         (setrlimit): Likewise.
32876         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
32877         Likewise.
32878
32879 2014-09-23  Will Newton  <will.newton@linaro.org>
32880
32881         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
32882         _LINUX_ARM_SYSDEP_H include guard too.
32883         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
32884         define.
32885
32886 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32887
32888         * sysdeps/unix/sysv/linux/eventfd.c:
32889         Make first argument unsigned.
32890         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
32891         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
32892
32893 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
32894
32895         [BZ #16852]
32896         * socket/recvmmsg.c (recvmmsg): Drop const argument.
32897         * socket/sys/socket.h: Likewise.
32898         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
32899
32900 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32901
32902         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
32903
32904 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
32905
32906         * time/tst-ftime.c: New test.
32907         * time/Makefile (tests): Add tst-ftime.
32908
32909 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
32910
32911         * soft-fp/extended.h: Fix comment formatting.
32912         * soft-fp/op-1.h: Likewise.
32913         * soft-fp/op-2.h: Likewise.
32914         * soft-fp/op-4.h: Likewise.
32915         * soft-fp/op-8.h: Likewise.
32916         * soft-fp/op-common.h: Likewise.
32917         * soft-fp/soft-fp.h: Likewise.
32918
32919         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
32920
32921 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
32922
32923         [BZ #6652]
32924         * Makeconfig (soversions-default-setname): Remove variable.
32925         ($(common-objpfx)soversions.i): Don't pass default_setname to
32926         soversions.awk.
32927         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
32928         oldest_abi to abi-versions.awk.
32929         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
32930         * config.make.in (oldest-abi): Remove variable.
32931         * configure.ac (--enable-oldest-abi): Remove configure option.
32932         * configure: Regenerated.
32933         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
32934         text.
32935         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
32936         * scripts/soversions.awk: Do not handle default_setname variable.
32937         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
32938         variable.
32939         * sysdeps/mach/hurd/configure: Regenerated.
32940         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
32941         variable.
32942         * sysdeps/unix/sysv/linux/configure: Regenerated.
32943
32944 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
32945
32946         * elf/Makefile (CFLAGS-interp.c): Remove.
32947         ($(elf-objpfx)runtime-linker.h): Generate header with linker
32948         path string.
32949         * elf/interp.c: Include generated runtime-linker.h
32950
32951         * Makerules (lib%.so): Don't include $(+interp) in
32952         prerequisites.
32953         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
32954         * dlfcn/eval.c: Remove file.
32955
32956         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
32957         macros.
32958
32959         [BZ #17266]
32960         * misc/sys/cdefs.h: Define __extern_always_inline for clang
32961         4.2 and newer.
32962
32963         [BZ #17370]
32964         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
32965
32966 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
32967             Jakub Jelinek  <jakub@redhat.com>
32968
32969         [BZ #17266]
32970         * libio/stdio.h: Check definition of __fortify_function
32971         instead of __extern_always_inline to include bits/stdio2.h.
32972         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
32973         check if __extern_always_inline is defined.
32974         [__USE_MISC || __USE_XOPEN]: Likewise.
32975         [__USE_ISOC99] Likewise.
32976         * misc/sys/cdefs.h (__fortify_function): Define only if
32977         __extern_always_inline is defined.
32978         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
32979         __extern_always_inline and __extern_inline only for g++-4.3
32980         and newer or a compatible gcc.
32981
32982 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
32983
32984         [BZ #17371]
32985         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
32986         last change to handle zero prefix length.
32987
32988 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32989
32990         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
32991         _SC_REGEX_VERSION.
32992
32993         * posix/getconf.c (vars): Add _POSIX_IPV6 and
32994         _POSIX_RAW_SOCKETS.
32995
32996 2014-09-13  Allan McRae  <allan@archlinux.org>
32997
32998         * po/ru.po: Update Russian translation from translation project.
32999
33000 2014-09-12  Roland McGrath  <roland@hack.frob.com>
33001
33002         * locale/programs/locale.c (show_locale_vars): Inline local function
33003         into its sole call site.  Clean up some style nits.
33004         (print_item): New function, broken out of ...
33005         (show_info): ... local function here.  Clean up style nits.
33006
33007         * locale/programs/ld-ctype.c (set_one_default): New function, broken
33008         out of ...
33009         (set_class_defaults): ... local function set_default here.
33010         Define set_default as a macro locally to pass constant parameters.
33011         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
33012         rather than a shared local.
33013
33014         * stdlib/rpmatch.c (try): New function, broken out of ...
33015         (rpmatch): ... local function here.  Also, prototypify definition.
33016
33017 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
33018
33019         * scripts/soversions.awk: Do not handle configuration names.
33020         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
33021         vendor and os variables to soversions.awk.
33022         * configure.ac: Do not modify gnu-* host_os.
33023         * configure: Regenerated
33024         * shlib-versions: Remove first column with configuration names.
33025         * nptl/shlib-versions: Likewise.
33026         * nptl_db/shlib-versions: Likewise.
33027         * sysdeps/hppa/shlib-versions: Likewise.
33028         * sysdeps/m68k/shlib-versions: Likewise.
33029         * sysdeps/mach/hurd/shlib-versions: Likewise.
33030         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
33031         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
33032         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
33033         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
33034         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
33035         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
33036         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
33037         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
33038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33039         Likewise.
33040         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33041         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33042         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33043         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33044         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33045         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
33046         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
33047         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
33048
33049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33050         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
33051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33052         Regenerated.
33053         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
33054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
33055         Condition symbol version definitions on [HAVE_ELFV2_ABI].
33056
33057         * shlib-versions: Remove OS-specific entries.  Moved to files in
33058         sysdeps.
33059         * sysdeps/mach/hurd/shlib-versions: New file.
33060         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
33061
33062         * nptl/shlib-versions: Remove architecture-specific entries.
33063         Moved to files in sysdeps.
33064         * shlib-versions: Likewise.
33065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
33066         file.
33067         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
33068         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
33069         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
33070         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
33071
33072         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
33073         (UDP_NO_CHECK6_RX): Likewise.
33074
33075 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33076
33077         * sysdeps/posix/sysconf.c (__sysconf): Spell
33078         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
33079
33080 2014-08-12  Florian Weimer  <fweimer@redhat.com>
33081
33082         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
33083         loading.
33084         * iconv/Versions (__gconv_transliterate): Export for use from
33085         gconv modules.
33086         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
33087         (struct __gconv_trans_data, __gconv_trans_fct,
33088         __gconv_trans_context_fct, __gconv_trans_query_fct,
33089         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
33090         definitions.
33091         (struct __gconv_step_data): Remove __trans member.
33092         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
33093         longer hidden.  Remove unused trans_data argument.
33094         * iconv/gconv_int.h (struct trans_struct): Remove definition.
33095         (__gconv_translit_find): Remove declaration.
33096         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
33097         prototype.
33098         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
33099         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
33100         trans_data argument.  Add hidden definition.
33101         (__gconv_translit_find): Remove.
33102         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
33103         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
33104         * iconv/skeleton.c: Remove transliteration initialization.
33105         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
33106         __gconv_step_data initialization.
33107         * libio/iofwide.c (__libio_translit_): Remove.
33108         (_IO_fwide): Adjust struct __gconv_step_data initialization.
33109         * wcsmbs/btowc.c (__btowc): Likewise.
33110         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33111         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
33112         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
33113         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
33114         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
33115         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
33116         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
33117         * wcsmbs/wctob.c (wctob): Likewise.
33118
33119 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
33120
33121         [BZ #16194]
33122         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
33123         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
33124         register usage.
33125         * sysdeps/x86/Makefile: Adjust.
33126
33127 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
33128             Roland McGrath  <roland@hack.frob.com>
33129
33130         * locale/weight.h: Add include guard.
33131         (findidx): Make static rather than auto; take new parameters
33132         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
33133         * locale/weightwc.h: Likewise.
33134         * posix/fnmatch_loop.c
33135         (FCT): Change type of EXTRA from int32_t to wint_t.
33136         Don't include either header inside the function.
33137         Call FINDIDX rather than findidx, and pass new arguments.
33138         #undef FINDIDX at the end of the file.
33139         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
33140         FINDIDX before including fnmatch_loop.c for the non-wide version.
33141         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
33142         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
33143         for the wide version.
33144         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
33145         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
33146         Pass new arguments to findidx.
33147         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
33148         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
33149         Don't #include it inside the function.  Pass new arguments to findidx.
33150         * posix/regex_internal.h
33151         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
33152         (re_string_elem_size_at): Don't #include it inside the function.
33153         Pass new arguments to findidx.
33154         * string/strcoll_l.c: #include WEIGHT_H at top level.
33155         (get_next_seq): Don't #include it inside the function.
33156         Pass new arguments to findidx.
33157         (get_next_seq_nocache): Likewise.
33158         * string/strxfrm_l.c: #include WEIGHT_H at top level.
33159         (STRXFRM): Don't #include it inside the function.
33160         Pass new arguments to findidx.
33161
33162 2014-09-11  Florian Weimer  <fweimer@redhat.com>
33163
33164         [BZ #17344]
33165         * malloc/malloc.c (unlink): Turn asserts into a call to
33166         malloc_printerr.
33167
33168 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
33169
33170         [BZ #17370]
33171         * libio/wfileops (do_ftell_wide): Free OUT.
33172
33173 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
33174
33175         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
33176
33177 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33178
33179         [BZ #17363]
33180         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
33181         group if the current group is empty.
33182
33183 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33184
33185         * benchtests/bench-memset.c (test_main): Add more test from size
33186         from 32 to 512 bytes.
33187         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33188         Add POWER8 memset object.
33189         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
33190         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
33191         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
33192         implementation.
33193         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
33194         Likewise.
33195         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
33196         multiarch POWER8 memset optimization.
33197         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
33198         POWER8 memset optimization.
33199
33200         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
33201         Remove bzero multiarch objects.
33202         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
33203         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
33204         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
33205         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
33206         Remove define.
33207         [__bzero]: Redefine to specific name.
33208         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
33209         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
33210         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
33211         define.
33212         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
33213         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
33214
33215 2014-09-10  Florian Weimer  <fweimer@redhat.com>
33216
33217         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
33218         warnings into errors.
33219
33220         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
33221         __cxa_thread_atexit_impl prototype.
33222
33223 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33224
33225         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
33226         Fix capitalization of error message.
33227
33228 2014-09-09  Steve Ellcey  <sellcey@mips.com>
33229
33230         * sysdeps/mips/preconfigure: Modify ABI tests.
33231
33232 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
33233
33234         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
33235
33236 2014-09-07  Roland McGrath  <roland@hack.frob.com>
33237             Carlos O'Donell  <carlos@systemhalted.org>
33238
33239         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
33240         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
33241         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
33242         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
33243         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
33244         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
33245         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
33246         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
33247         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
33248         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
33249         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
33250         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
33251         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
33252         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
33253         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
33254         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
33255         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
33256         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
33257         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
33258         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
33259         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
33260         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
33261         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
33262         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
33263         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
33264         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
33265         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
33266         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
33267         Deconditionalize the code that was previously under [RESET_PID].
33268         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
33269         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
33270         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
33271         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
33272         include sysdep.h.
33273
33274 2014-09-08  Allan McRae  <allan@archlinux.org>
33275
33276         * version.h (RELEASE): Set to "development".
33277         (VERSION): Set to "2.20.90"
33278
33279 2014-09-07  Allan McRae  <allan@archlinux.org
33280
33281         * version.h (RELEASE): Set to "stable".
33282         (VERSION): Set to "2.20"
33283         * include/features.h (__GLIBC_MINOR__): Set to 20.
33284
33285         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
33286         Liebler.
33287
33288         * po/ko.po: Update Korean translation from translation project.
33289
33290 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
33291
33292         [BZ #17354]
33293         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
33294         macro for handling signed relocations.
33295
33296 2014-09-03  Florian Weimer  <fweimer@redhat.com>
33297
33298         [BZ #17325]
33299         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
33300         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
33301         assert.
33302         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
33303         * iconvdata/ibm935.c (BODY): Likewise.
33304         * iconvdata/ibm937.c (BODY): Likewise.
33305         * iconvdata/ibm939.c (BODY): Likewise.
33306         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
33307         assert.
33308         * iconvdata/Makefile (iconv-test.out): Pass module list to test
33309         script.
33310         * iconvdata/run-iconv-test.sh: New test loop for checking for
33311         decoder crashers.
33312
33313 2014-09-02  Khem Raj  <raj.khem@gmail.com>
33314
33315         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
33316         libm_hidden_ver.
33317
33318 2014-09-01  Allan McRae  <allan@archlinux.org>
33319
33320         * po/eo.po: Update Esperanto translation from translation project.
33321
33322         * po/ca.po: Update Catalan translation from translation project.
33323
33324 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33325
33326         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
33327         __proc_dostop call.
33328
33329 2014-08-27  Mark Wielaard  <mjw@redhat.com>
33330
33331         [BZ #17319]
33332         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
33333         to call set_thread_area instead of hand written asm.
33334         (__NR_set_thread_area): Removed define.
33335         (TLS_FLAG_WRITABLE): Likewise.
33336         (__ASSUME_SET_THREAD_AREA): Remove check.
33337         (TLS_EBX_ARG): Remove define.
33338         (TLS_LOAD_EBX): Likewise.
33339
33340 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33341
33342         Simplify atomicity of socket creation in bind.
33343
33344         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
33345         looking up the name after linking the file.
33346
33347 2014-08-27  Allan McRae  <allan@archlinux.org>
33348
33349         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
33350
33351 2014-08-26  Florian Weimer  <fweimer@redhat.com>
33352
33353         [BZ #17187]
33354         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
33355         trans_compare, open_translit, __gconv_translit_find):
33356         Remove module loading code.
33357
33358 2014-08-26  Allan McRae  <allan@archlinux.org>
33359
33360         * po/vi.po: Update Vietnamese translation from translation project.
33361
33362         * po/uk.po: Update Ukrainian translation from translation project.
33363
33364         * po/fr.po: Update French translation from translation project.
33365
33366         * po/ru.po: Update Russian translation from translation project.
33367
33368         * po/pl.po: Update Polish translation from translation project.
33369
33370         * po/cs.po: Update Czech translation from translation project.
33371
33372         * po/de.po: Update German translation from translation project.
33373
33374         * po/bg.po: Update Bulgarian translation from translation project.
33375
33376         * po/sv.po: Update Sweedish translation from translation project.
33377
33378         * po/nl.po: Update Dutch translation from translation project.
33379
33380         * po/es.po: Update Spanish translation from translation project.
33381
33382 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
33383
33384         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
33385
33386         * catgets/Makefile (CPPFLAGS-gencat): Remove.
33387         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
33388         (CPPFLAGS-iconvconfig): Likewise.
33389         * timezone/Makefile (CPPFLAGS-zic): Likewise.
33390
33391         * include/libc-symbols.h: Remove unnecessary check for
33392         NOT_IN_libc.
33393         * nptl/pthreadP.h: Likewise.
33394         * sysdeps/aarch64/setjmp.S: Likewise.
33395         * sysdeps/alpha/setjmp.S: Likewise.
33396         * sysdeps/arm/sysdep.h: Likewise.
33397         * sysdeps/i386/setjmp.S: Likewise.
33398         * sysdeps/m68k/setjmp.c: Likewise.
33399         * sysdeps/posix/getcwd.c: Likewise.
33400         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
33401         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
33402         * sysdeps/s390/s390-32/setjmp.S: Likewise.
33403         * sysdeps/s390/s390-64/setjmp.S: Likewise.
33404         * sysdeps/sh/sh3/setjmp.S: Likewise.
33405         * sysdeps/sh/sh4/setjmp.S: Likewise.
33406         * sysdeps/unix/alpha/sysdep.h: Likewise.
33407         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
33408         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33409         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
33410         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
33411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
33412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
33413         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33414         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33415         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33416         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33417         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33418         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
33419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33420         * sysdeps/x86_64/setjmp.S: Likewise.
33421
33422 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
33423
33424         [BZ #17263]
33425         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
33426         <stdint.h>.
33427         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
33428         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
33429
33430 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
33431
33432         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
33433
33434         [BZ #17262]
33435         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
33436         and __x86_64__ when disabling x87 inline functions.
33437
33438 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
33439
33440         [BZ #17259]
33441         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
33442         asm statement with __cpuid_count.
33443
33444 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
33445
33446         * configure.ac: Change __ehdr_start code to dereference the struct.
33447         Run readelf on the output to look for relocations.
33448         * configure: Regenerated.
33449
33450 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
33451
33452         [BZ #17261]
33453         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
33454         value to 0.
33455         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
33456
33457 2014-08-12  Roland McGrath  <roland@hack.frob.com>
33458
33459         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
33460
33461 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
33462
33463         [BZ #16892]
33464         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
33465         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
33466
33467 2014-08-12  Sean Anderson  <seanga2@gmail.com>
33468
33469         * malloc/malloc.c: Fix typo in comment.
33470
33471 2014-08-09  Allan McRae  <allan@archlinux.org>
33472
33473         * Regenerate libc.po.
33474
33475 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
33476
33477         * intl/tst-gettext2.sh: Check every lang file for creation.
33478
33479 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33480
33481         * sysdeps/aarch64/fpu/math_private.h
33482         (libc_feholdsetround_noex_aarch64_ctx): New function.
33483
33484 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
33485
33486         * sysdeps/arm/armv6/strcpy.S (strcpy):
33487         Fix performance issue in misaligned cases.
33488
33489 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33490
33491         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
33492         Move definition from termios.h.
33493         (struct termio): Likewise.
33494         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33495         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33496         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33497         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33498         Likewise.
33499         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
33500         Move definition to ioctl-types.h
33501         (struct termio): Likewise.
33502         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
33503         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
33504         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
33505         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
33506         Likewise.
33507
33508 2014-08-05  Richard Henderson  <rth@redhat.com>
33509
33510         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
33511         exceptions.
33512         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
33513         Add fraiseexcpt.
33514         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
33515         Use __feraiseexcept.
33516         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
33517         Protect libm symbols with IS_IN_libm.
33518
33519         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
33520
33521 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
33522
33523         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
33524
33525 2014-08-04  Will Newton  <will.newton@linaro.org>
33526
33527         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
33528         file.
33529
33530 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
33531
33532         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
33533         variants for each function.
33534
33535 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33536
33537         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
33538         appended ...
33539         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
33540         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
33541         appended ...
33542         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
33543         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
33544         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
33545         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
33546         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
33547         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
33548         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
33549         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
33550         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
33551         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
33552         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
33553         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
33554         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
33555         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
33556         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
33557         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
33558         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
33559         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
33560         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
33561         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
33562         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
33563         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
33564         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
33565         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
33566         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
33567         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
33568         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
33569         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
33570         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
33571         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
33572         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
33573         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
33574         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
33575         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
33576         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
33577         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
33578         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
33579         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
33580         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
33581         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
33582         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
33583         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
33584         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
33585         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
33586         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
33587         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
33588         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
33589         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
33590         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
33591         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
33592         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
33593         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
33594         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
33595         Update #include.
33596         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
33597         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
33598
33599 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33600
33601         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
33602         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
33603         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
33604         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
33605         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
33606         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
33607
33608 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33609
33610         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
33611         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
33612         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
33613         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
33614
33615 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33616
33617         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
33618         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
33619         (__libc_vfork): Define function under this name.
33620         (__vfork): Define as an alias.
33621         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
33622         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
33623
33624 2014-08-04  Roland McGrath  <roland@hack.frob.com>
33625
33626         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
33627         that was previously under [RESET_PID].
33628         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
33629
33630 2014-08-04  Andreas Schwab  <schwab@suse.de>
33631
33632         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
33633
33634 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
33635
33636         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
33637         (main): Likewise.
33638
33639 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33640
33641         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
33642
33643 2014-08-01  Richard Henderon  <rth@redhat.com>
33644
33645         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
33646         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
33647         typo in exact zero test.
33648         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33649         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
33650         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33651
33652 2014-08-01  Roland McGrath  <roland@hack.frob.com>
33653
33654         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
33655         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
33656         * sysdeps/arm/sysdep.h: ... here.
33657         [!__ASSEMBLER__]: Include <stdint.h>.
33658
33659 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33660
33661         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
33662         (HAVE_WCTYPE_H): Likewise.
33663         (HAVE_ISWCTYPE): Likewise.
33664         (ENABLE_NLS): Likewise.
33665         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
33666         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
33667
33668         * posix/regex_internal.c: Check if DEBUG is defined and is
33669         set.
33670
33671         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
33672         (HAVE_MBSRTOWCS): Likewise.
33673         * posix/fnmatch.c: Include string.h unconditionally.
33674
33675 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
33676
33677         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
33678         reversal.
33679
33680 2014-07-31  Roland McGrath  <roland@hack.frob.com>
33681
33682         * sysdeps/generic/safe-fatal.h: New file.
33683         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
33684         * nptl/forward.c: Include it.
33685         (__pthread_unwind): Use __safe_fatal as default action, rather
33686         than a bogus use of INTERNAL_SYSCALL that could never work.
33687
33688         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
33689         * configure.ac (libc_cv_builtin_trap): New test.
33690         * configure: Regenerated.
33691         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
33692         (ABORT_INSTRUCTION): Define using __builtin_trap.
33693
33694         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
33695         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
33696         * sysdeps/nptl/nptl-signals.h: New file.
33697         * nptl/pthreadP.h: Include <nptl-signals.h>.
33698
33699 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33700
33701         * sysdeps/s390/s390-64/utf16-utf32-z9.c
33702         (ONE_DIRECTION): Define.
33703         * sysdeps/s390/s390-64/utf8-utf16-z9.c
33704         (ONE_DIRECTION): Define.
33705         * sysdeps/s390/s390-64/utf8-utf32-z9.c
33706         (ONE_DIRECTION): Define.
33707
33708 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
33709
33710         * sysdeps/s390/Makefile: Delete file.
33711         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
33712         * sysdeps/s390/__longjmp.c: Delete file.
33713         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
33714         Remove fields __flags and __reserved.
33715         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
33716         and add versioning.
33717         * sysdeps/s390/rtld-__longjmp.c: Delete file.
33718         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
33719         * sysdeps/s390/rtld-setjmp.S: Likewise.
33720         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
33721         * sysdeps/s390/s390-32/__longjmp.c: ... here.
33722         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
33723         * sysdeps/s390/s390-32/setjmp.S: ... here.
33724         Add versioning.
33725         (__sigsetjmp): Remove setting __flags field.
33726         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
33727         * sysdeps/s390/s390-64/__longjmp.c: ... here.
33728         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
33729         * sysdeps/s390/s390-64/setjmp.S: ... here.
33730         Add versioning.
33731         (__sigsetjmp): Remove setting __flags field.
33732         * sysdeps/s390/setjmp.S: Delete file.
33733         * sysdeps/s390/sigjmp.c: Likewise.
33734         * sysdeps/s390/v1-longjmp.c: Likewise.
33735         * sysdeps/s390/v1-setjmp.h: Likewise.
33736         * sysdeps/s390/v1-sigjmp.c: Likewise.
33737         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
33738         Remove v1-longjmp_chk.
33739         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
33740         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
33741         Include debug/longjmp_chk.c and add versioning.
33742         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
33743         Include nptl/pt-longjmp.c and add versioning.
33744         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
33745         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
33746         Include __longjmp.c.
33747         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
33748         Move to ...
33749         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
33750         (__getcontext): Remove setting __flags field.
33751         Add versioning.
33752         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
33753         Don't restore upper high grps.
33754         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
33755         Likewise.
33756         (__swapcontext): Remove setting uc_flags field.
33757         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
33758         Delete file.
33759         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
33760         Include __longjmp.c.
33761         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
33762         Move to ...
33763         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
33764         (__getcontext): Remove setting __flags field.
33765         Add versioning.
33766         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
33767         (__swapcontext): Remove setting uc_flags field.
33768         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
33769         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
33770         Remove fields uc_high_gprs and __reserved.
33771         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
33772         New file with reverted content.
33773         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
33774         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
33775         Regenerated.
33776         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
33777         Regenerated.
33778
33779 2014-07-31  Andreas Schwab  <schwab@suse.de>
33780
33781         * config.h.in (HAVE_IFUNC): Define to 0.
33782         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
33783         definedness.
33784
33785 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
33786
33787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33788         memmove-avx-unaligned, memcpy-avx-unaligned and
33789         mempcpy-avx-unaligned.
33790         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
33791         Add tests for AVX memcpy functions.
33792         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
33793         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
33794         memcpy_chk.
33795         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
33796         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
33797         memmove_chk.
33798         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
33799         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
33800         mempcpy_chk.
33801         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
33802         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
33803         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
33804
33805 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33806
33807         [BZ #17213]
33808         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
33809         powerpc64le.
33810
33811 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
33812
33813         [BZ #16839]
33814         * manual/llio.texi: Add section about open file description locks.
33815         * manual/examples/ofdlocks.c: Example of open file description
33816         lock usage.
33817         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
33818         F_OFD_SETLK, and F_OFD_SETLKW.
33819
33820 2014-07-23  Allan McRae  <allan@archlinux.org>
33821
33822         * po/es.po: Update Spanish translation from translation project.
33823
33824 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
33825
33826         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
33827
33828 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
33829
33830         [BZ #17078]
33831         * sysdeps/arm/dl-machine.h (elf_machine_rela)
33832         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
33833         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
33834
33835 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
33836
33837         [BZ #17088]
33838         * math/fesetenv.c (__fesetenv)
33839         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
33840         * math/feupdateenv.c (__feupdateenv)
33841         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
33842
33843         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
33844         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33845         (__ASSUME_SOCKETCALL): Do not define.
33846
33847         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
33848         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
33849         (__ASSUME_SOCKETCALL): Do not define.
33850         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
33851         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
33852         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33853         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
33854         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33855         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
33856         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33857         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33858
33859         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
33860         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
33861         (__ASSUME_SOCKETCALL): Do not define.
33862         (__ASSUME_IPC64): Define unconditionally.
33863         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
33864         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33865         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
33866         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33867         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
33868         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33869         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
33870         Likewise.
33871
33872         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
33873         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
33874         (__ASSUME_SOCKETCALL): Do not define.
33875         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
33876         (__ASSUME_FUTEX_LOCK_PI): Likewise.
33877         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33878         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
33879         (__ASSUME_REQUEUE_PI): Define unconditionally.
33880         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
33881         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
33882         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33883         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
33884         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33885         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33886
33887         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
33888         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
33889         (__ASSUME_SOCKETCALL): Do not define.
33890         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
33891         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33892         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33893         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
33894         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33895         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
33896
33897         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
33898         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
33899         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
33900         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
33901         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33902         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
33903         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
33904         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
33905         (__ASSUME_GETCPU_SYSCALL): Likewise.
33906
33907         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
33908         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
33909         cases for individual architectures.
33910         * sysdeps/gnu/configure: Regenerated.
33911         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
33912         LIBC_SLIBDIR_RTLDDIR.
33913         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
33914         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
33915         LIBC_SLIBDIR_RTLDDIR.
33916         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
33917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
33918         LIBC_SLIBDIR_RTLDDIR.
33919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
33920         Regenerated.
33921         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
33922         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
33923         file.
33924         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
33925         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
33926         file.
33927         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
33928         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
33929         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
33930         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
33931
33932         * sysdeps/aarch64/shlib-versions: Move to ...
33933         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
33934         * sysdeps/alpha/shlib-versions: Move to ...
33935         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
33936         * sysdeps/arm/shlib-versions: Move to ...
33937         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
33938         * sysdeps/hppa/shlib-versions: Move all contents except for
33939         libgcc_s entry to ...
33940         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
33941         entry from ...
33942         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
33943         * sysdeps/ia64/shlib-versions: Move to ...
33944         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
33945         entry from ...
33946         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
33947         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
33948         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
33949         * sysdeps/microblaze/shlib-versions: Move to ...
33950         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
33951         * sysdeps/mips/shlib-versions: Move to ...
33952         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
33953         entry from ...
33954         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
33955         * sysdeps/tile/shlib-versions: Move to ...
33956         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
33957         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
33958         from ...
33959         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
33960         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
33961         entry from ...
33962         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
33963
33964 2014-07-17  Will Newton  <will.newton@linaro.org>
33965
33966         * sysdeps/arm/bits/atomic.h
33967         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
33968         (__arch_compare_and_exchange_bool_16_int): Likewise.
33969         (__arch_compare_and_exchange_bool_64_int): Likewise.
33970
33971         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
33972         into an #else block.
33973
33974 2014-07-16  Roland McGrath  <roland@hack.frob.com>
33975
33976         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
33977         just Linux configurations.  Test empirically that the compiler sets
33978         __ARM_EABI__, rather than using the tuple to decide.
33979         * sysdeps/arm/preconfigure: Regenerated.
33980         * sysdeps/unix/sysv/linux/arm/configure: File removed.
33981         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
33982         contents appended ...
33983         * sysdeps/arm/configure.ac: ... here.
33984         * sysdeps/arm/configure: Regenerated.
33985
33986 2014-07-15  Roland McGrath  <roland@hack.frob.com>
33987
33988         * nptl/pthread_kill.c: New file.
33989         * nptl/pthread_sigmask.c: New file.
33990         * nptl/pthread_sigqueue.c: New file.
33991
33992         * sysdeps/nptl/lowlevellock.h: New file.
33993         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
33994         * sysdeps/nptl/lowlevellock-futex.h: New file.
33995
33996         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
33997         Remove dead declarations.
33998
33999 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
34000
34001         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
34002         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
34003         config-cflags-avx2.
34004         * sysdeps/x86_64/configure.ac: Likewise.
34005         * sysdeps/i386/configure: Regenerated.
34006         * sysdeps/x86_64/configure: Likewise.
34007         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34008         memset-avx2 only if config-cflags-avx2 is yes.
34009         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
34010         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
34011         defined.
34012         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
34013         only if HAVE_AVX2_SUPPORT is defined.
34014         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
34015
34016 2014-07-14  Alan Modra  <amodra@gmail.com>
34017
34018         [BZ #17153]
34019         * elf/elf.h (DT_PPC64_NUM): Correct value.
34020         * NEWS: Add to fixed bug list.
34021
34022 2014-07-13  Jim Meyering  <meyering@fb.com>
34023
34024         [BZ 17150]
34025         regex: don't deref NULL upon heap allocation failure
34026         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
34027         failure in one more place.
34028         To trigger the segfault, configure grep -with-included-regex,
34029         build it, and run these commands:
34030         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
34031
34032 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
34033
34034         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
34035
34036 2014-07-11  Richard Henderson  <rth@redhat.com>
34037
34038         * sysdeps/aarch64/libm-test-ulps: Update.
34039
34040 2014-07-10  Florian Weimer  <fweimer@redhat.com>
34041
34042         [BZ #17135]
34043         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
34044         * nptl/allocatestack.c (__nptl_setxid_error): New function.
34045         (__nptl_setxid): Initialize error member.  Call
34046         __nptl_setxid_error.
34047         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
34048         * nptl/descr.h (struct xid_command): Add error member.
34049         * nptl/tst-setuid3.c: New file.
34050         * nptl/Makefile (tests): Add it.
34051
34052 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34053
34054         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
34055         New define.
34056         (__lll_trylock): Use __lll_base_trylock.
34057         (__lll_cond_trylock): Likewise.
34058
34059 2014-07-10  Roland McGrath  <roland@hack.frob.com>
34060
34061         * nptl/pthread_create.c (start_thread): Use atomic_or and
34062         lll_futex_wake directly rather than lll_robust_dead.
34063         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34064         (lll_robust_dead): Macro removed.
34065         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
34066         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34067         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34068         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34069         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34070         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34071         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34072         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34073         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34074         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34075         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34076         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34077         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34078         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34079         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34080
34081         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
34082         Use atomic_compare_and_exchange_val_acq directly rather than
34083         lll_robust_trylock.
34084         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
34085         (__lll_robust_trylock, lll_robust_trylock): Removed.
34086         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
34087         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
34088         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
34089         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
34090         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
34091         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
34092         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
34093         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
34094         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
34095         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
34096         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
34097         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
34098         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
34099         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
34100
34101 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34102
34103         * manual/locale.texi (Locale Names): New section documenting
34104         locale name syntax.  Adjust menu and node chaining accordingly.
34105         (Choosing Locale): Reference Locale Names, Locale Categories.
34106         Mention setting LC_ALL=C.  Reflect that name syntax is now
34107         documented.
34108         (Locale Categories): New section title.  Reference Locale Names.
34109         LC_ALL is an environment variable, but not a category.
34110         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
34111         description, now in Locale Name.  Reference that section.  Locale
34112         name syntax is now documented.
34113
34114 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34115
34116         [BZ #17137]
34117         * locale/findlocale.c (name_present, valid_locale_name): New
34118         functions.
34119         (_nl_find_locale): Use the loc_name variable to store name
34120         candidates.  Call name_present and valid_locale_name to check and
34121         validate locale names.  Return an error if the locale is invalid.
34122
34123 2014-07-02  Florian Weimer  <fweimer@redhat.com>
34124
34125         * locale/setlocale.c (setlocale): Use strdup for allocating
34126         composite name copy.
34127
34128 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34129
34130         Sync up with gnulib.
34131         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
34132         [!_LIBC && ENABLE_NLS]: Include gettext.h.
34133         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
34134         and _GL_ARG_NONNULL.
34135         [USE_UNLOCKED_IO]: Include unlocked-io.h.
34136         [!_LIBC]: Include code for Windows and Cygwin.
34137         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
34138         Include prototype for int strerror_r.
34139         [!_LIBC] (is_open): New function.
34140         (flush_stdout): New function.
34141         (print_errno_message): Use it.
34142         (error): Likewise.
34143         (error_at_line): Likewise.
34144         (error_tail) Add function attribute macros.  Use
34145         __builtin_expect.
34146
34147         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
34148
34149         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
34150
34151         * io/ftw.c: Include sys/param.h unconditionally.
34152
34153         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
34154
34155         [BZ #17125]
34156         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
34157         libc_freeres_ptr.
34158         (freecache): New function to free CACHE on exit.
34159
34160         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
34161         initialization.
34162
34163 2014-07-09  David S. Miller  <davem@davemloft.net>
34164
34165         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34166
34167         * sysdeps/sparc/nptl/internaltypes.h: Delete.
34168         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
34169         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
34170         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
34171         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
34172         * sysdeps/sparc/nptl/sem_init.c: Likewise.
34173         * sysdeps/sparc/nptl/sem_post.c: Likewise.
34174         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
34175         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
34176         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
34177         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
34178         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
34179         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
34180
34181 2014-07-09  Andreas Schwab  <schwab@suse.de>
34182
34183         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
34184         output.
34185         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
34186         (do_test): Likewise.
34187
34188         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
34189
34190 2014-07-09  Will Newton  <will.newton@linaro.org>
34191
34192         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
34193         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
34194         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34195         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
34196         * sysdeps/hppa/start.S (_start): Likewise.
34197
34198 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
34199
34200         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
34201
34202         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
34203         defined.
34204
34205 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34206
34207         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
34208         after checking that it is non-NULL.
34209
34210         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
34211
34212 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34213
34214         * sysdeps/powerpc/memmove.c: Remove file.
34215         * sysdeps/powerpc/powerpc32/power4/memcopy.h
34216         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
34217         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34218         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
34219         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
34220         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
34221         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
34222         string memmove instead of removed powerpc one.
34223
34224         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
34225         [weak_alias]: Fix compiler warning due trailing data.
34226         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
34227         [weak_alias]: Likewise.
34228         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
34229         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
34230
34231         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
34232         (__libc_ifunc_impl_list): Add memmove functions.
34233
34234 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
34235
34236         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
34237         Remove code.
34238         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
34239         Likewise.
34240         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
34241         Likewise.
34242         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
34243         Likewise.
34244         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
34245         Likewise.
34246         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
34247         Likewise.
34248         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
34249         Likewise.
34250         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
34251         Likewise.
34252         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
34253         Likewise.
34254         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
34255         Likewise.
34256         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
34257         Likewise.
34258         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
34259         Likewise.
34260         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
34261         Likewise.
34262         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
34263         Likewise.
34264         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
34265         Likewise.
34266         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
34267         Likewise.
34268         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
34269         Likewise.
34270
34271 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34272
34273         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
34274         to avoid alignment traps in non-cacheable memory.
34275         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
34276
34277         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
34278         multiarch objects.
34279         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
34280         file: multiarch power7 memmove.
34281         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
34282         multiarch default memmove.
34283         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
34284         multiarch memove for powerpc32/power4.
34285
34286         * string/bcopy.c: Use full path to include memmove.c.
34287         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
34288         multiarch objects.
34289         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
34290         bcopy for powerpc64.
34291         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
34292         bcopy for powerpc64.
34293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
34294         and memmove implementations.
34295         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
34296         optimized multiarch memmove for POWER7/powerpc64.
34297         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
34298         default multiarch memmove for powerpc64.
34299         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
34300         multiarch for powerpc64.
34301         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
34302         for POWER7/powerpc64.
34303         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
34304         memmove for POWER7/powerpc64.
34305
34306         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
34307         glibc default one.
34308
34309         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
34310         __ELF_NATIVE_CLASS equal to 64.
34311
34312 2014-07-07  Roland McGrath  <roland@hack.frob.com>
34313
34314         * sysdeps/nptl/lowlevellock.h: File removed.
34315
34316         * NEWS: NPTL is no longer an add-on!
34317         * nptl/internaltypes.h: Moved ...
34318         * sysdeps/nptl/internaltypes.h: ... here.
34319         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
34320         * sysdeps/nptl/fork.c: Likewise.
34321         * sysdeps/nptl/gai_misc.h: Likewise.
34322         * sysdeps/nptl/librt-cancellation.c: Likewise.
34323         * sysdeps/nptl/jmp-unwind.c: Likewise.
34324         * sysdeps/nptl/setxid.h: Likewise.
34325         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
34326         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
34327         * sysdeps/unix/sysv/linux/arm/Implies: New file.
34328         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
34329         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
34330         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
34331         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
34332         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
34333         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
34334         * sysdeps/unix/sysv/linux/mips/Implies: New file.
34335         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
34336         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
34337         * sysdeps/unix/sysv/linux/sh/Implies: New file.
34338         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
34339         * sysdeps/unix/sysv/linux/tile/Implies: New file.
34340         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
34341         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
34342         * nptl/Makeconfig: Moved ...
34343         * sysdeps/nptl/Makeconfig: ... here.
34344         * nptl/configure: File removed.
34345         * nptl/ANNOUNCE: File removed.
34346         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
34347         * sysdeps/unix/sysv/linux/configure: Regenerated.
34348
34349         * nptl/Makefile (routines): Add libc_pthread_init,
34350         libc_multiple_threads, register-atfork and unregister-atfork.
34351         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
34352         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
34353         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
34354         pthread-pi-defines.sym, structsem.sym.
34355         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
34356         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
34357         [$(subdir) = nptl] (tests): Add tst-setgetname.
34358         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
34359         * sysdeps/unix/sysv/linux/sigaction.c: Just include
34360         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
34361         [!LIBC_SIGACTION]: Remove aliases.
34362         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
34363         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
34364         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
34365         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
34366         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
34367         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
34368         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
34369         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
34370         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
34371         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
34372         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
34373         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
34374         __libc_allocate_rtsig_private.
34375         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
34376         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
34377         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
34378         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
34379         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
34380         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
34381         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
34382         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
34383         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
34384         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
34385         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
34386         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
34387         * nptl/internaltypes.h: ... here.
34388         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
34389         * sysdeps/nptl/jmp-unwind.c: ... here.
34390         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
34391         * nptl/libc-lowlevellock.c: ... here.
34392         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
34393         * nptl/libc_multiple_threads.c: ... here.
34394         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
34395         * nptl/libc_pthread_init.c: ... here.
34396         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
34397         * nptl/lowlevelbarrier.sym: ... here.
34398         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
34399         * nptl/lowlevelcond.sym: ... here.
34400         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
34401         * nptl/lowlevellock.c: ... here.
34402         * nptl/lowlevellock.h: Moved ...
34403         * sysdeps/nptl/lowlevellock.h: ... here.
34404         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
34405         * nptl/lowlevelrobustlock.c: ... here.
34406         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
34407         * nptl/lowlevelrobustlock.sym: ... here.
34408         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
34409         * nptl/lowlevelrwlock.sym: ... here.
34410         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
34411         * nptl/pt-fork.c: ... here.
34412         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
34413         * nptl/pthread-pi-defines.sym: ... here.
34414         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
34415         * nptl/pthread_attr_getaffinity.c: ... here.
34416         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
34417         * nptl/pthread_attr_setaffinity.c: ... here.
34418         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
34419         * nptl/pthread_mutex_cond_lock.c: ... here.
34420         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
34421         Update #include.
34422         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
34423         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
34424         * nptl/pthread_once.c: ... here, replacing old file.
34425         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
34426         * nptl/pthread_yield.c: ... here.
34427         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
34428         * nptl/register-atfork.c: ... here.
34429         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
34430         * nptl/sem_post.c: ... here.
34431         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
34432         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
34433         * nptl/sem_timedwait.c: ... here.
34434         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
34435         * nptl/sem_trywait.c: ... here.
34436         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
34437         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
34438         * nptl/sem_wait.c: ... here.
34439         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
34440         * nptl/structsem.sym: ... here.
34441         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
34442         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
34443         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
34444         * nptl/unregister-atfork.c: ... here.
34445         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
34446         * nptl/unwindbuf.sym: ... here.
34447         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
34448         * sysdeps/nptl/fork.c: ... here.
34449         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
34450         * sysdeps/nptl/fork.h: ... here.
34451         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
34452         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
34453         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
34454         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
34455         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
34456         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
34457         * sysdeps/unix/sysv/linux/getpid.c: ... here.
34458         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
34459         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
34460         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
34461         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
34462         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
34463         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
34464         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
34465         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
34466         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
34467         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
34468         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
34469         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
34470         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
34471         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
34472         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
34473         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
34474         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
34475         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
34476         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
34477         * sysdeps/unix/sysv/linux/raise.c: ... here.
34478         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
34479         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
34480         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
34481         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
34482         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
34483         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
34484         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
34485         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
34486         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
34487         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
34488         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
34489         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
34490         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
34491         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
34492         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
34493
34494 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
34495
34496         * sysdeps/generic/memcopy.h: Add comment for
34497         MEMCPY_OK_FOR_FWD_MEMMOVE.
34498
34499 2014-07-04  Will Newton  <will.newton@linaro.org>
34500
34501         * string/memchr.c: Merge from gnulib.
34502         [_LIBC]: Remove conditionals.
34503         (__ptr_t): Remove define.
34504         (LONG_MAX_32_BITS): Likewise.
34505         (LONG_MAX): Likewise.
34506         (MEMCHR): Use ANSI prototype and optimize algorithm.
34507
34508         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
34509
34510 2014-07-03  Roland McGrath  <roland@hack.frob.com>
34511
34512         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
34513         (lll_futex_timed_wait_bitset): Fix syscall argument count.
34514
34515         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
34516         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
34517         in a bare environment with no <stdlib.h> installed.
34518         * sysdeps/nptl/configure: Regenerated.
34519
34520         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
34521
34522         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
34523         AC_EGREP_CPP for kernel header checks, so they only succeed if
34524         including <linux/version.h> actually works right.
34525         * sysdeps/unix/sysv/linux/configure: Regenerated.
34526
34527         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
34528         value so it's not diagnosed as unused.
34529
34530         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
34531         thing) with "ifeq ($(subdir),rt)".
34532
34533 2014-07-03  Richard Henderson  <rth@redhat.com>
34534
34535         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
34536         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
34537         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
34538
34539         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
34540         (math_force_eval): New.
34541
34542         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
34543         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
34544
34545         * sysdeps/alpha/fpu/s_round.c: Remove file.
34546         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
34547
34548         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
34549         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
34550         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
34551         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
34552         (_dl_start, print_statistics): Likewise.
34553         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
34554         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
34555
34556         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34557         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34558         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34559         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34560         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34561         (HP_SMALL_TIMING_AVAIL): Define.
34562         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34563         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34564         (HP_SMALL_TIMING_AVAIL): Define.
34565         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34566         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
34567
34568         * sysdeps/aarch64/hp-timing.h: New file.
34569
34570         * sysdeps/generic/hp-timing.h: Remove dead comment.
34571         * sysdeps/generic/hp-timing-common.h: New file.
34572         * sysdeps/alpha/hp-timing.h: Include it.
34573         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
34574         * sysdeps/i386/i686/hp-timing.h: Likewise.
34575         * sysdeps/ia64/hp-timing.h: Likewise.
34576         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
34577         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
34578         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
34579         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
34580         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
34581         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
34582         (hp_timing_t): New.
34583
34584         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
34585         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
34586         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
34587         * elf/rtld.c (_dl_start_final): Likewise.
34588         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
34589         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34590         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34591         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34592         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34593         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34594         (HP_TIMING_DIFF_INIT): Remove.
34595         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34596         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
34597         (HP_TIMING_DIFF_INIT): Remove.
34598         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
34599         * sysdeps/i386/i686/hp-timing.c: Remove file.
34600         * sysdeps/x86_64/hp-timing.c: Remove file.
34601         * sysdeps/ia64/hp-timing.c: Remove file.
34602         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
34603         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
34604         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
34605         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
34606
34607         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
34608         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
34609         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
34610         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34611         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
34612         (HP_TIMING_ACCUM): Remove.
34613         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34614         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
34615         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
34616
34617         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
34618         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
34619         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
34620         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
34621         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
34622         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34623         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
34624         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
34625
34626         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
34627
34628 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
34629
34630         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
34631
34632 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34633
34634         Sync up with gettext.
34635         * intl/loadmsgcat.c: Define O_BINARY if not defined.
34636         [_MSC_VER]: Include malloc.h
34637         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
34638         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
34639         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
34640         TEMP_FAILURE_RETRY.  Cast return of alloca.
34641         [!_LIBC] Call gl_rwlock_init.
34642         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
34643
34644 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34645
34646         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
34647         before checking its value.
34648
34649 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34650
34651         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
34652
34653         * debug/memcpy_chk.c: Don't include pagecopy.h.
34654         * debug/mempcpy_chk.c: Likewise.
34655         * string/memcpy.c: Likewise.
34656         * string/memmove.c: Likewise.
34657         * sysdeps/powerpc/memmove.c: Likewise.
34658         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
34659         definition of PAGE_COPY_FWD_MAYBE here...
34660         * sysdeps/generic/pagecopy.h: ... from here.
34661         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
34662
34663 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34664             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34665
34666         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
34667         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
34668         optimizations.
34669         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34670         (__libc_ifunc_impl_list): Likewise.
34671         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
34672         multiarch strcat for PPC64.
34673         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
34674         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
34675
34676 2014-07-02  Roland McGrath  <roland@hack.frob.com>
34677
34678         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
34679
34680 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34681
34682         * intl/loadmsgcat.c: Remove declaration of
34683         get_sysdep_segment_value.
34684         (get_sysdep_segment_value): Use ISO C style.
34685         (_nl_load_domain): Use ISO C style.  Get rid of redundant
34686         semicolon.  Fix typo and formatting in comment.
34687         (_nl_unload_domain): Use ISO C style.
34688
34689         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
34690
34691 2014-07-02  Will Newton  <will.newton@linaro.org>
34692
34693         * malloc/obstack.c: Merge from gnulib master.
34694         [HAVE_CONFIG_H]: Remove conditional code.
34695         [!_LIBC]: Include config.h.
34696         [!ELIDE_CODE]: Don't include inttypes.h, include
34697         stdint.h unconditionally.
34698         (print_and_abort): Mark as _Noreturn.
34699         (_obstack_allocated_p): Mark as __attribute_pure__.
34700         (obstack_free): Rename to __obstack_free.
34701         [!__attribute__]: Remove conditional code.
34702         * malloc/obstack.h: Merge from gnulib master.
34703         [__cplusplus]: Move conditional down.
34704         [!__attribute_pure__]: Define __attribute_pure__ here
34705         if it is not already defined.
34706         (_obstack_memory_used): Mark as __attribute_pure__.
34707         [!__obstack_free]: Define as obstack_free.
34708         [__GNUC__]: Remove check for ancient NeXT gcc.
34709
34710 2014-07-02  Will Newton  <will.newton@linaro.org>
34711             Paul Eggert  <eggert@cs.ucla.edu>
34712
34713         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
34714
34715 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
34716
34717         * resolv/gethnamaddr.c: Add comment warning that the file is
34718         not maintained.
34719
34720 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
34721
34722         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
34723         entries.
34724
34725         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
34726         entry for aio_cancel and aio_cancel64.
34727         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
34728         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
34729         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
34730         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
34731         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
34732         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
34733         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
34734         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
34735         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
34736         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
34737         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
34738         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
34739         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
34740
34741 2014-07-01  Roland McGrath  <roland@hack.frob.com>
34742
34743         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
34744         * nptl/pthread_mutex_lock.c: Likewise.
34745         * nptl/pthread_mutex_timedlock.c: Likewise.
34746         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
34747
34748 2014-07-01  Richard henderson  <rth@redhat.com>
34749
34750         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
34751         (__isnan, __isnanl): Remove.
34752         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
34753
34754         * sysdeps/alpha/fpu/libm-test-ulps: Update.
34755
34756 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
34757
34758         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34759
34760 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
34761
34762         * resolv/nss_dns/dns-host.c (getanswer_r)
34763         [MULTI_PTRS_ARE_ALIASES]: Remove code.
34764
34765 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
34766
34767         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34768         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
34769         undefine.
34770         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
34771         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
34772
34773 2014-07-01  Roland McGrath <roland@hack.frob.com>
34774
34775         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
34776         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
34777
34778         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
34779         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
34780
34781         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
34782         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
34783         ... here.
34784         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
34785         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
34786
34787         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
34788         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
34789         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
34790         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
34791
34792         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
34793         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
34794         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
34795         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
34796         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
34797         Moved ...
34798         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
34799         ... here.
34800         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
34801         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
34802         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
34803         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
34804         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
34805         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
34806         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
34807         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
34808         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
34809         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
34810         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
34811         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
34812         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
34813         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
34814         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
34815         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
34816         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
34817         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
34818         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
34819         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
34820         ... here.
34821         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
34822         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
34823         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
34824         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
34825         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
34826         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
34827         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
34828         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
34829
34830 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
34831
34832         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
34833         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
34834         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
34835         Add sysdep.
34836
34837 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34838
34839         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34840
34841 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
34842
34843         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
34844         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34845
34846         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
34847
34848         * sysdeps/arm/libm-test-ulps: Regenerated.
34849
34850 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
34851             Roland McGrath <roland@hack.frob.com>
34852
34853         * test-skeleton.c (signal_handler): Kill the whole process group
34854         before killing the child individually.
34855         (main): Report any failure on `setpgid'.
34856
34857 2014-06-30  Roland McGrath  <roland@hack.frob.com>
34858
34859         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
34860         from _TLS_H to _ARM_NPTL_TLS_H.
34861         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
34862         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
34863
34864 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
34865
34866         [BZ #16539]
34867         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
34868         (__expm1l): Return argument unchanged when small but not
34869         subnormal.
34870
34871         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
34872         include macro name.
34873         (_FP_UNPACK_RAW_1_P): Likewise.
34874         (_FP_PACK_RAW_1): Likewise.
34875         (_FP_PACK_RAW_1_P): Likewise.
34876         (_FP_MUL_MEAT_1_wide): Likewise.
34877         (_FP_MUL_MEAT_DW_1_hard): Likewise.
34878         (_FP_MUL_MEAT_1_hard): Likewise.
34879         (_FP_DIV_MEAT_1_imm): Likewise.
34880         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
34881         (_FP_DIV_MEAT_1_udiv): Likewise.
34882         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
34883         (_FP_UNPACK_RAW_2): Likewise.
34884         (_FP_UNPACK_RAW_2_P): Likewise.
34885         (_FP_PACK_RAW_2): Likewise.
34886         (_FP_PACK_RAW_2_P): Likewise.
34887         (_FP_MUL_MEAT_DW_2_wide): Likewise.
34888         (_FP_MUL_MEAT_2_wide): Likewise.
34889         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
34890         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
34891         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
34892         (_FP_MUL_MEAT_2_gmp): Likewise.
34893         (_FP_DIV_MEAT_2_udiv): Likewise.
34894         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
34895         (_FP_FRAC_SRL_4): Likewise.
34896         (_FP_FRAC_SRST_4): Likewise.
34897         (_FP_FRAC_SRS_4): Likewise.
34898         (_FP_UNPACK_RAW_4): Likewise.
34899         (_FP_UNPACK_RAW_4_P): Likewise.
34900         (_FP_PACK_RAW_4): Likewise.
34901         (_FP_PACK_RAW_4_P): Likewise.
34902         (_FP_MUL_MEAT_DW_4_wide): Likewise.
34903         (_FP_MUL_MEAT_4_wide): Likewise.
34904         (_FP_MUL_MEAT_4_gmp): Likewise.
34905         (umul_ppppmnnn): Likewise.
34906         (_FP_DIV_MEAT_4_udiv): Likewise.
34907         (__FP_FRAC_ADD_4): Likewise.
34908         (__FP_FRAC_SUB_3): Likewise.
34909         (__FP_FRAC_SUB_4): Likewise.
34910         (__FP_FRAC_DEC_3): Likewise.
34911         (__FP_FRAC_DEC_4): Likewise.
34912         (__FP_FRAC_ADDI_4): Likewise.
34913         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
34914         (_FP_FRAC_SRL_8): Likewise.
34915         (_FP_FRAC_SRS_8): Likewise.
34916
34917         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
34918         include macro name.
34919         (FP_UNPACK_RAW_EP): Likewise.
34920         (FP_PACK_RAW_E): Likewise.
34921         (FP_PACK_RAW_EP): Likewise.
34922         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
34923         (_FP_ISSIGNAN): Likewise.
34924         (_FP_ADD_INTERNAL): Likewise.
34925         (_FP_FMA): Likewise.
34926         (_FP_CMP): Likewise.
34927         (_FP_SQRT): Likewise.
34928         (_FP_TO_INT): Likewise.
34929         (_FP_FROM_INT): Likewise.
34930         (FP_EXTEND): Likewise.
34931         (_FP_DIV_MEAT_N_loop): Likewise.
34932
34933 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
34934
34935         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
34936         throughout.
34937
34938 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
34939
34940         [BZ #17097]
34941         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
34942         result with correct sign in case of exponents that produce
34943         overflow except for X very close to 1.
34944
34945 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
34946
34947         mktime: merge #if/#ifdef usage from glibc
34948         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
34949         as that works with both Glibc's and Gnulib's style.
34950         See thread starting at Siddhesh Poyarekar's bug report at:
34951         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
34952
34953 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
34954
34955         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
34956         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
34957         * sysdeps/tile/tilegx/memmove.c: Remove file.
34958
34959 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
34960
34961         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
34962         abi-name definition.
34963         * scripts/soversions.awk: Do not handle or generate ABI lines.
34964         * shlib-versions: Remove ABI entries.
34965         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
34966         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
34967
34968 2014-06-27  Roland McGrath  <roland@hack.frob.com>
34969
34970         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
34971         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
34972         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
34973         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
34974         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
34975         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
34976         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
34977         Moved ...
34978         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
34979         ... here.
34980         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
34981         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
34982         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
34983         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
34984         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
34985         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
34986         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
34987         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
34988         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
34989         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
34990         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
34991         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
34992         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
34993         Moved ...
34994         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
34995         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
34996         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
34997         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
34998         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
34999         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
35000         Moved ...
35001         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
35002         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
35003         Moved ...
35004         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
35005         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
35006         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
35007         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
35008         Moved ...
35009         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
35010         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
35011         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
35012         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
35013         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
35014         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
35015         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
35016         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
35017         Moved ...
35018         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
35019         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
35020         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
35021         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
35022         Moved ...
35023         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
35024         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
35025         Moved ...
35026         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
35027         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
35028         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
35029         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
35030         Moved ...
35031         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
35032         ... here.
35033         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
35034         Identical file removed.
35035         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
35036         Moved ...
35037         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
35038         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
35039         Identical file removed.
35040         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
35041         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
35042         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
35043         Moved ...
35044         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
35045         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
35046         Identical file removed.
35047         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
35048         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
35049         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
35050         Identical file removed.
35051         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
35052         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
35053         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
35054         Identical file removed.
35055         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
35056         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
35057         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
35058         Identical file removed.
35059         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
35060         Moved ...
35061         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
35062         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
35063         Identical file removed.
35064         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
35065         Moved ...
35066         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
35067         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
35068         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
35069         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
35070         Identical file removed.
35071         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
35072         Moved ...
35073         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
35074         ... here.
35075         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
35076         Identical file removed.
35077         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
35078         Moved ...
35079         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
35080         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
35081         Identical file removed.
35082         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
35083         Moved ...
35084         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
35085         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
35086         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
35087         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
35088         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
35089         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
35090         Moved ...
35091         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
35092         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
35093         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
35094
35095         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
35096         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
35097         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
35098         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
35099         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
35100
35101 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
35102
35103         [BZ #17092]
35104         * nscd/nscd.c (monitor_child): Return exit status of child
35105         instead of return value from wait syscall.
35106
35107 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
35108
35109         * configure.ac (libc_commonpagesize): Remove variable.
35110         (libc_relro_required): Likewise.
35111         (libc_cv_z_relro): Remove configure test.
35112         * configure: Regenerated.
35113         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
35114         variable.
35115         (libc_relro_required): Likewise.
35116         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
35117         (libc_relro_required): Likewise.
35118         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
35119         (libc_relro_required): Likewise.
35120         * sysdeps/arm/preconfigure: Regenerated.
35121         * sysdeps/ia64/preconfigure: Remove file.
35122         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
35123         variable.
35124         (libc_relro_required): Likewise.
35125
35126         [BZ #16561]
35127         [BZ #16562]
35128         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
35129         (__ieee754_yn): Set FE_TONEAREST mode internally and then
35130         recompute overflowing results in original rounding mode.
35131         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
35132         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
35133         recompute overflowing results in original rounding mode.
35134         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
35135         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35136         recompute overflowing results in original rounding mode.
35137         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
35138         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35139         recompute overflowing results in original rounding mode.
35140         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
35141         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
35142         recompute overflowing results in original rounding mode.
35143         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
35144         (libc_feholdsetround_ctx): New macro.
35145         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
35146         * sysdeps/i386/fpu/libm-test-ulps: Update.
35147         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
35148
35149 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35150
35151         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
35152         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
35153         corresponding .cpsetup call.
35154
35155 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35156
35157         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
35158         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
35159         * sysdeps/arm/Makefile [$(subdir) = csu]
35160         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
35161         (static-only-routines): Add aeabi_read_tp here.
35162         (shared-only-routines): Add libc-aeabi_read_tp here.
35163         (CFLAGS-libc-start.c): Add -fexceptions here.
35164         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
35165         (sysdep_routines, static-only-routines, shared-only-routines):
35166         Don't add to these here.
35167         (CFLAGS-libc-start.c): Likewise.
35168
35169         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
35170         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
35171         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
35172         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
35173         * sysdeps/arm/Makefile [$(subdir) = rt]
35174         (librt-sysdep_routines, librt-shared-only-routines):
35175         Append rt-aeabi_unwind_cpp_pr1 here.
35176         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
35177         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
35178         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
35179         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35180         Append nptl-aeabi_unwind_cpp_pr1 here.
35181         (tests): Filter out tst-cleanupx4 here.
35182         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
35183         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
35184         Don't do those here.
35185
35186 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35187
35188         * scripts/list-sources.sh: Do not handle ports specially.
35189
35190 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35191
35192         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
35193         * sysdeps/arm/feupdateenv.c: Likewise.
35194
35195         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
35196
35197 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35198
35199         * manual/texinfo.tex: Update to version 2014-05-05.10 with
35200         trailing whitespace removed.
35201         * scripts/config.guess: Update to version 2014-03-23.
35202         * scripts/config.sub: Update to version 2014-05-01
35203         * scripts/install-sh: Update to version 2013-12-25.23.
35204         * scripts/move-if-change: Update from gnulib.
35205
35206 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35207
35208         * debug/memmove_chk.c: Remove pagecopy.h include.
35209
35210 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35211
35212         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
35213         identical to gnulib mktime.
35214
35215 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
35216
35217         * configure.ac: Do not test for machine being rs6000.  Do not test
35218         for powerpc*-*soft.
35219         * configure: Regenerated.
35220
35221         [BZ #11505]
35222         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
35223         test.
35224         * configure: Regenerated.
35225         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
35226         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
35227         Remove configure test.
35228         * sysdeps/arm/configure: Regenerated.
35229         * sysdeps/nptl/configure.ac: Do not check
35230         libc_cv_asm_cfi_directives.
35231         * sysdeps/nptl/configure: Regenerated.
35232         * sysdeps/x86_64/nptl/configure.ac: Remove file.
35233         * sysdeps/x86_64/nptl/configure: Remove generated file.
35234         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
35235         unconditional.
35236         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
35237
35238 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35239
35240         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
35241         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
35242         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
35243         it is defined.
35244
35245         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
35246         instead of whether it is defined.
35247         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
35248         * sysdeps/hppa/dl-machine.h: Likewise.
35249         * sysdeps/ia64/dl-machine.h: Likewise.
35250         * sysdeps/m68k/dl-machine.h: Likewise.
35251         * sysdeps/microblaze/dl-machine.h: Likewise.
35252         * sysdeps/mips/dl-machine.: Likewise.
35253         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
35254         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
35255         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
35256         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
35257         * sysdeps/sh/dl-machine.h: Likewise.
35258         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
35259         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
35260         * sysdeps/tile/dl-machine.h: Likewise.
35261         * sysdeps/x86_64/dl-machine.h: Likewise.
35262
35263         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
35264         code.
35265         (verify_persistent_db): Likewise.
35266
35267 2014-06-26  Roland McGrath  <roland@hack.frob.com>
35268
35269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
35270         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
35271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
35272         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
35273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35274         Moved ...
35275         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
35276         ... here.
35277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
35278         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
35279         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
35280         Identical file removed.
35281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
35282         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
35283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
35284         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
35285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
35286         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
35287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
35288         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
35289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
35290         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
35291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35292         Moved ...
35293         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
35294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35295         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
35296         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
35297         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
35298         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35299         Moved ...
35300         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
35301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
35302         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
35303         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
35304         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
35305         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
35306         Identical file removed.
35307         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
35308         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
35309         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
35310         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
35311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35312         Moved ...
35313         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
35314         ... here.
35315         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
35316         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
35317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
35318         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
35319         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
35320         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
35321         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
35322         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
35323         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
35324         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
35325         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35326         Moved ...
35327         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
35328         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
35329         Moved ...
35330         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
35331         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
35332         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
35333         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35334         Moved ...
35335         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
35336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
35337         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
35338
35339         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
35340         folded into ...
35341         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
35342         * sysdeps/unix/sysv/linux/s390/Versions
35343         (libpthread: GLIBC_2.19): New version set.
35344         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
35345         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
35346         (librt: GLIBC_2.3.3): New version set.
35347         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
35348         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
35349         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
35350         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
35351         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
35352         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
35353         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
35354         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
35355         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
35356         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
35357         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
35358         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
35359         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
35360         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
35361         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
35362         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
35363         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
35364         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
35365         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
35366         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
35367         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
35368         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
35369         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
35370         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35371         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
35372         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
35373         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
35374         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
35375         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
35376         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
35377         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
35378         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
35379         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
35380         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
35381         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
35382         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
35383         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
35384         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
35385         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
35386         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
35387         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
35388         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
35389         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
35390         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
35391         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
35392
35393         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
35394         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
35395         (__libc_vfork): Define the function under this name.
35396         [!NOT_IN_libc] (__vfork): Make this an alias.
35397         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35398         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
35399         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
35400         (__libc_vfork): Define the function under this name.
35401         [!NOT_IN_libc] (__vfork): Make this an alias.
35402         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
35403         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
35404         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
35405         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
35406         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
35407         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
35408
35409         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
35410         code that was previously under [RESET_PID].
35411         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
35412         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
35413         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
35414
35415         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
35416         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
35417         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
35418         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
35419         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
35420         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
35421         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
35422         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
35423         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
35424         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
35425         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
35426         Moved ...
35427         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
35428         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
35429         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
35430         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
35431         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
35432         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
35433         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
35434         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
35435         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
35436         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
35437         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
35438         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
35439         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
35440         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
35441         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
35442         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
35443         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
35444         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
35445         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
35446         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
35447         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
35448         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
35449         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
35450         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
35451         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
35452         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
35453         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
35454         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
35455         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
35456
35457 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35458
35459         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
35460         that was previously under [RESET_PID].
35461         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
35462
35463 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35464
35465         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
35466         not undefine and redefine.
35467         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
35468         [O_CLOEXEC]: Make code unconditional.
35469         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
35470         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
35471         <kernel-features.h>.
35472         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
35473         conditional variable definition.
35474         (shm_open) [O_CLOEXEC]: Make code unconditional.
35475         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
35476         code.
35477
35478         * configure.ac (USE_REGPARMS): Don't define here.
35479         * configure: Regenerated.
35480         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
35481         * sysdeps/i386/configure: Regenerated.
35482
35483         * nptl/createthread.c: Don't include kernel-features.h.
35484         * nptl/pthread_cancel.c: Likewise.
35485         * nptl/pthread_condattr_setclock.c: Likewise.
35486         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
35487         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
35488         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
35489         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
35490         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
35491         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
35492         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
35493         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
35494         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
35495         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
35496         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
35497         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
35498         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
35499         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
35500         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
35501         * nscd/gai.c: Likewise.
35502         * nss/nss_db/db-open.c: Likewise.
35503         * sysdeps/generic/ldsodefs.h: Likewise.
35504         * sysdeps/sh/nptl/tls.h: Likewise.
35505         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
35506         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
35507         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
35508         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
35509         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
35510         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
35511         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
35512         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
35513         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
35514         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
35515         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
35516         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
35517         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
35518         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
35519         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
35520         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
35521         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
35522         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
35523         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
35524         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
35525         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
35526         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
35527         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
35528         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
35529         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
35530         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
35531         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
35532         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
35533         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
35534         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
35535         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
35536         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
35537         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35538         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
35539         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
35540         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
35541         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
35542         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
35543         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
35544         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
35545         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
35546         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
35547         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
35548         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
35549         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
35550         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
35551         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
35552         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
35553         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
35554         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
35555         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
35556         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
35557         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
35558         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
35559         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
35560         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
35561         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
35562         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
35563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
35564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
35565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
35566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
35567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
35568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
35569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
35570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
35571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
35572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
35573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
35574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
35575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
35576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
35577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
35578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
35579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
35580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
35581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
35582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
35583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
35584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
35585         * sysdeps/unix/sysv/linux/pread.c: Likewise.
35586         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
35587         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
35588         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
35589         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
35590         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
35591         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
35592         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
35593         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
35594         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
35595         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
35596         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
35597         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
35598         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
35599         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
35600         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
35601         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
35602         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
35603         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
35604         * sysdeps/unix/sysv/linux/system.c: Likewise.
35605         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
35606         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
35607         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35608         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35609         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
35610         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
35611         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
35612
35613         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
35614         * configure: Regenerated.
35615         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
35616
35617         * configure.ac (base_machine): Do not set specially for particular
35618         machines here.
35619         * configure: Regenerated.
35620         * sysdeps/powerpc/preconfigure: Move machine and base_machine
35621         settings from configure.ac.
35622         * sysdeps/i386/preconfigure: New file.
35623         * sysdeps/s390/preconfigure: Likewise.
35624         * sysdeps/sh/preconfigure: Likewise.
35625         * sysdeps/sparc/preconfigure: Likewise.
35626
35627 2014-06-25  Roland McGrath  <roland@hack.frob.com>
35628
35629         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
35630         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
35631         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
35632         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
35633         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
35634         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
35635         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
35636         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
35637         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
35638         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
35639         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
35640         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
35641         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
35642         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
35643         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
35644         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
35645         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
35646         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
35647         * sysdeps/sparc/sparc64/Makefile: ... appended here.
35648
35649         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
35650         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
35651         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
35652         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
35653         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
35654         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
35655         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
35656         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
35657         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
35658         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
35659         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
35660         * sysdeps/sparc/sparc32/sem_post.c: ... here.
35661         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
35662         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
35663         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
35664         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
35665         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
35666         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
35667         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
35668         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
35669         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
35670         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
35671         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
35672         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
35673         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
35674         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
35675         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
35676         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
35677         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
35678         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
35679         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
35680         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
35681         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
35682         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
35683         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
35684         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
35685         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
35686         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
35687
35688         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
35689         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
35690         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
35691         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
35692         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35693         Moved ...
35694         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
35695         ... here.
35696         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
35697         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
35698         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
35699         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
35700         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
35701         Moved ...
35702         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
35703         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
35704         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
35705         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
35706         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
35707         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
35708         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
35709         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35710         Moved ...
35711         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
35712         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35713         Moved ...
35714         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
35715         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
35716         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
35717         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35718         Moved ...
35719         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
35720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
35721         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
35722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
35723         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
35724         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
35725         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
35726         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
35727         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
35728         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35729         Moved ...
35730         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
35731         ... here.
35732         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
35733         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
35734         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
35735         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
35736         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
35737         Moved ...
35738         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
35739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
35740         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
35741         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
35742         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
35743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
35744         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
35745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35746         Moved ...
35747         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
35748         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35749         Moved ...
35750         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
35751         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
35752         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
35753         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35754         Moved ...
35755         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
35756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
35757         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
35758         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
35759         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
35760
35761 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35762
35763         * timezone/checktab.awk: Update from tzcode 2014e.
35764         * timezone/private.h: Likewise.
35765         * timezone/tzfile.h: Likewise.
35766         * timezone/zdump.c: Likewise.
35767         * timezone/zic.c: Likewise.
35768
35769         * sysdeps/unix/sysv/linux/kernel-features.h
35770         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
35771         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
35772         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
35773         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
35774         Remove conditional code.
35775
35776 2014-06-25  Will Newton  <will.newton@linaro.org>
35777
35778         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
35779         (_dl_arm_cap_flags): Add HWCAP2 values.
35780         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
35781         (_DL_HWCAP_COUNT): Increase to 37.
35782         (_DL_HWCAP_LAST): New define.
35783         (_DL_HWCAP2_LAST): New define.
35784         (_dl_procinfo): Add support for printing
35785         AT_HWCAP2 entries.
35786         (_dl_string_hwcap): Use _dl_hwcap_string.
35787
35788 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35789
35790         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35791
35792 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
35793
35794         * README: Do not mention ports directory.
35795
35796         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
35797         Remove macro.
35798         * sysdeps/unix/sysv/linux/futimes.c: Do not include
35799         <kernel-features.h>.
35800         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
35801         conditional variable definition.
35802         (__futimes): Update comment.
35803         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
35804         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
35805
35806         [BZ #16560]
35807         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
35808         arguments close to 0.
35809         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
35810         Likewise.
35811         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
35812         Likewise.
35813         * math/auto-libm-test-in: Add more tests of exp10.
35814         * math/auto-libm-test-out: Regenerated.
35815         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35816
35817         * sysdeps/unix/sysv/linux/kernel-features.h
35818         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
35819         * sysdeps/unix/sysv/linux/readv.c: Do not include
35820         <kernel-features.h>.
35821         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
35822         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
35823         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
35824         unconditional.
35825         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
35826         conditional code.
35827         * sysdeps/unix/sysv/linux/writev.c: Do not include
35828         <kernel-features.h>.
35829         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
35830         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
35831         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
35832         unconditional.
35833         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
35834         conditional code.
35835
35836 2014-06-25  Will Newton  <will.newton@linaro.org>
35837
35838         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
35839         comment changes throughout the file.  Remove checks
35840         for HAVE_*_H definitions that are not required.
35841         (__gen_tempname): Call abort if an unknown kind value is
35842         passed.
35843
35844 2014-06-25  Andreas Schwab  <schwab@suse.de>
35845
35846         [BZ #17086]
35847         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
35848         scalbln, scalblnf, scalblnl in libc.
35849
35850 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35851
35852         [BZ #17086]
35853         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
35854         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
35855         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
35856
35857 2014-06-24  Roland McGrath  <roland@hack.frob.com>
35858
35859         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
35860         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
35861         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
35862         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
35863         Update #include.
35864         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
35865         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
35866         Update #include.
35867         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
35868         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
35869         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
35870         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
35871         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
35872         * sysdeps/x86/bits/pthreadtypes.h: ... here.
35873         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
35874         * sysdeps/x86/bits/semaphore.h: ... here.
35875         * sysdeps/x86/nptl/elide.h: Moved ...
35876         * sysdeps/x86/elide.h: ... here.
35877         * sysdeps/x86_64/nptl/Implies: File removed.
35878         * sysdeps/i386/nptl/Implies: File removed.
35879
35880 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
35881
35882         [BZ #16539]
35883         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
35884         return the argument for normal arguments with exponent below -64.
35885         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
35886         Likewise.
35887         * math/auto-libm-test-in: Add another test of expm1.
35888         * math/auto-libm-test-out: Regenerated.
35889
35890         [BZ #16287]
35891         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
35892         calling __erfcl for arguments at least 16.
35893         * math/auto-libm-test-in: Add more tests of erf.
35894         * math/auto-libm-test-out: Regenerated.
35895
35896         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
35897         individual architectures.
35898         * sysdeps/unix/sysv/linux/configure: Regenerated.
35899         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
35900         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
35901         * sysdeps/unix/sysv/linux/powerpc/configure.ac
35902         (ldd_rewrite_script): Define variable.
35903         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
35904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
35905         file.
35906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
35907         generated file.
35908         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
35909         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
35910         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
35911         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
35912         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
35913         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
35914         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
35915         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
35916
35917 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35918
35919         [BZ #17084]
35920         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
35921         Rename member __data.d to __data.__elision_data.
35922
35923 2014-06-24  Wilco  <wdijkstr@arm.com>
35924
35925         * NEWS: Add 16918 to fixed bug list.
35926
35927 2014-06-24  Wilco  <wdijkstr@arm.com>
35928
35929         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
35930
35931 2014-06-24  Wilco  <wdijkstr@arm.com>
35932
35933         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
35934         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
35935         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
35936         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
35937         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
35938         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
35939         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
35940         Use _FPU_MASK_RM.
35941
35942 2014-06-24  Wilco  <wdijkstr@arm.com>
35943
35944         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
35945
35946 2014-06-24  Wilco  <wdijkstr@arm.com>
35947
35948         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
35949         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
35950         * sysdeps/arm/fesetround.c (fesetround): Remove space.
35951         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
35952
35953 2014-06-24  Wilco  <wdijkstr@arm.com>
35954
35955         [BZ #16918]
35956         * sysdeps/arm/feupdateenv.c (feupdateenv):
35957         Rewrite to reduce FPSCR accesses and fix return value.
35958
35959 2014-06-24  Wilco  <wdijkstr@arm.com>
35960
35961         * sysdeps/arm/fclrexcpt.c (feclearexcept):
35962         Optimize to avoid unnecessary FPSCR writes.
35963         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
35964         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
35965         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
35966         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
35967
35968 2014-06-24  Wilco  <wdijkstr@arm.com>
35969
35970         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
35971         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
35972         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
35973         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
35974         Call libc_fetestexcept_vfp.
35975         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
35976         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
35977         __SOFTFP__ ifdef so that they can be built for softfp.
35978
35979 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
35980
35981         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
35982         argument type signed char.
35983
35984         * Makerules (check-abi): Dump diff of symlist if the test
35985         fails.
35986
35987 2014-06-23  Roland McGrath  <roland@hack.frob.com>
35988
35989         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
35990         using abort.
35991
35992         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
35993         Remove unused variable ST.
35994
35995 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
35996
35997         [BZ #16354]
35998         [BZ #17061]
35999         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
36000         small arguments before calling __expm1.
36001         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
36002         small arguments before calling __expm1f.
36003         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
36004         small arguments before calling __expm1l.
36005         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
36006         Likewise.
36007         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
36008         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
36009         spurious underflow for some cosh tests.
36010         * math/auto-libm-test-out: Regenerated.
36011         * sysdeps/i386/fpu/libm-test-ulps: Update.
36012
36013         [BZ #17050]
36014         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
36015         (__ieee754_y1): Set errno if return value overflows.
36016         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
36017         (__ieee754_y1f): Set errno if return value overflows.
36018         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
36019         (__ieee754_y1l): Set errno if return value overflows.
36020         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
36021         (__ieee754_y1l): Set errno if return value overflows.
36022         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
36023         * math/auto-libm-test-out: Regenerated.
36024
36025         * math/gen-auto-libm-tests.c: Document use of
36026         ignore-zero-inf-sign.
36027         (input_flag_type): Add value flag_ignore_zero_inf_sign.
36028         (input_flags): Add ignore-zero-inf-sign.
36029         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
36030         * math/gen-libm-test.pl (generate_testfile): Handle
36031         ignore-zero-inf-sign.
36032         * math/auto-libm-test-in: Mark some cpow tests with
36033         ignore-zero-inf-sign and some with xfail-rounding.
36034         * math/auto-libm-test-out: Regenerated.
36035         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
36036         * sysdeps/i386/fpu/libm-test-ulps: Update.
36037         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36038
36039         [BZ #16315]
36040         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
36041         overflowing or underflowing operations take place with sign of
36042         result.
36043         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36044         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
36045         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
36046         (__ieee754_pow): Recompute overflowing and underflowing results in
36047         original rounding mode.
36048         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
36049         (__powl_helper): Allow negative argument X and scale negated value
36050         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
36051         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
36052         overflowing or underflowing operations take place with sign of
36053         result.
36054         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
36055         Include <math.h>.
36056         * math/auto-libm-test-in: Add more tests of pow.
36057         * math/auto-libm-test-out: Regenerated.
36058         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
36059         (pow_tonearest_test_data): Remove.
36060         (pow_test_tonearest): Likewise.
36061         (pow_towardzero_test_data): Likewise.
36062         (pow_test_towardzero): Likewise.
36063         (pow_downward_test_data): Likewise.
36064         (pow_test_downward): Likewise.
36065         (pow_upward_test_data): Likewise.
36066         (pow_test_upward): Likewise.
36067         (main): Don't call removed functions.
36068         * sysdeps/i386/fpu/libm-test-ulps: Update.
36069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36070
36071 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36072
36073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
36074         Moved ...
36075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
36076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36077         Moved ...
36078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
36079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
36080         Moved ...
36081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
36082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
36083         Moved ...
36084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
36085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
36086         File removed.
36087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
36088         File removed.
36089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
36090         File removed.
36091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
36092         File removed.
36093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
36094         File removed.
36095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
36096         File removed.
36097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
36098         File removed.
36099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
36100         File removed.
36101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
36102         File removed.
36103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36104         File removed.
36105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
36106         File removed.
36107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
36108         File removed.
36109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
36110         Moved ...
36111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
36112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
36113         Moved ...
36114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
36115         ... here.
36116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
36117         Moved ...
36118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
36119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
36120         Moved ...
36121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
36122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
36123         Moved ...
36124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
36125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
36126         Moved ...
36127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
36128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
36129         Moved ...
36130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
36131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
36132         Moved ...
36133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
36134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
36135         Moved ...
36136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
36137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
36138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
36139         ... here.
36140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
36141         Moved ...
36142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
36143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
36144         Moved ...
36145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
36146         ... here.
36147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
36148         Moved ...
36149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
36150         ... here.
36151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
36152         Moved ...
36153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
36154         ... here.
36155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
36156         Moved ...
36157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
36158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
36159         Moved ...
36160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
36161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
36162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
36163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
36164         Moved ...
36165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
36166         ... here.
36167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36168         Moved ...
36169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
36170         ... here.
36171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
36172         Moved ...
36173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
36174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36175         Moved ...
36176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
36177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
36178         Moved ...
36179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
36180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36181         Moved ...
36182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
36183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
36184         Moved ...
36185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
36186         ... here.
36187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36188         Moved ...
36189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
36190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
36191         Moved ...
36192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
36193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36194         Moved ...
36195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
36196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
36197         Moved ...
36198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
36199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
36200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
36201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
36202         Moved ...
36203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
36204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36205         Moved ...
36206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
36207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
36208         Moved ...
36209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
36210         ... here.
36211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36212         Moved ...
36213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
36214         ... here.
36215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
36216         Moved ...
36217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
36218         ... here.
36219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36220         Moved ...
36221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
36222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
36223         Moved ...
36224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
36225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36226         Moved ...
36227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
36228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
36229         Moved ...
36230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
36231         ... here.
36232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36233         Moved ...
36234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
36235         ... here.
36236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
36237         Moved ...
36238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
36239         ... here.
36240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36241         Moved ...
36242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
36243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36244         Moved ...
36245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
36246
36247 2014-06-23  Will Newton  <will.newton@linaro.org>
36248             Wilco  <wdijkstr@arm.com>
36249
36250         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
36251         implementation.  Include get-rounding-mode.h.
36252         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
36253         [!libc_feholdsetround_noex_ctx]: Define
36254         libc_feholdsetround_noex_ctx.
36255         [!libc_feholdsetround_noexf_ctx]: Define
36256         libc_feholdsetround_noexf_ctx.
36257         [!libc_feholdsetround_noexl_ctx]: Define
36258         libc_feholdsetround_noexl_ctx.
36259         (libc_feholdsetround_ctx): New function.
36260         (libc_feresetround_ctx): New function.
36261         (libc_feholdsetround_noex_ctx): New function.
36262         (libc_feresetround_noex_ctx): New function.
36263
36264 2014-06-23  Roland McGrath  <roland@hack.frob.com>
36265
36266         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
36267         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
36268         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
36269         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
36270         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
36271         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
36272
36273         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
36274         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
36275         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
36276         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
36277         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
36278         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
36279         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
36280         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
36281         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36282         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
36283         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
36284         Moved ...
36285         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
36286         ... here.
36287         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
36288         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
36289         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
36290         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
36291         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
36292         Moved ...
36293         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
36294         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
36295         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
36296         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
36297         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
36298         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
36299         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
36300         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
36301         Moved ...
36302         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
36303         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
36304         Moved ...
36305         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
36306         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
36307         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
36308         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
36309         Moved ...
36310         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
36311         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
36312         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
36313         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
36314         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
36315         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
36316         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
36317         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
36318         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
36319         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
36320         Moved ...
36321         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
36322         ... here.
36323         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
36324         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
36325         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
36326         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
36327         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
36328         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
36329         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
36330         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
36331         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
36332         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
36333         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
36334         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
36335         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
36336         Moved ...
36337         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
36338         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
36339         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
36340         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
36341         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
36342         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
36343         Moved ...
36344         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
36345         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
36346         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
36347         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
36348         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
36349
36350         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
36351         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
36352         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
36353         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
36354         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
36355         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
36356         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
36357         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
36358         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
36359         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
36360         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
36361         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
36362         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
36363         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
36364         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
36365         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
36366         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
36367         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
36368         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
36369         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
36370         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
36371         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
36372         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
36373         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
36374         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
36375         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
36376         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
36377         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
36378
36379 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
36380
36381         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
36382         (FALLOC_FL_COLLAPSE_RANGE): New macro.
36383         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
36384         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
36385         (IPV6_PMTUDISC_INTERFACE): Likewise.
36386         (IPV6_PMTUDISC_OMIT): Likewise.
36387
36388 2014-06-23  Andreas Schwab  <schwab@suse.de>
36389
36390         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
36391         Remove unused errout label.
36392
36393 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36394
36395         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
36396         macro: hardware supports Vector Crypto instructions.
36397
36398 2014-06-23  Will Newton  <will.newton@linaro.org>
36399
36400         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
36401         rather than __builtin_expect.
36402
36403         * elf/dl-lookup.c (undefined_msg): Remove variable.
36404         (_dl_lookup_symbol_x): Replace undefined_msg with string
36405         literal.
36406
36407         * elf/dl-lookup.c (do_lookup_unique): New function.
36408         (do_lookup_x): Move STB_GNU_UNIQUE handling code
36409         to a separate function.
36410
36411 2014-06-23  Andreas Schwab  <schwab@suse.de>
36412
36413         [BZ #17079]
36414         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
36415         before reading the next line.
36416
36417 2014-06-23  Will Newton  <will.newton@linaro.org>
36418
36419         * test-skeleton.c (signal_handler): Use printf and %m
36420         rather than perror.  Use printf rather than fprintf to
36421         stderr.  Use puts rather than fputs to stderr.
36422         (main): Likewise.
36423
36424 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
36425
36426         * nscd/nscd.c (thread_info_t): Remove typedef.
36427         (thread_info): Remove variable.
36428
36429 2014-06-21  Allan McRae  <allan@archlinux.org>
36430
36431         * NEWS: Mention CVE-2014-4043.
36432
36433 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36434
36435         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
36436         * nptl/smp.h: ... here.
36437
36438         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
36439
36440         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
36441         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
36442         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
36443         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
36444
36445         * nptl/allocatestack.c: Include <stack-aliasing.h>.
36446         * nptl/stack-aliasing.h: New file.
36447         * sysdeps/i386/i686/stack-aliasing.h: New file.
36448         * sysdeps/i386/i686/nptl/Makefile: File removed.
36449         * sysdeps/x86_64/stack-aliasing.h: New file.
36450         * sysdeps/x86_64/nptl/Makefile
36451         (CFLAGS-pthread_create.c): Variable removed.
36452
36453         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
36454         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
36455         old file.
36456         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
36457         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
36458         old file.
36459
36460 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
36461
36462         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36463         (__ASSUME_SIGFRAME_V2): Remove macro.
36464         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
36465         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
36466         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
36467         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
36468         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
36469         Declare as function.  Remove conditional macro definitions.
36470         (__default_rt_sa_restorer): Likewise.
36471         (__default_sa_restorer_v1): Remove declaration.
36472         (__default_sa_restorer_v2): Likewise.
36473         (__default_rt_sa_restorer_v1): Likewise.
36474         (__default_rt_sa_restorer_v2): Likewise.
36475         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
36476         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
36477         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
36478
36479 2014-06-20  Roland McGrath  <roland@hack.frob.com>
36480
36481         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
36482         (libpthread-routines): Add sysdep.
36483         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
36484         * sysdeps/unix/sysv/linux/sparc/Versions
36485         (libpthread: GLIBC_2.3.3): New version set.
36486         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
36487         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
36488         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
36489         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
36490         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
36491         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
36492         Moved ...
36493         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
36494         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
36495         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
36496         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
36497         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
36498         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
36499         * sysdeps/sparc/nptl/sem_init.c: ... here.
36500         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
36501         * sysdeps/sparc/nptl/sem_post.c: ... here.
36502         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
36503         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
36504         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
36505         * sysdeps/sparc/nptl/sem_wait.c: ... here.
36506         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
36507         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
36508         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
36509         (libpthread-routines): Add cpu_relax.
36510         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
36511         File removed.
36512         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
36513         (librt: GLIBC_2.3.3): New version set.
36514         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
36515         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
36516         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
36517         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
36518         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
36519         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
36520         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
36521         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
36522         Moved ...
36523         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
36524         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
36525         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
36526         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
36527         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
36528         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
36529         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
36530         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
36531         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
36532         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
36533         Moved ...
36534         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
36535         Update #include.
36536         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
36537         Moved ...
36538         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
36539         Update #include.
36540         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
36541         Moved ...
36542         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
36543         Update #include.
36544         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
36545         Moved ...
36546         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
36547         Update #include.
36548         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
36549         Moved ...
36550         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
36551         Update #include.
36552         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
36553         Moved ...
36554         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
36555         Update #include.
36556         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
36557         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
36558         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
36559         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
36560         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
36561         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
36562         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
36563         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
36564         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
36565         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
36566         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
36567         Moved ...
36568         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
36569         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
36570         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
36571         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
36572         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
36573
36574 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36575
36576         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
36577         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
36578         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
36579         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
36580         * nscd/nscd.c: Likewise.
36581         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
36582         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
36583         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
36584         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
36585
36586         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
36587         <kernel-features.h>.
36588         (init_mq_netlink): Remove conditional have_sock_cloexec
36589         definitions.  Remove code conditional on have_sock_cloexec < 0.
36590         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
36591         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
36592         * sysdeps/unix/sysv/linux/opensock.c: Do not include
36593         <kernel-features.h>.
36594         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
36595         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
36596
36597 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36598
36599         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
36600         Add tests for memset_chk and memset.
36601
36602         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
36603         with AVX2_Usable.
36604
36605 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36606
36607         [BZ #16046]
36608         * elf/tst-dl-iter-static.c: New file.
36609         * elf/Makefile (tests-static): Add tst-dl-iter-static.
36610
36611         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
36612         error.
36613
36614 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36615
36616         * sysdeps/unix/sysv/linux/kernel-features.h
36617         (__ASSUME_F_GETOWN_EX): Remove macro.
36618         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
36619         <kernel-features.h>.
36620         (miss_F_GETOWN_EX): Remove variable or macro.
36621         (do_fcntl): Do not check miss_F_GETOWN_EX.
36622         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
36623
36624         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
36625         Remove macro.
36626         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
36627         [!__ASSUME_AT_RANDOM]: Remove conditional code.
36628         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
36629
36630         * sysdeps/unix/sysv/linux/kernel-features.h
36631         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
36632         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
36633         [ADJ_OFFSET_SS_READ]: Make code unconditional.
36634         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
36635
36636 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
36637
36638         [BZ #17075]
36639         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
36640         Fix calculation of the symbol's value.
36641         * sysdeps/arm/tst-armtlsdescloc.c: New file.
36642         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
36643         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
36644         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
36645         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
36646         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
36647         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
36648         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
36649         (modules-names): Add `tst-armtlsdescmod',
36650         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
36651         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
36652         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36653         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
36654         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
36655         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
36656         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
36657         ($(objpfx)tst-armtlsdescloc): New dependency.
36658         ($(objpfx)tst-armtlsdescextnow): Likewise.
36659         ($(objpfx)tst-armtlsdescextlazy): Likewise.
36660         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
36661         TLS scheme support.
36662         * sysdeps/arm/configure: Regenerate.
36663
36664 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
36665
36666         * include/fcntl.h (__atfct_seterrno): Remove prototype.
36667         (__atfct_seterrno_2): Likewise.
36668         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
36669         <kernel-features.h>.
36670         (__ASSUME_ATFCTS): Do not undefine and redefine.
36671         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
36672         (__have_atfcts): Remove conditional definition.
36673         (__fxstatat([__NR_fstatat64]: Make code unconditional.
36674         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
36675         unreachable if [__ASSUME_ATFCTS].
36676         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
36677         not undefine and redefine.
36678         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
36679         <kernel-features.h>.
36680         (faccessat) [__NR_faccessat]: Make code unconditional.
36681         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
36682         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
36683         <kernel-features.h>.
36684         (fchmodat) [__NR_fchmodat]: Make code unconditional.
36685         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36686         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
36687         <kernel-features.h>.
36688         (fchownat) [__NR_fchownat]: Make code unconditional.
36689         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
36690         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
36691         <kernel-features.h>.
36692         (futimesat) [__NR_futimesat]: Make code unconditional.
36693         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
36694         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
36695         <kernel-features.h>.
36696         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36697         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36698         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
36699         <kernel-features.h>.
36700         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
36701         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36702         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
36703         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
36704         <kernel-features.h>.
36705         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
36706         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36707         * sysdeps/unix/sysv/linux/linkat.c: Do not include
36708         <kernel-features.h>.
36709         (linkat) [__NR_linkat]: Make code unconditional.
36710         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36711         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
36712         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
36713         <kernel-features.h>.
36714         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
36715         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
36716         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
36717         <kernel-features.h>.
36718         (mkdirat) [__NR_mkdirat]: Make code unconditional.
36719         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
36720         * sysdeps/unix/sysv/linux/openat.c: Do not include
36721         <kernel-features.h>.
36722         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
36723         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
36724         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
36725         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
36726         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
36727         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
36728         <kernel-features.h>.
36729         (readlinkat) [__NR_readlinkat]: Make code unconditional.
36730         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
36731         result of INLINE_SYSCALL directly, not via int variable.
36732         * sysdeps/unix/sysv/linux/renameat.c: Do not include
36733         <kernel-features.h>.
36734         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
36735         (renameat) [__NR_renameat]: Make code unconditional.
36736         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
36737         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
36738         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
36739         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
36740         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
36741         (__ASSUME_ATFCTS): Do not undefine and redefine.
36742         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
36743         <kernel-features.h>.
36744         (symlinkat) [__NR_symlinkat]: Make code unconditional.
36745         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36746         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
36747         <kernel-features.h>.
36748         (unlinkat) [__NR_unlinkat]: Make code unconditional.
36749         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
36750         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
36751         (__ASSUME_ATFCTS): Do not undefine and redefine.
36752         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
36753         <kernel-features.h>.
36754         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
36755         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
36756         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
36757         <kernel-features.h>.
36758         (__xmknodat) [__NR_mknodat]: Make code unconditional.
36759         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
36760
36761 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
36762
36763         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
36764
36765 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
36766
36767         [BZ #17069]
36768         * posix/regcomp.c (parse_reg_exp): Deallocate partially
36769         constructed tree before returning error.
36770         * posix/bug-regexp36.c: Expand test case.
36771
36772 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
36773
36774         [BZ #6803]
36775         * math/libm-test.inc (scalbln_test_date):
36776         Add errno expectations.
36777         * math/w_scalblnf.c: New File.
36778         Add wrapper which checks for setting errno to ERANGE.
36779         Add weak_alias for corresponding scalbln function.
36780         * math/w_scalbln.c: Likewise.
36781         * math/w_scalblnl.c: Likewise.
36782         * math/Makefile (libm-calls): Add w_scalbln.
36783         * sysdeps/ieee754/flt-32/s_scalblnf.c:
36784         Remove weak_alias for corresponding scalbln function.
36785         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36786         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36787         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
36788         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
36789         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
36790         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
36791         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
36792         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
36793         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
36794         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
36795         Remove long_double_symbol for scalblnl function in libm, libc.
36796         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
36797         Add wrapper which checks for setting errno to ERANGE.
36798         Add long_double_symbol for scalblnl function in libm, libc.
36799         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
36800         Remove long_double_symbol for scalblnl in libm.
36801         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
36802         Add wrapper which checks for setting errno to ERANGE.
36803         Add long_double_symbol for scalblnl function in libm.
36804         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
36805         Do not use wrapper because of own implementation.
36806
36807 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
36808
36809         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
36810         3 bytes for __pad1 for x32.
36811         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
36812
36813 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
36814             H.J. Lu  <hongjiu.lu@intel.com>
36815
36816         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
36817         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
36818         * sysdeps/x86_64/multiarch/memset.S: Likewise.
36819         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
36820         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
36821
36822 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
36823
36824         [BZ #17069]
36825         * posix/regcomp.c (parse_expression): Deallocate partially
36826         constructed tree before returning error.
36827         * posix/Makefile.c (tests): Add bug-regex36.
36828         (generated): Add bug-regex36.mtrace.
36829         (tests-special): Add $(objpfx)bug-regex36-mem.out
36830         (bug-regex36-ENV): New variable.
36831         ($(objpfx)bug-regex36-mem.out): New rule.
36832         * posix/bug-regex36.c: New file.
36833
36834 2014-06-19  Will Newton  <will.newton@linaro.org>
36835
36836         * malloc/malloc.c (systrim): If extra is zero then return
36837         early.
36838
36839 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
36840
36841         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
36842
36843 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
36844
36845         * sysdeps/aarch64/strchr.S: New file.
36846
36847 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
36848
36849         [BZ #17022]
36850         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
36851         from arguments -2 or below.
36852         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
36853         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
36854
36855 2014-06-18  Andreas Schwab  <schwab@suse.de>
36856
36857         [BZ #17062]
36858         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
36859         of a bracket expr not to run off the end of the string.
36860         * posix/Makefile (tests): Add tst-fnmatch3.
36861         * posix/tst-fnmatch3.c: New file.
36862
36863 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
36864
36865         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
36866         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
36867         [$(cross-compiling) = no]: Likewise.
36868         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
36869         [$(cross-compiling) = no]: Likewise.
36870
36871 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36872
36873         [BZ #17031]
36874         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
36875         double, adjusted for any remainder from the high double.
36876         * math/libm-test.inc (nearbyint): Add tests.
36877         (rint): Likewise.
36878
36879 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36880
36881         * nptl/sysdeps/powerpc/Makefile: Moved ...
36882         * sysdeps/powerpc/nptl/Makefile: ... here.
36883         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
36884         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
36885         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
36886         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
36887         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
36888         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
36889         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
36890         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
36891         * nptl/sysdeps/powerpc/tls.h: Moved ...
36892         * sysdeps/powerpc/nptl/tls.h: ... here.
36893
36894 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
36895
36896         [BZ #16681]
36897         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
36898         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
36899         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
36900         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
36901         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
36902         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
36903         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
36904         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
36905         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
36906
36907 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
36908
36909         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
36910
36911 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
36912
36913         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
36914         defined operator.
36915
36916         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
36917         $TIMEOUTFACTOR.
36918
36919 2014-06-16  Florian Weimer  <fweimer@redhat.com>
36920
36921         [BZ #17058]
36922         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
36923         non-executed part of the test.
36924
36925 2014-06-16  Andreas Schwab  <schwab@suse.de>
36926
36927         * string/bits/string2.h (strdup, strndup): Update feature guard.
36928
36929 2014-06-14  David S. Miller  <davem@davemloft.net>
36930
36931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36932
36933 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
36934
36935         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
36936         that was previously under [RESET_PID].
36937         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
36938
36939         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
36940         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
36941         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
36942         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
36943         (__libc_vfork): New strong alias.
36944         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
36945
36946 2014-06-14 Andi Kleen  <ak@linux.intel.com>
36947
36948         * sysdeps/generic/elide.h: New file.
36949
36950 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
36951
36952         * Makefile (installed-headers): Adjust path of pthread.h header.
36953
36954 2014-06-13  Roland McGrath  <roland@hack.frob.com>
36955
36956         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
36957         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
36958         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
36959         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
36960
36961         * nptl/sysdeps/s390/Makefile: Moved ...
36962         * sysdeps/s390/nptl/Makefile: ... here.
36963         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
36964         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
36965         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
36966         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
36967         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
36968         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
36969         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
36970         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
36971         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
36972         * sysdeps/s390/nptl/pthreaddef.h: ... here.
36973         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
36974         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
36975         * nptl/sysdeps/s390/tls.h: Moved ...
36976         * sysdeps/s390/nptl/tls.h: ... here.
36977
36978         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
36979         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
36980
36981 2014-06-13  David S. Miller  <davem@davemloft.net>
36982
36983         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
36984         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
36985         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
36986         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
36987         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
36988         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
36989         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
36990         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
36991         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
36992         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
36993         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
36994         Remove RESET_PID cpp guards.
36995         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
36996         Remove RESET_PID cpp guards.
36997         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
36998
36999 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
37000
37001         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
37002         __sp to uintptr_t.
37003
37004 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37005
37006         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
37007         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
37008         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
37009         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
37010         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
37011         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
37012         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
37013         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
37014         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
37015         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
37016         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
37017         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
37018         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
37019         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
37020         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
37021         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
37022         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
37023         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
37024         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
37025         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
37026
37027         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
37028         (pthread_rwlock_rdlock): Add elision.
37029         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
37030         (pthread_rwlock_wrlock): Add elision.
37031         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
37032         (pthread_rwlock_trywrlock): Add elision.
37033         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
37034         (pthread_rwlock_tryrdlock): Add elision.
37035         * nptl/pthread_rwlock_unlock.c: Include elide.h.
37036         (pthread_rwlock_tryrdlock): Add elision unlock.
37037         * nptl/sysdeps/pthread/pthread.h:
37038         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
37039         (PTHREAD_RWLOCK_INITIALIZER,
37040         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
37041         Handle new elision field.
37042         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
37043         * sysdeps/arm/nptl/bits/pthreadtypes.h
37044         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37045         * sysdeps/sh/nptl/bits/pthreadtypes.h
37046         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37047         * sysdeps/tile/nptl/bits/pthreadtypes.h
37048         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37049         * sysdeps/a/nptl/bits/pthreadtypes.h
37050         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37051         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
37052         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37053         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
37054         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37055         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
37056         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37057         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
37058         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37059         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
37060         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37061         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
37062         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37063         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
37064         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37065         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
37066         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37067         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
37068         (elision_init): Set try_xbegin to zero when no RTM.
37069         * sysdeps/x86/nptl/bits/pthreadtypes.h
37070         (pthread_rwlock_t): Change __pad1 to __rwelision.
37071         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
37072
37073 2014-06-13  Andi Kleen  <ak@linux.intel.com>
37074
37075         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
37076         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
37077         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
37078         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
37079
37080 2014-06-13  Meador Inge  <meadori@codesourcery.com>
37081
37082         [BZ #16996]
37083         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
37084         that the cached result has been set before returning it.
37085
37086 2014-06-12  Roland McGrath  <roland@hack.frob.com>
37087
37088         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
37089         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
37090         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
37091         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
37092         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
37093         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
37094
37095         * nptl/sysdeps/sparc/Makefile: Moved ...
37096         * sysdeps/sparc/nptl/Makefile: ... here.
37097         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
37098         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
37099         * nptl/sysdeps/sparc/tls.h: Moved ...
37100         * sysdeps/sparc/nptl/tls.h: ... here.
37101         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
37102         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
37103         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
37104         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
37105         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
37106         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
37107         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
37108         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
37109         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
37110         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
37111         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
37112         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
37113         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
37114         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
37115         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
37116         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
37117         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
37118         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
37119         Update #include.
37120         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
37121         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
37122         Update #include.
37123         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
37124         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
37125         Update #include.
37126         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
37127         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
37128         Update #include.
37129
37130         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37131
37132         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
37133         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
37134
37135         * sysdeps/pthread/posix-timer.h: Include <list.h>.
37136         (struct list_links): Type removed.
37137         (struct thread_node, struct timer_node): Replace struct list_links
37138         with struct list_head.
37139         (list_unlink_ip): Likewise.
37140         * sysdeps/pthread/timer_routines.c
37141         (timer_free_list, thread_free_list, thread_active_list): Likewise.
37142         (list_append, list_insbefore): Likewise.
37143         (list_init): Function removed.
37144         (thread_init, init_module): Use INIT_LIST_HEAD instead.
37145         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
37146         * sysdeps/pthread/Makefile: ... here, new file.
37147
37148         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
37149         * sysdeps/nptl/Implies: ... here.
37150         * sysdeps/unix/sysv/linux/Implies: Add nptl.
37151         * nptl/sysdeps/pthread/list.h: Moved ...
37152         * include/list.h: ... here.
37153         * nptl/sysdeps/pthread/createthread.c: Moved ...
37154         * nptl/createthread.c: ... here.
37155         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
37156         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
37157         * nptl/pt-longjmp.c: ... here.
37158         * nptl/sysdeps/pthread/Makefile: Moved ...
37159         * sysdeps/nptl/Makefile: ... here.
37160         * nptl/sysdeps/pthread/Subdirs: Moved ...
37161         * sysdeps/nptl/Subdirs: ... here.
37162         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
37163         * sysdeps/nptl/aio_misc.h: ... here.
37164         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
37165         * sysdeps/nptl/bits/libc-lock.h: ... here.
37166         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
37167         * sysdeps/nptl/bits/libc-lockP.h: ... here.
37168         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
37169         * sysdeps/nptl/bits/stdio-lock.h: ... here.
37170         * nptl/sysdeps/pthread/configure: Moved ...
37171         * sysdeps/nptl/configure: ... here.
37172         * nptl/sysdeps/pthread/configure.ac: Moved ...
37173         * sysdeps/nptl/configure.ac: ... here.
37174         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
37175         * sysdeps/nptl/gai_misc.h: ... here.
37176         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
37177         * sysdeps/nptl/librt-cancellation.c: ... here.
37178         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
37179         * sysdeps/nptl/malloc-machine.h: ... here.
37180         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
37181         * sysdeps/nptl/pthread-functions.h: ... here.
37182         * nptl/sysdeps/pthread/pthread.h: Moved ...
37183         * sysdeps/nptl/pthread.h: ... here.
37184         * nptl/sysdeps/pthread/setxid.h: Moved ...
37185         * sysdeps/nptl/setxid.h: ... here.
37186         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
37187         * sysdeps/nptl/sigfillset.c: ... here.
37188         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
37189         * sysdeps/nptl/tcb-offsets.h: ... here.
37190         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
37191         * sysdeps/nptl/tst-mqueue8x.c: ... here.
37192         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
37193         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
37194         * nptl/sysdeps/pthread/allocalim.h: Moved ...
37195         * sysdeps/pthread/allocalim.h: ... here.
37196         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
37197         * sysdeps/pthread/bits/sigthread.h: ... here.
37198         * nptl/sysdeps/pthread/flockfile.c: Moved ...
37199         * sysdeps/pthread/flockfile.c: ... here.
37200         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
37201         * sysdeps/pthread/ftrylockfile.c: ... here.
37202         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
37203         * sysdeps/pthread/funlockfile.c: ... here.
37204         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
37205         * sysdeps/pthread/posix-timer.h: ... here.
37206         * nptl/sysdeps/pthread/timer_create.c: Moved ...
37207         * sysdeps/pthread/timer_create.c: ... here.
37208         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
37209         * sysdeps/pthread/timer_delete.c: ... here.
37210         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
37211         * sysdeps/pthread/timer_getoverr.c: ... here.
37212         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
37213         * sysdeps/pthread/timer_gettime.c: ... here.
37214         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
37215         * sysdeps/pthread/timer_routines.c: ... here.
37216         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
37217         * sysdeps/pthread/timer_settime.c: ... here.
37218         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
37219         * sysdeps/pthread/tst-timer.c: ... here.
37220         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
37221         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
37222
37223         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
37224         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
37225
37226         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
37227         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
37228         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
37229         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
37230         Update #include target.
37231         * nptl/sysdeps/i386/i686/Makefile: Moved ...
37232         * sysdeps/i386/i686/nptl/Makefile: ... here.
37233         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
37234         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
37235         Update #include target.
37236         * nptl/sysdeps/i386/i686/tls.h: Moved ...
37237         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
37238         * nptl/sysdeps/i386/Makefile: Moved ...
37239         * sysdeps/i386/nptl/Makefile: ... here.
37240         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
37241         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
37242         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
37243         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
37244         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
37245         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
37246         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
37247         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
37248         * sysdeps/i386/nptl/pthreaddef.h: ... here.
37249         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
37250         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
37251         * nptl/sysdeps/i386/tls.h: Moved ...
37252         * sysdeps/i386/nptl/tls.h: ... here.
37253
37254         * sysdeps/sh/Makefile [$(subdir) = csu]
37255         (gen-as-const-headers): Add tcb-offsets.sym.
37256         * nptl/sysdeps/sh/Makefile: File removed.
37257         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
37258         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
37259         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
37260         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
37261         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
37262         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
37263         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
37264         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
37265         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
37266         * sysdeps/sh/nptl/pthreaddef.h: ... here.
37267         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
37268         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
37269         * nptl/sysdeps/sh/tls.h: Moved ...
37270         * sysdeps/sh/nptl/tls.h: ... here.
37271         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
37272         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
37273         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
37274         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
37275         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
37276         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
37277         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
37278         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
37279         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
37280         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
37281         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
37282         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
37283         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
37284         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
37285         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
37286         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
37287         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
37288         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
37289         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
37290         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
37291         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
37292         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
37293         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
37294         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
37295         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
37296         Moved ...
37297         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
37298         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
37299         Moved ...
37300         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
37301         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
37302         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
37303         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
37304         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
37305         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
37306         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
37307         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
37308         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
37309         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
37310         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
37311         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
37312         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
37313         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
37314         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
37315         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
37316         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
37317         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
37318         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
37319
37320 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37321
37322         * posix/spawn_faction_addopen.c: Include string.h.
37323
37324 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37325
37326         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
37327         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
37328         * nptl/sysdeps/x86_64/Makefile: Moved ...
37329         * sysdeps/x86_64/nptl/Makefile: ... here.
37330         * nptl/sysdeps/x86_64/configure: Moved ...
37331         * sysdeps/x86_64/nptl/configure: ... here.
37332         * nptl/sysdeps/x86_64/configure.ac: Moved ...
37333         * sysdeps/x86_64/nptl/configure.ac: ... here.
37334         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
37335         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
37336         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
37337         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
37338         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
37339         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
37340         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
37341         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
37342         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
37343         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
37344         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
37345         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
37346         * nptl/sysdeps/x86_64/tls.h: Moved ...
37347         * sysdeps/x86_64/nptl/tls.h: ... here.
37348         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
37349         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
37350         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
37351         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
37352
37353         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
37354
37355 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37356
37357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37358
37359 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
37360
37361         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
37362         type.
37363         [POSIX] (off_t): Likewise.
37364         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
37365         [POSIX] (S_ISBLK): Require macro.
37366         [POSIX] (S_ISCHR): Likewise.
37367         [POSIX] (S_ISDIR): Likewise.
37368         [POSIX] (S_ISFIFO): Likewise.
37369         [POSIX] (S_ISREG): Likewise.
37370         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
37371         optional-macro.
37372         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
37373         type.
37374         [POSIX] (time_t): Likewise.
37375         [POSIX] (timer_t): Likewise.
37376
37377 2014-06-11  Florian Weimer  <fweimer@redhat.com>
37378
37379         [BZ #17048]
37380         * posix/spawn_int.h (struct __spawn_action): Make the path string
37381         non-const to support deallocation.
37382         * posix/spawn_faction_addopen.c
37383         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
37384         * posix/spawn_faction_destroy.c
37385         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
37386         path in all spawn_do_open actions.
37387         * posix/tst-spawn.c (do_test): Exercise the copy operation in
37388         posix_spawn_file_actions_addopen.
37389
37390 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
37391
37392         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
37393         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
37394         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
37395         conditional code always true.
37396         (__libc_vfork): New alias.
37397
37398 2014-06-11  Roland McGrath  <roland@hack.frob.com>
37399
37400         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37401         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
37402
37403         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
37404
37405         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37406         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
37407
37408         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
37409         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
37410
37411         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37412         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
37413
37414 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
37415
37416         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
37417         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
37418         multiarch strcmp for PPC64.
37419         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
37420         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
37421         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
37422         multiarch optimizations.
37423         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
37424         (__libc_ifunc_impl_list): Likewise.
37425
37426 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
37427
37428         * benchtests/scripts/validate_benchout.py: New script.
37429         * benchtests/Makefile (bench-func): Call it.
37430         * benchtests/scripts/benchout.schema.json: New file.
37431
37432 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
37433
37434         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
37435         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
37436         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
37437         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
37438         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
37439         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
37440         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
37441         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
37442         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
37443         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
37444         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
37445         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
37446         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
37447         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
37448         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
37449         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
37450         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
37451         Moved ...
37452         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
37453         ... here.
37454         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
37455         Moved ...
37456         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
37457         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
37458         Moved ...
37459         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
37460         ... here.
37461         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
37462         Moved ...
37463         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
37464         ... here.
37465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
37466         Moved ...
37467         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
37468         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
37469         Moved ...
37470         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
37471         ... here.
37472         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
37473         Moved ...
37474         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
37475         ... here.
37476         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
37477         Moved ...
37478         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
37479         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
37480         Moved ...
37481         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
37482         ... here.
37483         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
37484         Moved ...
37485         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
37486         ... here.
37487         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
37488         Moved ...
37489         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
37490         ... here.
37491         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
37492         Moved ...
37493         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
37494         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
37495         Moved ...
37496         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
37497         ... here.
37498         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
37499         Moved ...
37500         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
37501         ... here.
37502         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
37503         Moved ...
37504         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
37505         ... here.
37506         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
37507         Moved ...
37508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
37509         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
37510         Moved ...
37511         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
37512         ... here.
37513         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
37514         Moved ...
37515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
37516         ... here.
37517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
37518         Moved ...
37519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
37520         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
37521         Moved ...
37522         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
37523         ... here.
37524         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
37525         Moved ...
37526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
37527         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
37528         Moved ...
37529         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
37530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
37531         Moved ...
37532         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
37533         ... here.
37534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
37535         Moved ...
37536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
37537         ... here.
37538         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
37539         Moved ...
37540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
37541         ... here.
37542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
37543         Moved ...
37544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
37545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
37546         Moved ...
37547         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
37548         ... here.
37549         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
37550         Moved ...
37551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
37552         ... here.
37553         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
37554         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
37555         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
37556         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
37557         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
37558         Moved ...
37559         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
37560         ... here.
37561         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
37562         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
37563         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
37564         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
37565         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
37566         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
37567         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
37568         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
37569         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
37570         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
37571         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
37572         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
37573         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
37574         Moved ...
37575         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
37576         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
37577         Moved ...
37578         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
37579         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
37580         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
37581         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
37582         Moved ...
37583         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
37584         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
37585         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
37586         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
37587         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
37588         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
37589         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
37590
37591 2014-06-10  Wilco  <wdijkstr@arm.com>
37592
37593         * math/test-fenv-return.c: New file.
37594         * math/Makefile: Add new test test-fenv-return.
37595
37596 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
37597
37598         [BZ #17042]
37599         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
37600         when x - 1 is zero.
37601         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
37602         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
37603         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
37604         0.0L for an argument of 1.0L.
37605         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
37606         Likewise.
37607         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
37608         value when x - 1 is zero.
37609         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
37610         * sysdeps/i386/fpu/libm-test-ulps: Update.
37611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37612
37613 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
37614
37615         [BZ #15119]
37616         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
37617
37618 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37619
37620         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
37621         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
37622
37623 2014-06-09  Roland McGrath  <roland@hack.frob.com>
37624
37625         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37626         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
37627
37628         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37629         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
37630
37631         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37632         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
37633
37634         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
37635         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
37636
37637         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
37638         if not already defined.
37639         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
37640         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
37641         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
37642         (TLS_INIT_TP): Use it.
37643         (TLS_DEFINE_INIT_TP): New macro.
37644         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
37645
37646 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
37647
37648         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
37649         constant.
37650         [POSIX] (IXANY): Likewise.
37651         [POSIX] (OLCUC): Likewise.
37652         [POSIX || POSIX2008] (CBAUD): Do not allow.
37653         [POSIX || POSIX2008] (DEFECHO): Likewise.
37654         [POSIX || POSIX2008] (ECHOCTL): Likewise.
37655         [POSIX || POSIX2008] (ECHOKE): Likewise.
37656         [POSIX || POSIX2008] (ECHOPRT): Likewise.
37657         [POSIX || POSIX2008] (EXTA): Likewise.
37658         [POSIX || POSIX2008] (EXTB): Likewise.
37659         [POSIX || POSIX2008] (FLUSHO): Likewise.
37660         [POSIX || POSIX2008] (LOBLK): Likewise.
37661         [POSIX || POSIX2008] (PENDIN): Likewise.
37662         [POSIX || POSIX2008] (SWTCH): Likewise.
37663         [POSIX || POSIX2008] (VDISCARD): Likewise.
37664         [POSIX || POSIX2008] (VDSUSP): Likewise.
37665         [POSIX || POSIX2008] (VLNEXT): Likewise.
37666         [POSIX || POSIX2008] (VREPRINT): Likewise.
37667         [POSIX || POSIX2008] (VSTATUS): Likewise.
37668         [POSIX || POSIX2008] (VWERASE): Likewise.
37669         (B*): Change to B[0123456789]*.
37670         * conform/data/time.h-data [POSIX || UNIX98]
37671         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
37672         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
37673         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
37674         [POSIX] (tm_*): Do not allow.
37675
37676 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
37677
37678         * Makefile (install): Don't set LANGUAGE.
37679         * Makefile.in (install): Likewise.
37680         * assert/Makefile (test-assert-ENV): Remove variable.
37681         (test-assert-perr-ENV): Likewise.
37682         * elf/Makefile (neededtest4-ENV): Likewise.
37683         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
37684         [$(cross-compiling) = no]: Don't set LANGUAGE.
37685         * io/ftwtest-sh (LANG): Remove variable.
37686         * libio/Makefile (tst-widetext-ENV): Likewise.
37687         * manual/install.texi (Running make install): Don't refer to
37688         environment settings for make install.
37689         * INSTALL: Regenerated.
37690         * nptl/tst-tls6.sh: Don't set LANG.
37691         * posix/globtest.sh (LANG): Remove variable.
37692         * string/Makefile (tester-ENV): Likewise.
37693         (inl-tester-ENV): Likewise.
37694         (noinl-tester-ENV): Likewise.
37695         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
37696         [$(cross-compiling) = no]: Don't set LANGUAGE.
37697         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
37698         without explicit environment settings.
37699
37700 2014-06-06  Roland McGrath  <roland@hack.frob.com>
37701
37702         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
37703         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
37704         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
37705         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
37706
37707 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
37708
37709         * crypt/crypt-private.h [DOS]: Add some includes taken from the
37710         other files in the crypt directory.
37711         * crypt/crypt.c: Remove duplicate includes.
37712         * crypt/crypt-entry.c: Likewise.
37713         * crypt/crypt_util.c: Likewise.
37714
37715 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
37716
37717         * Makeconfig (run-program-env): New variable.
37718         (run-program-prefix-before-env): Likewise.
37719         (run-program-prefix-after-env): Likewise.
37720         (run-program-prefix): Define in terms of new variables.
37721         (built-program-cmd-before-env): New variable.
37722         (built-program-cmd-after-env): Likewise.
37723         (built-program-cmd): Define in terms of new variables.
37724         (test-program-prefix-before-env): New variable.
37725         (test-program-prefix-after-env): Likewise.
37726         (test-program-prefix): Define in terms of new variables.
37727         (test-program-cmd-before-env): New variable.
37728         (test-program-cmd-after-env): Likewise.
37729         (test-program-cmd): Define in terms of new variables.
37730         * Rules (make-test-out): Use $(run-program-env).
37731         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
37732         (help): Do not mention environment variables.  Mention
37733         --timeoutfactor option.
37734         (timeoutfactor): New variable.
37735         (blacklist_exports): Remove function.
37736         (exports): Remove variable.
37737         (command): Do not include ${exports}.
37738         * manual/install.texi (Configuring and compiling): Do not mention
37739         test wrappers preserving environment variables.  Mention that last
37740         assignment to a variable must take precedence.
37741         * INSTALL: Regenerated.
37742         * benchtests/Makefile (run-bench): Use $(run-program-env).
37743         * catgets/Makefile ($(objpfx)test1.cat): Use
37744         $(built-program-cmd-before-env), $(run-program-env) and
37745         $(built-program-cmd-after-env).
37746         ($(objpfx)test2.cat): Do not specify environment variables
37747         explicitly.
37748         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
37749         $(run-program-env) and $(built-program-cmd-after-env).
37750         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
37751         $(run-program-env) and $(test-program-cmd-after-env).
37752         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
37753         explicitly.
37754         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
37755         run_program_env and test_program_cmd_after_env arguments.
37756         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
37757         * elf/tst-pathopt.sh: Use run_program_env argument.
37758         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
37759         $(test-wrapper-env) and $(run-program-env).
37760         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
37761         run_program_env arguments.
37762         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
37763         * intl/Makefile ($(objpfx)tst-gettext.out): Use
37764         $(test-program-prefix-before-env), $(run-program-env) and
37765         $(test-program-prefix-after-env).
37766         ($(objpfx)tst-gettext2.out): Likewise.
37767         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
37768         run_program_env and test_program_prefix_after_env arguments.
37769         * intl/tst-gettext2.sh: Likewise.
37770         * intl/tst-gettext4.sh: Do not set environment variables
37771         explicitly.
37772         * intl/tst-gettext6.sh: Likewise.
37773         * intl/tst-translit.sh: Likewise.
37774         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
37775         $(test-program-prefix-before-env), $(run-program-env) and
37776         $(test-program-prefix-after-env).
37777         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
37778         run_program_env and test_program_prefix_after_env arguments.
37779         * math/Makefile (run-regen-ulps): Use $(run-program-env).
37780         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
37781         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
37782         explicitly with each use of ${test_wrapper_env}.
37783         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
37784         $(test-program-prefix-before-env), $(run-program-env) and
37785         $(test-program-prefix-after-env).
37786         * posix/tst-getconf.sh: Do not set environment variables
37787         explicitly.
37788         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
37789         run_program_env and test_program_prefix_after_env arguments.
37790         * stdio-common/tst-printf.sh: Do not set environment variables
37791         explicitly.
37792         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
37793         $(test-program-prefix-before-env), $(run-program-env) and
37794         $(test-program-prefix-after-env).
37795         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
37796         run_program_env and test_program_prefix_after_env arguments.
37797         Split $test calls into $test_pre and $test.
37798         * timezone/Makefile (build-testdata): Use
37799         $(built-program-cmd-before-env), $(run-program-env) and
37800         $(built-program-cmd-after-env).
37801
37802 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37803
37804         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
37805         strlen for non SHARED builds.
37806
37807 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
37808
37809         * nptl/allocatestack.c (check_list): Inlined function...
37810         (__reclaim_stacks): ... here.
37811
37812 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
37813
37814         [BZ #15698]
37815         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
37816         memory overrun.
37817
37818 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
37819
37820         * Rules (make-test-out): Include
37821         LOCPATH=$(common-objpfx)localedata in default environment.
37822         * debug/Makefile (tst-chk1-ENV): Remove variable.
37823         (tst-chk2-ENV): Likewise.
37824         (tst-chk3-ENV): Likewise.
37825         (tst-chk4-ENV): Likewise.
37826         (tst-chk5-ENV): Likewise.
37827         (tst-chk6-ENV): Likewise.
37828         (tst-lfschk1-ENV): Likewise.
37829         (tst-lfschk2-ENV): Likewise.
37830         (tst-lfschk3-ENV): Likewise.
37831         (tst-lfschk4-ENV): Likewise.
37832         (tst-lfschk5-ENV): Likewise.
37833         (tst-lfschk6-ENV): Likewise.
37834         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
37835         (tst-iconv7-ENV): Likewise.
37836         * intl/Makefile (LOCPATH-ENV): Likewise.
37837         (tst-codeset-ENV): Likewise.
37838         (tst-gettext3-ENV): Likewise.
37839         (tst-gettext5-ENV): Likewise.
37840         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
37841         (tst-fopenloc-ENV): Likewise.
37842         (tst-fgetws-ENV): Remove variable.
37843         (tst-ungetwc1-ENV): Likewise.
37844         (tst-ungetwc2-ENV): Likewise.
37845         (bug-ungetwc2-ENV): Likewise.
37846         (tst-swscanf-ENV): Likewise.
37847         (bug-ftell-ENV): Likewise.
37848         (tst-fgetwc-ENV): Likewise.
37849         (tst-fseek-ENV): Likewise.
37850         (tst-ftell-partial-wide-ENV): Likewise.
37851         (tst-ftell-active-handler-ENV): Likewise.
37852         (tst-ftell-append-ENV): Likewise.
37853         * posix/Makefile (tst-fnmatch-ENV): Likewise.
37854         (tst-regexloc-ENV): Likewise.
37855         (bug-regex1-ENV): Likewise.
37856         (tst-regex-ENV): Likewise.
37857         (tst-regex2-ENV): Likewise.
37858         (bug-regex5-ENV): Likewise.
37859         (bug-regex6-ENV): Likewise.
37860         (bug-regex17-ENV): Likewise.
37861         (bug-regex18-ENV): Likewise.
37862         (bug-regex19-ENV): Likewise.
37863         (bug-regex20-ENV): Likewise.
37864         (bug-regex22-ENV): Likewise.
37865         (bug-regex23-ENV): Likewise.
37866         (bug-regex25-ENV): Likewise.
37867         (bug-regex26-ENV): Likewise.
37868         (bug-regex30-ENV): Likewise.
37869         (bug-regex32-ENV): Likewise.
37870         (bug-regex33-ENV): Likewise.
37871         (bug-regex34-ENV): Likewise.
37872         (bug-regex35-ENV): Likewise.
37873         (tst-rxspencer-ENV): Likewise.
37874         (tst-rxspencer-no-utf8-ENV): Likewise.
37875         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
37876         (tst-sscanf-ENV): Likewise.
37877         (tst-swprintf-ENV): Likewise.
37878         (tst-swscanf-ENV): Likewise.
37879         (test-vfprintf-ENV): Likewise.
37880         (scanf13-ENV): Likewise.
37881         (bug14-ENV): Likewise.
37882         (tst-grouping-ENV): Likewise.
37883         * stdlib/Makefile (tst-strtod-ENV): Likewise.
37884         (tst-strtod3-ENV): Likewise.
37885         (tst-strtod4-ENV): Likewise.
37886         (tst-strtod5-ENV): Likewise.
37887         (testmb2-ENV): Likewise./
37888         * string/Makefile (tst-strxfrm-ENV): Likewise.
37889         (tst-strxfrm2-ENV): Likewise.
37890         (bug-strcoll1-ENV): Likewise.
37891         (test-strcasecmp-ENV): Likewise.
37892         (test-strncasecmp-ENV): Likewise.
37893         * time/Makefile (tst-strptime-ENV): Likewise.
37894         (tst-ftime_l-ENV): Likewise.
37895         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
37896         (tst-mbrtowc-ENV): Likewise.
37897         (tst-wcrtomb-ENV): Likewise.
37898         (tst-mbrtowc2-ENV): Likewise.
37899         (tst-c16c32-1-ENV): Likewise.
37900         (tst-mbsnrtowcs-ENV): Likewise.
37901
37902 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
37903
37904         * manual/resource.texi (How to get information about the memory
37905         subsystem?): Fix typo.
37906         Reported by Peon de la Parra Ivan <peon@keba.com>
37907
37908 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
37909
37910         [BZ #16882]
37911         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
37912         (pthread_spin_lock): Branch out of spin loop to proper location.
37913         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
37914         (pthread_spin_lock): Likewise.
37915
37916         * nptl/tst-spin4.c: New test.
37917         * nptl/Makefile (tests): Add tst-spin4.
37918
37919 2014-06-03  Andreas Schwab  <schwab@suse.de>
37920
37921         [BZ #15946]
37922         * resolv/res_send.c (send_dg): Reload file descriptor after
37923         calling reopen.
37924
37925 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
37926
37927         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37928
37929 2014-06-03  Richard Henderson  <rth@redhat.com>
37930
37931         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
37932         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
37933         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
37934         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
37935         in the SAVE_PID block.
37936         (__libc_vfork): New alias.
37937         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
37938
37939         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
37940         child in registers, not on the stack.  Remove RESET_PID conditionals.
37941         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
37942
37943 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37944
37945         * sysdeps/aarch64/libm-test-ulps: Regenerate.
37946
37947 2014-06-03  Wilco  <wdijkstr@arm.com>
37948
37949         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
37950         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
37951         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
37952         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
37953         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
37954         Likewise.
37955
37956 2014-06-03  Wilco  <wdijkstr@arm.com>
37957
37958         * sysdeps/aarch64/fpu/math_private.h
37959         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
37960         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
37961         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
37962         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
37963         Fix declarations.
37964
37965 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
37966
37967         * crypt/crypt-private.h: Include ufc-crypt.h.
37968         (__b64_from_24bit): Declare extern.
37969         * crypt/crypt_util.c(__b64_from_24bit): New function.
37970         (b64t): New static const variable.
37971         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
37972         (b64t): Remove variable.
37973         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
37974         * crypt/sha256-crypt.c: Include crypt-private.h.
37975         (b64t): Remove variable.
37976         (__sha256_crypt_r): Remove b64_from_24bit and replace
37977         with __b64_from_24bit.
37978         * crypt/sha512-crypt.c: Likewise.
37979
37980 2014-06-02  Roland McGrath  <roland@hack.frob.com>
37981
37982         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
37983         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
37984         Label the code __libc_vfork rather than __vfork.
37985         [!NOT_IN_libc] (vfork): Define as weak alias.
37986         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
37987         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
37988         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
37989
37990 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
37991
37992         * malloc/malloc.c (malloc_info): Fix format specifier for
37993         n_mmaps.
37994
37995 2014-06-02  Wilco  <wdijkstr@arm.com>
37996
37997         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
37998         FPCR write.
37999
38000 2014-06-02  Wilco  <wdijkstr@arm.com>
38001
38002         [BZ #17009]
38003         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
38004         Rewrite to reduce FPCR/FPSR accesses.
38005
38006 2014-06-01  David S. Miller  <davem@davemloft.net>
38007
38008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38009
38010 2014-05-31  David S. Miller  <davem@davemloft.net>
38011
38012         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
38013         to occur in round to nearest mode when |x| >= 2.0
38014
38015 2014-05-30  Richard Henderson  <rth@twiddle.net>
38016
38017         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
38018         (PSEUDO_RET_NOERRNO): Remove.
38019         (ret): Don't redefine.
38020         (ret_NOERRNO): Define in terms of ret.
38021         (ret_ERRVAL): Likewise.
38022
38023         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
38024         use of PSEUDO_RET; perform the error check directly.
38025
38026 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
38027
38028         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
38029         with __int128_t.
38030
38031 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38032
38033         * malloc/malloc (malloc_info): Fix formatting.
38034
38035 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
38036             Roland McGrath  <roland@hack.frob.com>
38037
38038         * malloc/malloc (malloc_info): Also print mmapped statistics.
38039
38040 2014-05-30  Roland McGrath  <roland@hack.frob.com>
38041
38042         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
38043         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
38044
38045 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
38046
38047         * malloc/malloc.c (malloc_info): Inline mi_arena.
38048
38049 2014-05-29  Richard Henderson  <rth@twiddle.net>
38050
38051         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
38052         Remove comma before expanding ASM_ARGS_##nr.
38053         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
38054         Make _x0 a strict output; make _x8 a strict input; adjust expansion
38055         of ASM_ARGS_##nr.
38056         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
38057         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
38058         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
38059         (ASM_ARGS_1): Add leading comma.
38060
38061         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
38062         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
38063         to __errno_location.
38064         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
38065         Remove the expected plt for __errno_location.
38066
38067         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38068         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
38069         call to __read_tp.
38070
38071         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38072         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
38073         it and break it down.
38074         (DOCARGS_0, DOCARGS_1): Do nothing.
38075         (DOCARGS_2): Update to store into the new stack frame.
38076         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
38077         (UNDOCARGS_1): Update to restore from the new stack frame.
38078         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
38079         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
38080
38081         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38082         (SINGLE_THREAD_P): New parameter for result regno.
38083         (PSEUDO): Update to match; use cbz instead of beq.
38084
38085         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38086         Use ENTRY to define the _nocancel entry point.  Share the syscall
38087         and syscall error check paths with the cancel path.
38088         (PSEUDO_END): New.
38089
38090         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
38091         whitespace; tabs before and after asm mnemonics.
38092
38093 2014-05-29  Eric Wong  <normalperson@yhbt.net>
38094
38095         [BZ #15132]
38096         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
38097         Call fstat64 or stat64 internally, depending on arguments passed.
38098         Replace stat buffer argument with file descriptor argument.
38099         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
38100         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
38101         Pass fd to __internal_statvfs instead of calling fstat64.
38102         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
38103         Pass fd to __internal_statvfs64 instead of calling fstat64.
38104         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
38105         Pass -1 to __internal_statvfs instead of calling stat64.
38106         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
38107         Pass -1 to __internal_statvfs64 instead of calling stat64.
38108
38109 2014-05-28  Roland McGrath  <roland@hack.frob.com>
38110
38111         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
38112         that was previously under [RESET_PID].
38113         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
38114
38115         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
38116         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
38117
38118 2014-05-27  Roland McGrath  <roland@hack.frob.com>
38119
38120         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
38121
38122         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
38123         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
38124
38125 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
38126
38127         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
38128
38129 2014-05-27  Andreas Schwab  <schwab@suse.de>
38130
38131         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
38132         TLS_INIT_TP macro.
38133         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
38134         * elf/rtld.c (init_tls, dl_main): Likewise.
38135         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
38136         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
38137         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
38138         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
38139         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
38140         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
38141         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
38142         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
38143         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
38144         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
38145         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
38146         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
38147         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
38148         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
38149         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
38150         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
38151         * sysdeps/generic/tls.h: Update description.
38152
38153 2014-05-27  Will Newton  <will.newton@linaro.org>
38154
38155         [BZ #16990]
38156         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
38157         and restore r2 rather than just restoring.
38158
38159 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38160
38161         [BZ #16724]
38162         * libio/tst-ftell-append.c: New test case.
38163         * libio/Makefile (tests): Add test case.
38164         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
38165         append mode.
38166         * libio/wfileops.c (do_ftell_wide): Likewise.
38167
38168 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38169
38170         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38171
38172         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
38173         ...
38174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
38175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
38176         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
38177         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
38178         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
38179         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
38180         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
38181         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
38182         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38183         Moved ...
38184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
38185         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38186         Moved ...
38187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
38188         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
38189         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
38190         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
38191         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
38192         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
38193         ...
38194         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
38195         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
38196         Moved ...
38197         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
38198         here.
38199         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
38200         ...
38201         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
38202         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
38203         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
38204
38205         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
38206         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
38207         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
38208         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
38209
38210         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
38211         merge into ...
38212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
38213         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
38214         ...
38215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
38216         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
38217         ...
38218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
38219         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
38220         Moved ...
38221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
38222         here.
38223         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
38224         Moved ...
38225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
38226         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
38227         Moved ...
38228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
38229
38230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
38231         conditional [RESET_PID].
38232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
38233         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
38234         removed.
38235         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
38236         removed.
38237
38238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
38239         <tcb-offsets.h>.
38240         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
38241         (__libc_vfork): New strong alias.
38242         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
38243         removed.
38244         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
38245         Removed.
38246
38247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
38248         <tcb-offsets.h>.
38249         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
38250         (__libc_vfork): New strong alias.
38251         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
38252         removed.
38253         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
38254         removed.
38255
38256 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
38257
38258         * malloc/malloc.c (mi_arena): New function.
38259         (malloc_info): Remove nested function mi_arena. Call non-nosted
38260         function mi_arena.
38261
38262 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38263
38264         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
38265         by insrwi.
38266         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38267         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38268         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
38269         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
38270         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
38271         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
38272         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
38273
38274 2014-05-26  Andreas Schwab  <schwab@suse.de>
38275
38276         [BZ #16984]
38277         * locale/programs/repertoire.c (repertoire_read): Add slash
38278         between I18NPATH element and file name.
38279         * locale/programs/locfile.c (locfile_read): Likewise.
38280
38281 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38282
38283         * nptl/pthread_mutexattr_settype.c
38284         (__pthread_mutexattr_settype):
38285         Disable lock elision for PTHREAD_MUTEX_NORMAL.
38286
38287 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
38288
38289         * nptl/tst-mutex5 (do_test):
38290         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
38291
38292 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38293
38294         * benchtests/README: Document 'init' directive.
38295         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
38296         BENCH_INIT.
38297         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
38298         (parse_file): Recognize 'init' directive.
38299
38300 2014-05-26  Kyle McMartin  <kyle@redhat.com>
38301
38302         [BZ #16796]
38303         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
38304         alignment of struct pthread.
38305
38306 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38307
38308         [BZ #16878]
38309         * nscd/netgroupcache.c (addgetnetgrentX): Look for
38310         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38311         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
38312         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
38313
38314 2014-05-25  Richard Henderson  <rth@twiddle.net>
38315
38316         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38317         (SINGLE_THREAD_P_PIC): Remove.
38318         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
38319         (SINGLE_THREAD_P_PIC): Remove.
38320
38321         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
38322         branch to syscall error ...
38323         (PSEUDO): ... here.
38324         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
38325         from __local_syscall_error to .Lsyscall_error.
38326         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
38327         (SYSCALL_ERROR): Update label name.
38328
38329         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38330         Do not use DOARGS/UNDOARGS.
38331         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
38332         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
38333         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
38334         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
38335         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
38336
38337         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
38338         block comment.
38339
38340         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
38341         define if !NOT_IN_libc.
38342         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
38343         define with non-default symbol versions.
38344
38345 2014-05-23  Richard Henderson  <rth@twiddle.net>
38346
38347         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
38348         (vfork, __vfork): Define via compat_symbol.
38349
38350         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
38351         [!HAVE_IFUNC] (vfork_compat): Remove.
38352         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
38353
38354 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38355
38356         [BZ #16978]
38357         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
38358         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
38359         variable.
38360
38361 2014-05-23  Richard Henderson  <rth@twiddle.net>
38362
38363         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
38364         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
38365         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
38366         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
38367
38368         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
38369         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
38370         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
38371         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
38372         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
38373         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
38374         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
38375         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
38376         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
38377         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
38378         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
38379         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
38380         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
38381         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
38382         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
38383         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
38384         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
38385         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
38386         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
38387         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
38388         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
38389         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
38390         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
38391         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
38392         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
38393         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
38394         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
38395         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
38396         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
38397         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
38398         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
38399         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
38400         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
38401         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
38402         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
38403         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
38404         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
38405         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
38406         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
38407         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
38408         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
38409         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
38410         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
38411         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
38412         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
38413         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
38414         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
38415         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
38416         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
38417         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
38418         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
38419         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
38420         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
38421         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
38422         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
38423         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
38424
38425         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
38426         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
38427         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
38428         before exiting on error.
38429         (__libc_vfork): New strong alias.
38430         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
38431         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
38432
38433         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
38434         that was previously under [RESET_PID].
38435         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
38436
38437         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
38438
38439 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
38440
38441         [BZ #16977]
38442         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
38443         value when x - 1 is zero.
38444         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
38445         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
38446         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
38447         0.0L for an argument of 1.0L.
38448         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
38449         Likewise.
38450         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
38451         value when x - 1 is zero.
38452         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
38453         * sysdeps/i386/fpu/libm-test-ulps: Update.
38454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38455
38456 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
38457
38458         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
38459         alphasort and versionsort.
38460
38461 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38462
38463         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
38464         macro.
38465         [copysignf]: Likewise.
38466
38467 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
38468
38469         * crypt/md5-crypt.c: Fix formatting.
38470
38471 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
38472
38473         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
38474         (b64_from_24bit): New function.
38475
38476 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38477
38478         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
38479         libc_hidden_builtin_def to ifunc.
38480         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
38481         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
38482
38483 2014-05-21  Roland McGrath  <roland@hack.frob.com>
38484
38485         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
38486         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
38487
38488 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
38489
38490         * nscd/Depend (linuxthreads): Remove.
38491         (nptl): Add.
38492         * resolv/Depend (linuxthreads): Remove.
38493         * rt/Depend (linuxthreads): Remove.
38494
38495         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
38496         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
38497         $(common-objpfx)elf/.
38498         (link-libc-before-gnulib): Likewise.
38499         (elfobjdir): Remove variable.
38500         * Makefile (install): Use $(elf-objpfx) instead of
38501         $(common-objpfx)elf/.
38502         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
38503         $(elfobjdir)/.
38504         (link-libc-deps): Likewise.
38505         ($(common-objpfx)libc.so): Likewise.
38506         ($(common-objpfx)linkobj/libc.so): Likewise.
38507         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
38508         instead of $(common-objpfx)elf/.
38509         (symbolic-link-list): Likewise.
38510         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
38511         [$(cross-compiling) = no]: Likewise.
38512         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
38513         $(elfobjdir)/.
38514         (static-gnulib-arch): Likewise.
38515         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
38516         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
38517         $(common-objpfx)elf/.
38518
38519 2014-05-21  Richard Henderson  <rth@redhat.com>
38520
38521         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
38522         (SINGLE_THREAD_P): Use the correct width load.  Fold
38523         into the ldr offset.
38524
38525         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
38526         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
38527
38528 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
38529
38530         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
38531         (libgcc_s_resume): Use __attribute_used__.
38532         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
38533         Likewise.
38534
38535 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38536
38537         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
38538         optimization when used with float constants.
38539
38540         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38541
38542 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
38543
38544         [BZ #16915]
38545         * locale/nl_langinfo_l.c: Make direct reference to every
38546         _nl_current_CATEGORY symbol.
38547         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
38548         (tests-static): Add tst-langinfo-static.
38549         (tests-special): Add tst-langinfo-static.out.
38550         ($(objpfx)tst-langinfo.out): Redirect output.
38551         ($(objpfx)tst-langinfo-static.out): New.
38552         * localedata/tst-langinfo.sh: Send output to stdout.
38553         * localedata/tst-langinfo-static.c: New file.
38554
38555         [BZ #16965]
38556         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
38557         when the shift amount is modulo the limb size.
38558
38559 2014-05-20  Richard Henderson  <rth@redhat.com>
38560
38561         [BZ #16967]
38562         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
38563         Change type of sa_flags from unsigned int to int.
38564
38565         [BZ #16966]
38566         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
38567
38568         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
38569
38570 2014-05-20  Will Newton  <will.newton@linaro.org>
38571
38572         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
38573         Test the return value of the system call in the nocancel case.
38574
38575 2014-05-20  Will Newton  <will.newton@linaro.org>
38576             Yvan Roux  <yvan.roux@linaro.org>
38577
38578         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
38579         #include of asm/ptrace.h.
38580         (PTRACE_GET_THREAD_AREA): Remove #undef.
38581         (PTRACE_GETHBPREGS): Likewise.
38582         (PTRACE_SETHBPREGS): Likewise.
38583         (struct user_regs_struct): New structure.
38584         (struct user_fpsimd_struct): New structure.
38585         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
38586         #include of asm/ptrace.h and second #include of sys/user.h.
38587         (PTRACE_GET_THREAD_AREA): Remove #undef.
38588         (PTRACE_GETHBPREGS): Likewise.
38589         (PTRACE_SETHBPREGS): Likewise.
38590         (ELF_NGREG): Use new struct user_regs_struct.
38591         (elf_fpregset_t): Use new struct user_fpsimd_struct.
38592
38593 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38594
38595         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
38596         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
38597
38598 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
38599
38600         [BZ #16958]
38601         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
38602         membar to avoid block loads/stores to overlap previous stores.
38603
38604 2014-05-17  Richard Henderson  <rth@redhat.com>
38605
38606         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
38607         Create the __##syscall_name##_nocancel entry point.
38608         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
38609         Remove; let the sysdep-cancel.h code create it.
38610
38611 2014-05-17  David S. Miller  <davem@davemloft.net>
38612
38613         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
38614         Protect with __USE_GNU.
38615         (TIOCSET_TEMPT): Likewise.
38616         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
38617         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
38618         these are already provided in bits/ioctl-types.h
38619
38620 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38621
38622         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
38623         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
38624
38625         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
38626         Use wait4 regardless of [__NR_waitpid].
38627
38628 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
38629
38630         PR libgcc/60166
38631         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
38632         (_FP_NANSIGN_Q): Set the quiet bit.
38633
38634 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
38635
38636         * benchtests/Makefile
38637         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
38638         not $(common-objpfx)math/libm.so.
38639         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
38640         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
38641         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
38642         $(common-objpfx)dlfcn/libdl.so.
38643         ($(objpfx)tst-audit8): Depend on $(libm), not
38644         $(common-objpfx)math/libm.so.
38645         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
38646         not $(common-objpfx)dlfcn/libdl.so.
38647         * math/Makefile
38648         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
38649         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
38650         [$(build-shared) = yes].
38651         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
38652         $(common-objpfx)nptl/libpthread.so.
38653         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
38654         $(common-objpfx)math/libm.so$(libm.so-version) or
38655         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
38656         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
38657         $(common-objpfx)dlfcn/libdl.so.
38658         * setjmp/Makefile (link-libm): Remove variable.
38659         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
38660         * stdio-common/Makefile (link-libm): Remove variable.
38661         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
38662         * stdlib/Makefile (link-libm): Remove variable.
38663         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
38664         ($(objpfx)tst-strtod-round): Likewise.
38665         ($(objpfx)tst-tininess): Likewise.
38666         ($(objpfx)tst-strtod-underflow): Likewise.
38667         ($(objpfx)tst-strtod6): Likewise.
38668         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
38669         $(libdl), not $(common-objpfx)nptl/libpthread.so and
38670         $(common-objpfx)dlfcn/libdl.so.
38671
38672 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38673
38674         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
38675         BSD terminal modes definitions.
38676
38677 2014-05-16  Roland McGrath  <roland@hack.frob.com>
38678
38679         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
38680         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
38681
38682         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
38683         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
38684         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
38685         Don't do #include_next.
38686         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
38687         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
38688         Don't do #include_next.
38689         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
38690         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
38691         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
38692         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
38693
38694 2014-05-16  Allan McRae  <allan@archlinux.org>
38695
38696         * po/sv.po: Update Swedish translation from translation project.
38697
38698         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
38699         in sed expression.
38700
38701 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
38702
38703         [BZ #16917]
38704         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
38705         errno if the TIOCGPTN ioctl fails with an error different than
38706         EINVAL.
38707         * login/tst-ptsname.c: New file.
38708         * login/Makefile (tests): Add tst-ptsname.
38709
38710         [BZ #16943]
38711         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
38712         and prlimit64.
38713
38714 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
38715
38716         [BZ #16849]
38717         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
38718         herrno to return EAI_AGAIN.
38719
38720 2014-05-14  Roland McGrath  <roland@hack.frob.com>
38721
38722         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
38723         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
38724         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
38725         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
38726         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
38727         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
38728         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
38729         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
38730         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
38731         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
38732         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
38733         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
38734         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
38735         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
38736         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
38737         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
38738         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
38739         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
38740         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
38741         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
38742         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
38743         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
38744         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
38745         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
38746         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
38747         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
38748         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
38749         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
38750         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
38751         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
38752         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
38753         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
38754         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
38755         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
38756         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
38757         Moved ...
38758         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
38759         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
38760         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
38761         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
38762         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
38763         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
38764         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
38765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
38766         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
38767         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
38768         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
38769         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
38770         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
38771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
38772         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
38773         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
38774         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
38775         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
38776         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
38777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
38778         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
38779         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
38780         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
38781         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
38782         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
38783         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
38784         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
38785         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
38786         Moved ...
38787         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
38788         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
38789         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
38790         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
38791         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
38792         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
38793         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
38794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
38795         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
38796         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
38797         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
38798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
38799         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
38800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
38801         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
38802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
38803         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
38804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
38805         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
38806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
38807         Moved ...
38808         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
38809         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
38810         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
38811
38812         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
38813         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
38814         (libpthread-sysdep_routines): Add elision-related stuff here instead.
38815         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
38816         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
38817         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
38818         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
38819         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
38820         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
38821         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
38822         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
38823         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
38824         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
38825         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
38826         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
38827         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
38828         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
38829         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
38830         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
38831         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
38832         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
38833         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
38834         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
38835         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
38836         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
38837         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
38838         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
38839         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
38840         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
38841         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
38842         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
38843
38844         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
38845         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
38846
38847         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
38848         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
38849         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
38850         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
38851         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
38852         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
38853         Moved ...
38854         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
38855         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
38856         Moved ...
38857         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
38858         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
38859         Moved ...
38860         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
38861         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
38862         Moved ...
38863         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
38864         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
38865         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
38866         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
38867         Moved ...
38868         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
38869         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
38870         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
38871         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
38872         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
38873         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
38874         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
38875         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
38876         Moved ...
38877         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
38878         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
38879         Moved ...
38880         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
38881         ... here.
38882         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
38883         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
38884         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
38885         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
38886         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
38887         Moved ...
38888         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
38889         ... here.
38890         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
38891         Moved ...
38892         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
38893         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
38894         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
38895         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
38896         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
38897         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
38898         Moved ...
38899         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
38900         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
38901         Moved ...
38902         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
38903         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
38904         Moved ...
38905         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
38906         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
38907         Moved ...
38908         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
38909         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
38910         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
38911         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
38912         Moved ...
38913         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
38914         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
38915         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
38916         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
38917         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
38918         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
38919         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
38920         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
38921         Moved ...
38922         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
38923         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
38924         Moved ...
38925         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
38926         ... here.
38927         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
38928         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
38929         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
38930         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
38931         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
38932         Moved ...
38933         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
38934         ... here.
38935         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
38936         Moved ...
38937         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
38938         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
38939         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
38940         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
38941         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
38942         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
38943         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
38944         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
38945         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
38946         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
38947         Moved ...
38948         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
38949         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
38950         Moved ...
38951         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
38952         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
38953         Moved ...
38954         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
38955         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
38956         Moved ...
38957         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
38958         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
38959         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
38960         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
38961         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
38962         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
38963         Moved ...
38964         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
38965         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
38966         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
38967         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
38968         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
38969         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
38970         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
38971         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
38972         Moved ...
38973         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
38974         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
38975         Moved ...
38976         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
38977         ... here.
38978         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
38979         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
38980         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
38981         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
38982         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
38983         Moved ...
38984         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
38985         ... here.
38986         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
38987         Moved ...
38988         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
38989         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
38990         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
38991         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
38992         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
38993         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
38994         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
38995         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
38996         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
38997         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
38998         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
38999
39000         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
39001         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
39002
39003         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
39004         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
39005
39006         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
39007         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
39008         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
39009         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
39010         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
39011         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
39012         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
39013         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
39014         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
39015         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
39016         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
39017         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
39018         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
39019         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
39020         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
39021         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
39022         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
39023         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
39024         Moved ...
39025         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
39026         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
39027         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
39028         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
39029         Moved ...
39030         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
39031         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
39032         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
39033         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
39034         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
39035         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
39036         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
39037         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
39038         Moved ...
39039         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
39040         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
39041         Moved ...
39042         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
39043         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
39044         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
39045         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
39046         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
39047         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
39048         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
39049         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
39050         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
39051         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
39052         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
39053         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
39054         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
39055         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
39056         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
39057         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
39058         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
39059
39060         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
39061         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
39062         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
39063         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
39064         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
39065
39066         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
39067         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
39068         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
39069         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
39070         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
39071         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
39072         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
39073         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
39074         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
39075         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
39076
39077         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
39078         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
39079
39080         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
39081         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
39082         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
39083         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
39084         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
39085         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
39086         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
39087         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
39088         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
39089         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
39090         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
39091         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
39092         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
39093         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
39094         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
39095         Update #include.
39096         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
39097         Likewise.
39098         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
39099         Likewise.
39100         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
39101         Likewise.
39102         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
39103         Likewise.
39104         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
39105         Likewise.
39106         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
39107         Likewise.
39108         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
39109         Likewise.
39110         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
39111         Likewise.
39112         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
39113         Likewise.
39114         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
39115         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
39116         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
39117         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
39118         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
39119         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
39120         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
39121         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
39122         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
39123         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
39124         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
39125         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
39126         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
39127         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
39128         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
39129
39130         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
39131         that was previously under [RESET_PID].
39132         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
39133         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
39134         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
39135
39136         * sysdeps/i386/nptl/Implies: New file.
39137         * sysdeps/x86_64/nptl/Implies: New file.
39138         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
39139         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
39140         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
39141         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
39142
39143         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
39144         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39145         (__libc_vfork): New strong alias.
39146         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
39147         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
39148
39149         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
39150         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39151         (__libc_vfork): New strong alias.
39152         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
39153         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
39154
39155         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
39156         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
39157         (__libc_vfork): New strong alias.
39158         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
39159         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
39160         * nptl/pt-vfork.c: New file.
39161         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
39162         (libpthread: GLIBC_2.20): New version set (empty).
39163
39164 2014-05-14  Will Newton  <will.newton@linaro.org>
39165
39166         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
39167         rather than #if.
39168
39169 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39170
39171         [BZ #16564]
39172         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
39173         arguments with exponent 65 or above.
39174         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
39175         arguments 0x1p113L or above.
39176         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
39177         to arguments 0x1p107L or above.
39178         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
39179         positive arguments with exponent 65 or above.
39180         * math/auto-libm-test-in: Add more tests of log1p.
39181         * math/auto-libm-test-out: Regenerated.
39182
39183         [BZ #16928]
39184         * math/s_cacos.c (__cacos): Ensure zero real part of result from
39185         non-finite arguments is +0.
39186         * math/s_cacosf.c (__cacosf): Likewise.
39187         * math/s_cacosl.c (__cacosl): Likewise.
39188         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
39189         * sysdeps/i386/fpu/libm-test-ulps: Update.
39190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39191
39192         [BZ #16927]
39193         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
39194         value.
39195         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
39196         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
39197         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
39198         for explicit high bit of mantissa when testing for argument equal
39199         to 1.
39200         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
39201         * sysdeps/i386/fpu/libm-test-ulps: Update.
39202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39203
39204         [BZ #16516]
39205         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
39206         (__erf): Scale by 16 instead of 8 in potentially underflowing
39207         case.  Ensure exception if result actually underflows.
39208         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
39209         (__erff): Scale by 16 instead of 8 in potentially underflowing
39210         case.  Ensure exception if result actually underflows.
39211         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
39212         (efx8): Remove variable.
39213         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39214         case.  Ensure exception if result actually underflows.
39215         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
39216         (efx8): Remove variable.
39217         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39218         case.  Ensure exception if result actually underflows.
39219         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
39220         (efx8): Remove variable.
39221         (__erfl): Scale by 16 instead of 8 in potentially underflowing
39222         case.  Ensure exception if result actually underflows.
39223         * math/auto-libm-test-in: Add more tests of erf.
39224         * math/auto-libm-test-out: Regenerated.
39225
39226 2014-05-14  Andreas Schwab  <schwab@suse.de>
39227
39228         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
39229         Remove code conditionalized on USE___THREAD.
39230
39231         * config.h.in (HAVE_PT_CHOWN): Define as 0.
39232         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
39233         not definedness.
39234
39235 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
39236
39237         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
39238         Define unconditionally.
39239         (__ASSUME_O_CLOEXEC): Likewise.
39240         (__ASSUME_SOCK_CLOEXEC): Likewise.
39241         (__ASSUME_IN_NONBLOCK): Likewise.
39242         (__ASSUME_PIPE2): Likewise.
39243         (__ASSUME_EVENTFD2): Likewise.
39244         (__ASSUME_SIGNALFD4): Likewise.
39245         (__ASSUME_DUP3): Likewise.
39246         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
39247         (__ASSUME_DUP3): Do not define.
39248         (__ASSUME_EVENTFD2): Likewise.
39249         (__ASSUME_IN_NONBLOCK): Likewise.
39250         (__ASSUME_O_CLOEXEC): Likewise.
39251         (__ASSUME_PIPE2): Likewise.
39252         (__ASSUME_SIGNALFD4): Likewise.
39253         (__ASSUME_SOCK_CLOEXEC): Likewise.
39254         (__ASSUME_UTIMES): Undefine.
39255         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39256         (__ASSUME_UTIMES): Do not define.
39257         (__ASSUME_O_CLOEXEC): Likewise.
39258         (__ASSUME_SOCK_CLOEXEC): Likewise.
39259         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
39260         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
39261         0x020621].
39262         (__ASSUME_PIPE2): Likewise.
39263         (__ASSUME_EVENTFD2): Likewise.
39264         (__ASSUME_SIGNALFD4): Likewise.
39265         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
39266         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
39267         Do not define.
39268         (__ASSUME_EVENTFD2): Likewise.
39269         (__ASSUME_SIGNALFD4): Likewise.
39270         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
39271         (__ASSUME_32BITUIDS): Likewise.
39272         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
39273         (__ASSUME_IPC64): Likewise.
39274         (__ASSUME_ST_INO_64_BIT): Likewise.
39275         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
39276         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
39277         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39278         (__ASSUME_UTIMES): Do not define.
39279         (__ASSUME_PSELECT): Likewise.
39280         (__ASSUME_PPOLL): Likewise.
39281         (__ASSUME_O_CLOEXEC): Likewise.
39282         (__ASSUME_SOCK_CLOEXEC): Likewise.
39283         (__ASSUME_IN_NONBLOCK): Likewise.
39284         (__ASSUME_PIPE2): Likewise.
39285         (__ASSUME_EVENTFD2): Likewise.
39286         (__ASSUME_SIGNALFD4): Likewise.
39287         (__ASSUME_DUP3): Likewise.
39288         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39289         (__ASSUME_UTIMES): Likewise.
39290         (__ASSUME_O_CLOEXEC): Likewise.
39291         (__ASSUME_SOCK_CLOEXEC): Likewise.
39292         (__ASSUME_IN_NONBLOCK): Likewise.
39293         (__ASSUME_PIPE2): Likewise.
39294         (__ASSUME_EVENTFD2): Likewise.
39295         (__ASSUME_SIGNALFD4): Likewise.
39296         (__ASSUME_DUP3): Likewise.
39297         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
39298         (__ASSUME_UTIMES): Likewise.
39299         (__ASSUME_O_CLOEXEC): Likewise.
39300         (__ASSUME_SOCK_CLOEXEC): Likewise.
39301         (__ASSUME_IN_NONBLOCK): Likewise.
39302         (__ASSUME_PIPE2): Likewise.
39303         (__ASSUME_EVENTFD2): Likewise.
39304         (__ASSUME_SIGNALFD4): Likewise.
39305         (__ASSUME_DUP3): Likewise.
39306         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
39307         Likewise.
39308         (__ASSUME_UTIMES): Likewise.
39309         (__ASSUME_EVENTFD2): Likewise.
39310         (__ASSUME_SIGNALFD4): Likewise.
39311         * sysdeps/unix/sysv/linux/tile/kernel-features.h
39312         (__ASSUME_O_CLOEXEC): Likewise.
39313         (__ASSUME_SOCK_CLOEXEC): Likewise.
39314         (__ASSUME_IN_NONBLOCK): Likewise.
39315         (__ASSUME_PIPE2): Likewise.
39316         (__ASSUME_EVENTFD2): Likewise.
39317         (__ASSUME_SIGNALFD4): Likewise.
39318         (__ASSUME_DUP3): Likewise.
39319         (__ASSUME_UTIMES): Undefine.
39320
39321         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
39322         feclearexcept.  Remove symbol versioning code.
39323         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
39324         symbol versioning code.
39325         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
39326         symbol versioning code.
39327         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
39328         feupdateenv.  Remove symbol versioning code.
39329         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
39330         fegetexceptflag.  Remove symbol versioning code.
39331         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
39332         fesetexceptflag.  Remove symbol versioning code.
39333         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
39334         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
39335         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
39336         (__posix_fadvise64_l32): Remove prototype.
39337         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
39338         code.
39339
39340 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39341
39342         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
39343         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
39344         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
39345         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
39346
39347 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
39348
39349         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
39350         current working directory
39351
39352 2014-05-13  Roland McGrath  <roland@hack.frob.com>
39353
39354         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
39355         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
39356         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
39357         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
39358         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
39359         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
39360         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
39361         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
39362         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
39363         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
39364         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
39365         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
39366         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
39367         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
39368         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
39369         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
39370         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
39371         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
39372         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
39373         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
39374         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
39375         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
39376         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
39377         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
39378         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
39379         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
39380         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
39381         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
39382         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
39383         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
39384         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
39385         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
39386         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
39387         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
39388         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
39389         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
39390         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
39391         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
39392         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
39393         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
39394         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
39395         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
39396
39397         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
39398         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
39399
39400         * sysdeps/unix/sysv/linux/arm/Makefile
39401         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
39402         Add rt-aeabi_unwind_cpp_pr1.
39403         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
39404         Add nptl-aeabi_unwind_cpp_pr1.
39405         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
39406         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
39407         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
39408         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
39409         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
39410         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
39411
39412         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
39413         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
39414         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
39415         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
39416
39417         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
39418         Deconditionalize the code that was previously under [RESET_PID].
39419         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
39420
39421         * sysdeps/generic/exit-thread.h: New file.
39422         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
39423         * include/unistd.h (__exit_thread): Remove declaration.
39424         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
39425         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
39426         * csu/libc-start.c: Include <exit-thread.h>.
39427         (LIBC_START_MAIN): Pass no argument to __exit_thread.
39428         * nptl/pthread_create.c: Include <exit-thread.h>.
39429         (start_thread): Call __exit_thread in place of __exit_thread_inline.
39430         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
39431         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
39432         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
39433         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
39434         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
39435         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
39436         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
39437         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
39438         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
39439         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
39440         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
39441         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
39442         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
39443         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
39444         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
39445         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
39446
39447 2014-05-13  Andreas Schwab  <schwab@suse.de>
39448
39449         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
39450
39451 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
39452
39453         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
39454         (__ASSUME_UTIMES): Do not condition on kernel version.
39455         (__ASSUME_PSELECT): Define unconditionally.
39456         (__ASSUME_PPOLL): Likewise.
39457         (__ASSUME_ATFCTS): Likewise.
39458         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
39459         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
39460         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
39461         (__ASSUME_UTIMENSAT): Define unconditionally.
39462         (__ASSUME_PRIVATE_FUTEX): Likewise.
39463         (__ASSUME_FALLOCATE): Likewise.
39464         (__ASSUME_O_CLOEXEC): Likewise.
39465         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
39466         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
39467         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
39468         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
39469         (__ASSUME_IN_NONBLOCK): Likewise.
39470         (__ASSUME_PIPE2): Likewise.
39471         (__ASSUME_EVENTFD2): Likewise.
39472         (__ASSUME_SIGNALFD4): Likewise.
39473         (__ASSUME_DUP3): Likewise.
39474         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39475         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
39476         (__ASSUME_AT_RANDOM): Likewise.
39477         (__ASSUME_PREADV): Likewise.
39478         (__ASSUME_PWRITEV): Likewise.
39479         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
39480         (__ASSUME_F_GETOWN_EX): Define unconditionally.
39481         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
39482         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
39483         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
39484         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
39485         (__ASSUME_O_CLOEXEC): Define unconditionally.
39486         (__ASSUME_PSELECT): Do not undefine conditionally.
39487         (__ASSUME_PPOLL): Likewise.
39488         (__ASSUME_ATFCTS): Likewise.
39489         (__ASSUME_SET_ROBUST_LIST): Likewise.
39490         (__ASSUME_UTIMENSAT): Likewise.
39491         (__ASSUME_FDATASYNC): Define unconditionally.
39492         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39493         (__ASSUME_SIGFRAME_V2): Likewise.
39494         )__ASSUME_EVENTFD2): Likewise.
39495         (__ASSUME_SIGNALFD4): Likewise.
39496         (__ASSUME_PSELECT): Do not undefine conditionally.
39497         (__ASSUME_PPOLL): Likewise.
39498         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
39499         (__ASSUME_PSELECT): Define unconditionally.
39500         (__ASSUME_PPOLL): Likewise.
39501         (__ASSUME_O_CLOEXEC): Likewise.
39502         (__ASSUME_SOCK_CLOEXEC): Likewise.
39503         (__ASSUME_IN_NONBLOCK): Likewise.
39504         (__ASSUME_PIPE2): Likewise.
39505         (__ASSUME_EVENTFD2): Likewise.
39506         (__ASSUME_SIGNALFD4): Likewise.
39507         (__ASSUME_DUP3): Likewise.
39508         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
39509         (__ASSUME_O_CLOEXEC): Likewise.
39510         (__ASSUME_SOCK_CLOEXEC): Likewise.
39511         (__ASSUME_IN_NONBLOCK): Likewise.
39512         (__ASSUME_PIPE2): Likewise.
39513         (__ASSUME_EVENTFD2): Likewise.
39514         (__ASSUME_SIGNALFD4): Likewise.
39515         (__ASSUME_DUP3): Likewise.
39516         * sysdeps/unix/sysv/linux/mips/kernel-features.h
39517         (__ASSUME_EVENTFD2): Likewise.
39518         (__ASSUME_SIGNALFD4): Likewise.
39519         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
39520
39521 2014-05-12  Andreas Schwab  <schwab@suse.de>
39522
39523         [BZ #16932]
39524         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
39525         (_nss_nis_gethostbyname4_r): Return error if item length is larger
39526         than maximum RPC packet size.
39527         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
39528         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
39529         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
39530         (_nss_nis_getservbyport_r): Likewise.
39531
39532 2014-05-12  Will Newton  <will.newton@linaro.org>
39533
39534         * malloc/Makefile (tests): Add tst-mallopt.
39535         * malloc/tst-mallopt.c: New file.
39536
39537 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39538
39539         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
39540         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
39541
39542 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39543
39544         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
39545         (tst-tlsmod6.so): Likewise.
39546
39547 2014-05-09  Roland McGrath  <roland@hack.frob.com>
39548
39549         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
39550
39551 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
39552
39553         [BZ #16064]
39554         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
39555         and <dl-procinfo.h>.
39556         (__fegetenv): Save SSE state in envp->__eip if supported.
39557         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
39558         envp->__eip if supported.
39559         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
39560         and <dl-procinfo.h>.
39561         (__fesetenv): Always set __eip, __cs_selector, __opcode,
39562         __data_offset and __data_selector in environment to 0.  Set SSE
39563         state if supported.
39564         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
39565         test-fenv-sse.
39566         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
39567         -mfpmath=sse.
39568         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
39569
39570 2014-05-09  Will Newton  <will.newton@linaro.org>
39571
39572         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
39573         and libc_relro_required for ARM.
39574         * sysdeps/arm/preconfigure: Regenerate.
39575
39576 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39577             Stefan Liebler  <stli@linux.vnet.ibm.com>
39578
39579         * config.make.in (enable-lock-elision): New Makefile variable.
39580         * configure.ac: Likewise.
39581         * configure: Regenerate.
39582         * sysdeps/s390/configure.ac:
39583         Add check for gcc transactions support.
39584         * sysdeps/s390/configure: Regenerate.
39585         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
39586         Build elision files if enabled.
39587         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
39588         Add lock elision support for s390.
39589         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
39590         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
39591         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
39592         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
39593         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
39594         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
39595         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
39596         Likewise.
39597         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
39598         Likewise.
39599         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
39600         Likewise.
39601         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
39602         Likewise.
39603         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
39604         (__lll_timedlock_elision, __lll_lock_elision)
39605         (__lll_unlock_elision, __lll_trylock_elision)
39606         (lll_timedlock_elision, lll_lock_elision)
39607         (lll_unlock_elision, lll_trylock_elision): Add.
39608         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
39609         (pthread_mutex_t): Add lock elision support for s390.
39610
39611 2014-05-14  Wilco  <wdijkstr@arm.com>
39612
39613         * sysdeps/arm/fclrexcpt.c: Cleanup.
39614         * sysdeps/arm/fedisblxcpt.c: Cleanup.
39615         * sysdeps/arm/feenablxcpt.c: Cleanup.
39616         * sysdeps/arm/fegetenv.c: Cleanup.
39617         * sysdeps/arm/fegetexcept.c: Cleanup.
39618         * sysdeps/arm/fegetround.c: Cleanup.
39619         * sysdeps/arm/feholdexcpt.c: Cleanup.
39620         * sysdeps/arm/fesetenv.c: Cleanup.
39621         * sysdeps/arm/fesetround.c: Cleanup.
39622         * sysdeps/arm/feupdateenv.c: Cleanup.
39623         * sysdeps/arm/fgetexcptflg.c: Cleanup.
39624         * sysdeps/arm/fraiseexcpt.c: Cleanup.
39625         * sysdeps/arm/fsetexcptflg.c: Cleanup.
39626         * sysdeps/arm/ftestexcept.c: Cleanup.
39627         * sysdeps/arm/get-rounding-mode.h: Cleanup.
39628         * sysdeps/arm/setfpucw.c: Cleanup.
39629
39630 2014-05-09  Will Newton  <will.newton@linaro.org>
39631
39632         * sysdeps/arm/armv7/strcmp.S: New file.
39633         * NEWS: Mention addition of ARMv7 optimized strcmp.
39634
39635 2014-05-08  Roland McGrath  <roland@hack.frob.com>
39636
39637         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
39638         look for %.ac rather than %.in.
39639
39640         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
39641         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
39642         * sysdeps/mach/hurd/configure: Regenerated.
39643         * sysdeps/unix/sysv/linux/configure: Regenerated.
39644
39645         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
39646
39647 2014-05-07  Steve Ellcey  <sellcey@mips.com>
39648
39649         [BZ# 16922]
39650         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
39651         (LONG_SUB): Ditto.
39652         (PTR_SUB): Ditto.
39653
39654 2014-05-07  Andreas Schwab  <schwab@suse.de>
39655
39656         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
39657         when skipping over non-matching result from nscd.
39658
39659 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
39660
39661         [BZ #16876]
39662         * nptl/sockperf.c (client): Check socket return value.
39663
39664         [BZ #16877]
39665         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
39666         nscd security class.
39667
39668 2014-05-06  Roland McGrath  <roland@hack.frob.com>
39669
39670         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
39671         * sysdeps/arm/unwind.h: ... here.
39672
39673 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
39674
39675         [BZ# 16916]
39676         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
39677         Define.
39678
39679 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
39680
39681         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
39682         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
39683         multiarch strncpy for PPC64.
39684         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
39685         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
39686         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
39687         multiarch optimizations.
39688         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39689         (__libc_ifunc_impl_list): Likewise.
39690         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
39691         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
39692         multiarch stpncpy for PPC64.
39693         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
39694         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
39695
39696 2014-05-06  Andreas Schwab  <schwab@suse.de>
39697
39698         [BZ #16912]
39699         * gmon/mcount.c (_MCOUNT_DECL): Use
39700         atomic_compare_and_exchange_bool_acq instead of
39701         catomic_compare_and_exchange_bool_acq.
39702
39703 2014-05-05  Roland McGrath  <roland@hack.frob.com>
39704
39705         * elf/Makefile (others, install-bin): Remove pldd.
39706         (pldd-modules): Variable removed.
39707         ($(objpfx)pldd): Target removed.
39708         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
39709         (others, install-bin): Append pldd here.
39710         ($(objpfx)pldd): New target.
39711
39712         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
39713         to 0, so the first #if test emitted later doesn't see it undefined.
39714         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
39715         * sysdeps/gnu/errlist.c: Regenerated.
39716
39717 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39718
39719         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
39720         [libc_hidden_builtin_def]: Define to empty value.
39721         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
39722         [libc_hidden_builtin_def]: Likewise.
39723         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
39724         [libc_hidden_builtin_def]: Likewise.
39725         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
39726         [libc_hidden_builtin_def]: Likewise.
39727         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
39728         __redirect_memcpy and define ifunc as default hidden symbol.
39729         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
39730         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
39731
39732 2014-05-04  Adam Conrad  <adconrad@0c3.net>
39733
39734         * locale/iso-4217.def: Reintroduce XDR currency.
39735
39736 2014-05-04  Allan McRae  <allan@archlinux.org>
39737
39738         * po/eo.po: Update Esperanto translation from translation project.
39739
39740 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
39741
39742         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
39743         and FEATURE_INDEX_MAX to 1.
39744         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
39745
39746 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39747
39748         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
39749         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
39750         * iconvdata/big5.c (ONE_DIRECTION): Define.
39751         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
39752         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
39753         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
39754         * iconvdata/cp932.c (ONE_DIRECTION): Define.
39755         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
39756         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
39757         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
39758         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
39759         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
39760         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
39761         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
39762         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
39763         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
39764         * iconvdata/gbk.c (ONE_DIRECTION): Define.
39765         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
39766         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
39767         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
39768         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
39769         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
39770         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
39771         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
39772         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
39773         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
39774         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
39775         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
39776         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
39777         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
39778         * iconvdata/iso646.c (ONE_DIRECTION): Define.
39779         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
39780         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
39781         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
39782         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
39783         * iconvdata/johab.c (ONE_DIRECTION): Define.
39784         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
39785         * iconvdata/sjis.c (ONE_DIRECTION): Define.
39786         * iconvdata/t.61.c (ONE_DIRECTION): Define.
39787         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
39788         * iconvdata/tscii.c (ONE_DIRECTION): Define.
39789         * iconvdata/uhc.c (ONE_DIRECTION): Define.
39790         * iconvdata/unicode.c (ONE_DIRECTION): Define.
39791         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
39792         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
39793         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
39794
39795 2014-05-01  Roland McGrath  <roland@hack.frob.com>
39796
39797         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
39798         (_IO_JUMPS_OFFSET): Define to 0.
39799
39800         * nptl/sysdeps/pthread/bits/libc-lock.h
39801         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39802         (__libc_lock_define_initialized_recursive): Always define using
39803         initializer.  Modern compilers treat uninitialized (implicit zero) and
39804         explicit zero initializers the same (i.e. put the datum in bss).
39805
39806 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
39807
39808         * nscd/nscd-client.h: Include <string.h>.
39809
39810 2014-05-01  David S. Miller  <davem@davemloft.net>
39811
39812         [BZ #16885]
39813         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
39814         multiple zero bytes exist at the end of a string.
39815         Reported by Aurelien Jarno <aurelien@aurel32.net>
39816
39817         * string/test-strcmp.c (check): Add explicit test for situations where
39818         there are multiple zero bytes after the first.
39819
39820 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
39821
39822         [BZ #16890]
39823         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
39824         when compiling wprintf.
39825         * stdio-common/tstdiomisc.c (t3): New function.
39826         (main): Call it.
39827
39828 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39829
39830         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
39831         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
39832         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
39833         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
39834
39835 2014-05-01  Steve Ellcey  <sellcey@mips.com>
39836
39837         * stdlib/longlong.h: Updated from GCC.
39838
39839 2014-05-01  Will Newton  <will.newton@linaro.org>
39840             Bernard Ogden  <bernie.ogden@linaro.org>
39841
39842         * NEWS: Update fixed bug list.
39843
39844         [BZ #15119]
39845         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
39846
39847 2014-04-30  David S. Miller  <davem@davemloft.net>
39848
39849         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
39850         (libc_feholdexcept_setround_sparc_ctx): New function.
39851         (libc_fesetenv_sparc_ctx): Likewise.
39852         (libc_feupdateenv_sparc_ctx): Likewise.
39853         (libc_feholdsetround_sparc_ctx): Likewise.
39854         (libc_feholdexcept_setround_ctx): Define.
39855         (libc_feholdexcept_setroundf_ctx): Likewise.
39856         (libc_feholdexcept_setroundl_ctx): Likewise.
39857         (libc_fesetenv_ctx): Likewise.
39858         (libc_fesetenvf_ctx): Likewise.
39859         (libc_fesetenvl_ctx): Likewise.
39860         (libc_feupdateenv_ctx): Likewise.
39861         (libc_feupdateenvf_ctx): Likewise.
39862         (libc_feupdateenvl_ctx): Likewise.
39863         (libc_feresetround_ctx): Likewise.
39864         (libc_feresetroundf_ctx): Likewise.
39865         (libc_feresetroundl_ctx): Likewise.
39866         (libc_feholdsetround_ctx): Likewise.
39867         (libc_feholdsetroundf_ctx): Likewise.
39868         (libc_feholdsetroundl_ctx): Likewise.
39869
39870         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
39871         with __USE_GNU instead of XOPEN cpp guards.
39872
39873         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
39874         0.
39875
39876         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
39877         with XOPEN cpp guards.
39878
39879 2014-04-30  Julian Brown  <julian@codesourcery.com>
39880
39881         [BZ #16888]
39882         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
39883         handling.
39884
39885 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
39886
39887         [BZ #9894]
39888         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
39889         Change to 2.6.32.
39890         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
39891         * sysdeps/unix/sysv/linux/configure: Regenerated.
39892         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
39893         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
39894         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
39895         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
39896         * README: Update reference to required Linux kernel version.
39897         * manual/install.texi (Linux): Update reference to required Linux
39898         kernel headers version.
39899         * INSTALL: Regenerated.
39900
39901         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
39902         header inclusion.
39903         [POSIX] (limits.h): Likewise.
39904         [POSIX] (math.h): Likewise.
39905         [POSIX] (sys/wait.h): Likewise.
39906         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
39907         function.
39908         [POSIX] (stddef.h): Do not allow header inclusion.
39909
39910 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39911
39912         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
39913
39914 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
39915
39916         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
39917         Return immediately after lll_futex_wake.
39918
39919 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
39920
39921         [BZ #16791]
39922         * nscd/nscd-client.h (datahead_init_common): Initialize entire
39923         structure.
39924         (datahead_init_pos): Call datahead_init_common early.
39925         (datahead_init_neg): Likewise.
39926
39927         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
39928         datahead_init_neg): New functions.
39929         * nscd/aicache.c (addhstaiX): Use them.
39930         * nscd/grpcache.c (cache_addgr): Likewise.
39931         * nscd/hstcache.c (cache_addhst): Likewise.
39932         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39933         * nscd/netgroupcache.c (do_notfound): Likewise.
39934         (addgetnetgrentX): Likewise.
39935         (addinnetgrX): Likewise.
39936         * nscd/pwdcache.c (cache_addpw): Likewise.
39937         * nscd/servicescache.c (cache_addserv): Likewise.
39938
39939 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
39940             Atsushi Onoe  <atsushi@onoe.org>
39941
39942         [BZ #14308]
39943         [BZ #12994]
39944         [BZ #13651]
39945         * resolv/res_query.c (__libc_res_nsearch): Return if at least
39946         one response is valid.
39947         * resolv/res_send.c (send_dg): Check for validity of other
39948         response if the current response is a referral.
39949
39950 2014-04-29  Steve Ellcey  <sellcey@mips.com>
39951
39952         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
39953
39954 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
39955
39956         [BZ #16823]
39957         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
39958         Always divide by positive zero when computing -Inf result.
39959         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
39960         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
39961
39962 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39963
39964         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
39965         FPSCR if value do not change.
39966         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
39967         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
39968         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
39969         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
39970         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
39971         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
39972         function.
39973
39974 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
39975
39976         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
39977         * sysdeps/unix/sysv/linux/hppa: Move directory from
39978         ports/systeps/unix/sysv/linux/hppa.
39979         * README: Update listing for hppa-*-linux-gnu.
39980
39981 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
39982
39983         [BZ #16754]
39984         * manual/stdio.texi (Hook functions): Fix types of stream hook
39985         functions.
39986         [BZ #16854]
39987         * socket/sys/socket.h: Fix typo in comment.
39988
39989 2014-04-28  Wilco  <wdijkstr@arm.com>
39990
39991         * sysdeps/arm/fenv_private.h: New file.
39992         * sysdeps/arm/math_private.h: New file.
39993         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
39994
39995 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
39996
39997         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
39998         with __int128_t.
39999         (La_x86_64_retval): Likewise.
40000
40001 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
40002
40003         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
40004         fpsr if value didn't change.
40005         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
40006         to fpcr if value didn't change.
40007         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
40008         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
40009         fpsr or fpcr if value didn't change.
40010         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
40011         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
40012         fpcr if value didn't change.
40013         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
40014         to fpsr if value didn't change.
40015
40016 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
40017
40018         * nptl/tst-sem3.c: Use test-skeleton.c
40019         (main): Rename to do_test.  Use return instead of
40020         exit.
40021         * nptl/tst-sem4.c: Use test-skeleton.c
40022         (main): Rename to do_test.
40023
40024 2014-04-22  David S. Miller  <davem@davemloft.net>
40025
40026         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
40027         (struct sigaction): New struct member __glibc_reserved0, change
40028         type of sa_flags to int.
40029
40030 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
40031
40032         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
40033         (COUNT_LEADING_ZEROS_0): Define for AArch64.
40034
40035 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
40036
40037         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
40038         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
40039
40040 2014-04-22  Will Newton  <will.newton@linaro.org>
40041             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
40042
40043         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
40044         (__longjmp): Add longjmp and longjmp_target SystemTap
40045         probes.
40046         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
40047         (__sigsetjmp): Add setjmp SystemTap probe.
40048
40049 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
40050
40051         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
40052         match manual order.
40053
40054 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40055
40056         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
40057
40058         * sysdeps/powerpc/fpu/fenv_private.h
40059         (libc_feholdexcept_setroundl_ctx): Define to
40060         libc_feholdexcept_setround_ppc_ctx.
40061         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
40062         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
40063         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
40064         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
40065
40066 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40067
40068         * sysdeps/aarch64/math-tests.h: New file.
40069
40070 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
40071
40072         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
40073         New.
40074         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
40075         Check and set bit_AVX2_Usable.
40076         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
40077         macro.
40078         (bit_AVX2): Likewise.
40079         (index_AVX2_Usable): Likewise.
40080         (CPUID_AVX2): Likewise.
40081         (HAS_AVX2): Likewise.
40082
40083 2014-04-17  Will Newton  <will.newton@linaro.org>
40084
40085         * manual/setjmp.texi (System V contexts): Add note that
40086         calling setcontext on a context created by a call to a
40087         signal handler is undefined.  Update text to note that
40088         setcontext from a signal handler is possible but not
40089         recommended.
40090
40091         [BZ #16629]
40092         * stdlib/tst-setcontext.c: Include signal.h.
40093         (main): Check that the signal stack before and
40094         after swapcontext is the same.
40095
40096         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
40097         Re-implement to restore registers in user code and avoid
40098         rt_sigreturn system call.
40099
40100 2014-04-17  Wilco  <wdijkstr@arm.com>
40101
40102         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
40103         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
40104         * math/test-fenv.c: Skip exception trap tests on targets which only
40105         support non-stop mode.
40106
40107 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
40108             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40109
40110         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
40111         (libc_feholdsetround_aarch64_ctx)
40112         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
40113         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
40114         (libc_feresetround_ctx, libc_feresetroundf_ctx)
40115         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
40116         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
40117         (libc_feresetround_noexl_ctx): Define.
40118
40119 2014-04-16  Richard Henderson  <rth@redhat.com>
40120
40121         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
40122
40123         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
40124         unwind tables.
40125
40126         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
40127         const from the non-libc, non-ldso copy.
40128
40129         * sysdeps/alpha/libm-test-ulps: Regenerate.
40130
40131 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
40132             Wilco Dijkstra  <wilco.dijkstra@arm.com>
40133
40134         * sysdeps/aarch64/fpu/math_private.h: New file.
40135
40136 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
40137
40138         * sysdeps/aarch64/libm-test-ulps: Regenerate.
40139
40140 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
40141
40142         [BZ #16275]
40143         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
40144         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
40145         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
40146         Intel MPX bound registers before _dl_profile_fixup.
40147         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
40148         registers after _dl_profile_fixup.  Save and restore bound
40149         registers bnd0/bnd1 when calling _dl_call_pltexit.
40150         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
40151         (LR_BND_OFFSET): Likewise.
40152         (LRV_BND0_OFFSET): Likewise.
40153         (LRV_BND1_OFFSET): Likewise.
40154
40155 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40156
40157         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
40158         to...
40159         * sysdeps/mach/hurd/i386/tls.h: ... here.
40160         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
40161         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
40162         fields.
40163
40164 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40165
40166         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
40167
40168 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40169
40170         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
40171
40172 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
40173
40174         [BZ #14770]
40175         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
40176         * sysdeps/s390/configure: Regenerate.
40177
40178         [BZ #16824]
40179         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
40180         Set round-to-nearest internally to reduce error accumulation.
40181
40182 2014-04-16  Alan Modra  <amodra@gmail.com>
40183
40184         [BZ #16740]
40185         [BZ #16619]
40186         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
40187         * math/libm-test.inc (frexp_test_data): Add tests.
40188         * NEWS: Update fixed bug list.
40189
40190 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40191
40192         * benchtests/Makefile: Depend on libraries in build directory.
40193         (bench-math): Separate out math tests.
40194         (bench-pthread): Separate out pthread tests.
40195         (bench): Include math and pthread tests.
40196
40197 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
40198
40199         [BZ #16831]
40200         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
40201         _dl_debug_initialize.
40202
40203         * configure.ac: Remove SELinux header check.
40204         * configure: Regenerate.
40205         * nscd/selinux.c (perms): Array of const char* to permission names.
40206         (nscd_request_avc_has_perm): Call security_deny_unknown to find
40207         default policy. Call string_to_security_class and string_to_av_perm to
40208         translate strings. Enforce default policy and call avs_has_perm with
40209         results of translated strings.
40210
40211 2014-04-13  David S. Miller  <davem@davemloft.net>
40212
40213         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40214
40215 2014-04-12  Allan McRae  <allan@archlinux.org>
40216
40217         [BZ #16838]
40218         * manual/string.texi (Collation Functions): Fix qsort argument
40219         order in example.
40220         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40221
40222 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
40223
40224         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
40225         Make the test a no-op if there are no exceptions defined.
40226
40227 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
40228
40229         * elf/Makefile (tests): make tst-dlopen-aout conditional on
40230         enable-hardcoded-path-in-tests
40231
40232 2014-04-11  Will Newton  <will.newton@linaro.org>
40233
40234         * benchtests/Makefile (extra-objs): Add json-lib.o.
40235         (bench-func): Tidy up JSON output.
40236         * benchtests/bench-skeleton.c: Include json-lib.h.
40237         (main): Use JSON library functions to do output of
40238         benchmark results.
40239         * benchtests/bench-timing-type.c (main): Output the
40240         timing type simply, leaving formatting to the user.
40241         * benchtests/json-lib.c: New file.
40242         * benchtests/json-lib.h: Likewise.
40243
40244 2014-04-11  Torvald Riegel  <triegel@redhat.com>
40245
40246         [BZ #15215]
40247         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
40248         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
40249         memory barriers.  Add comments.
40250         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
40251         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
40252         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
40253         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
40254         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
40255         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
40256
40257 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
40258
40259         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
40260         * sysdeps/s390/s390-64/configure.ac: ... this ...
40261         * sysdeps/s390/configure.ac: ... to here.
40262         * sysdeps/s390/s390-32/configure: Delete file.
40263         * sysdeps/s390/s390-64/configure: Delete file.
40264         * sysdeps/s390/configure: Regenerate.
40265
40266 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
40267
40268         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
40269
40270 2014-04-11  Will Newton  <will.newton@linaro.org>
40271
40272         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
40273         to zero if it is not defined elsewhere.  (mtrim): Test
40274         the value of MALLOC_DEBUG with #if rather than #ifdef.
40275
40276 2014-04-10 Torvald Riegel  <triegel@redhat.com>
40277
40278         * benchtests/pthread_once-inputs: New file.
40279         * benchtests/pthread_once-source.c: New file.
40280         * benchtests/README: Update documentation.
40281
40282 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
40283             H.J. Lu  <hongjiu.lu@intel.com>
40284
40285         [BZ #16275]
40286         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
40287         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
40288         * sysdeps/x86_64/configure: Regenerated.
40289         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
40290         macro.
40291         (REGISTER_SAVE_RAX): Likewise.
40292         (REGISTER_SAVE_RCX): Likewise.
40293         (REGISTER_SAVE_RDX): Likewise.
40294         (REGISTER_SAVE_RSI): Likewise.
40295         (REGISTER_SAVE_RDI): Likewise.
40296         (REGISTER_SAVE_R8): Likewise.
40297         (REGISTER_SAVE_R9): Likewise.
40298         (REGISTER_SAVE_BND0): Likewise.
40299         (REGISTER_SAVE_BND1): Likewise.
40300         (REGISTER_SAVE_BND2): Likewise.
40301         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
40302         bound registers when calling _dl_fixup.
40303
40304 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40305
40306         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
40307         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
40308         of its definition.
40309         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
40310         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
40311         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
40312         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
40313         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
40314         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
40315         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
40316
40317 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
40318
40319         [BZ #15514]
40320         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
40321         pathconf(_PC_NAME_MAX).
40322
40323 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40324
40325         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
40326         Remove macro usage.
40327         (__PTHREAD_SPINS): Move definition to ...
40328         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40329         (__PTHREAD_SPINS): ... here.
40330         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40331         (__PTHREAD_SPIN): Likewise.
40332         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
40333         (__PTHREAD_SPIN): Likewise.
40334         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
40335         (__PTHREAD_SPIN): Likewise.
40336         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
40337         (__PTHREAD_SPIN): Likewise.
40338         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
40339         (__PTHREAD_SPIN): Likewise.
40340         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
40341         (__PTHREAD_SPIN): Likewise.
40342         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
40343         (__PTHREAD_SPIN): Likewise.
40344         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
40345         (__PTHREAD_SPIN): Likewise.
40346         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
40347         (__PTHREAD_SPIN): Likewise.
40348         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
40349         (__PTHREAD_SPIN): Likewise.
40350         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
40351         (__PTHREAD_SPIN): Likewise.
40352         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
40353         (__PTHREAD_SPIN): Likewise.
40354
40355         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
40356         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
40357         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
40358         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
40359         imply folder.
40360         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
40361         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
40362         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
40363         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
40364         correct imply path.
40365         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
40366         strlen symbol for non multi-arch builds.
40367         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
40368         missing hidden_def and weak_alias.
40369
40370 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
40371
40372         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
40373
40374 2014-04-07  Will Newton  <will.newton@linaro.org>
40375
40376         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
40377         and contents.  [!_LIBC] Remove #ifndef and contents.
40378         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
40379         * string/memccpy.c (__memccpy): Use ANSI prototype.
40380         * string/memfrob.c (memfrob): Likewise.
40381         * string/strcoll.c (STRCOLL): Likewise.
40382         * string/strlen.c (strlen): Likewise.
40383         * string/strtok.c (STRTOK): Likewise.
40384         * string/strcat.c: Remove unused #include of memcopy.h.
40385         (strcat): Use ANSI prototype.
40386         * string/strchr.c: Remove unused #include of memcopy.h.
40387         (strchr): Use ANSI prototype.
40388         * string/strcmp.c: Remove unused #include of memcopy.h.
40389         (strcmp): Use ANSI prototype.
40390         * string/strcpy.c: Remove unused #include of memcopy.h.
40391         (strcpy): Use ANSI prototype.
40392
40393 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40394
40395         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
40396         * config.make.in (config-extra-cppflags): Set it from
40397         libc_extra_cppflags.
40398         * configure.ac (libc_extra_cflags): Make it accumulate over
40399         configure fragments.
40400         (libc_extra_cppflags): New flag.
40401         * configure. Regenerate.
40402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40403         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
40404         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
40405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
40406
40407         [BZ #16815]
40408         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
40409         result for FE_DOWNWARD rounding mode.
40410         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
40411         Likewise.
40412         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40413
40414 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
40415
40416         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
40417         in function argument name.
40418
40419 2014-04-03  David Svoboda  <svoboda@cert.org>
40420
40421         [BZ #5666]
40422         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
40423         explicitly.
40424
40425 2014-04-03  Roland McGrath  <roland@hack.frob.com>
40426
40427         * elf/dl-unmap-segments.h: New file.
40428         * sysdeps/generic/ldsodefs.h
40429         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
40430         * elf/dl-close.c: Include <dl-unmap-segments.h>.
40431         * elf/dl-fptr.c: Likewise.
40432         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
40433         * sysdeps/aarch64/tlsdesc.c: Likewise.
40434         * sysdeps/arm/tlsdesc.c: Likewise.
40435         * sysdeps/i386/tlsdesc.c: Likewise.
40436         * sysdeps/tile/dl-runtime.c: Likewise.
40437         * sysdeps/x86_64/tlsdesc.c: Likewise.
40438         * elf/dl-load.h: New file.
40439         * elf/dl-load.c: Include it.
40440         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
40441         Macros moved to dl-load.h.
40442         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
40443         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
40444         Use _dl_unmap_segments in place of __munmap.
40445         Break out segment-mapping loop into ...
40446         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
40447
40448 2014-04-03  Will Newton  <will.newton@linaro.org>
40449
40450         * elf/dl-lookup.c (do_lookup_x): Remove comment
40451         referring to nested function and move variable
40452         declarations down to before first use.
40453
40454 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
40455
40456         [BZ #16799]
40457         [BZ #16800]
40458         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
40459         with 0 numerator.
40460         * math/s_catanf.c (__catanf): Likewise.
40461         * math/s_catanh.c (__catanh): Likewise.
40462         * math/s_catanhf.c (__catanhf): Likewise.
40463         * math/s_catanhl.c (__catanhl): Likewise.
40464         * math/s_catanl.c (__catanl): Likewise.
40465         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
40466         by positive zero when computing -Inf result.
40467         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
40468         (catanh_test): Likewise.
40469         * sysdeps/i386/fpu/libm-test-ulps: Update.
40470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40471
40472         [BZ #16789]
40473         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
40474         instead of using underflowing value in computing result.
40475         * math/s_clog10.c (__clog10): Likewise.
40476         * math/s_clog10f.c (__clog10f): Likewise.
40477         * math/s_clog10l.c (__clog10l): Likewise.
40478         * math/s_clogf.c (__clogf): Likewise.
40479         * math/s_clogl.c (__clogl): Likewise.
40480         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
40481         (clog10_test): Likewise.
40482         * sysdeps/i386/fpu/libm-test-ulps: Update.
40483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40484
40485 2014-04-02  Alan Modra  <amodra@gmail.com>
40486
40487         [BZ #16739]
40488         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
40489         output when value is near a power of two.  Use int64_t for lx and
40490         remove casts.  Use decimal rather than hex exponent constants.
40491         Don't use long double multiplication when double will suffice.
40492         * math/libm-test.inc (nextafter_test_data): Add tests.
40493         * NEWS: Add 16739 and 16786 to bug list.
40494
40495         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
40496
40497         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
40498
40499 2014-04-01  Will Newton  <will.newton@linaro.org>
40500
40501         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
40502         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
40503
40504 2014-04-01  Florian Weimer  <fweimer@redhat.com>
40505
40506         [BZ #13347]
40507         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
40508         * nptl/tst-setuid2.c: New file.
40509         * nptl/Makefile (xtests): Add tst-setuid2.
40510
40511 2014-04-01  Alan Modra  <amodra@gmail.com>
40512
40513         [BZ #16786]
40514         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
40515
40516 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40517
40518         [BZ #6803]
40519         [BZ #6804]
40520         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
40521         set errno as appropriate.
40522         * math/w_scalbf.c (__scalbf): Likewise.
40523         * math/w_scalbl.c (__scalbl): Likewise.
40524         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
40525         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
40526         * math/libm-test.inc (scalb_test_data): Add errno expectations.
40527         Add more NaN tests.
40528
40529         [BZ #16349]
40530         * math/w_atan2.c: Include <errno.h>.
40531         (__atan2): Set errno for result underflowing to zero.
40532         * math/w_atan2f.c: Include <errno.h>.
40533         (__atan2f): Set errno for result underflowing to zero.
40534         * math/w_atan2l.c: Include <errno.h>.
40535         (__atan2l): Set errno for result underflowing to zero.
40536         * math/auto-libm-test-in: Don't allow missing errno for some atan2
40537         tests.
40538         * math/auto-libm-test-out: Regenerated.
40539
40540 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40541
40542         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
40543         Encode instruction correctly in little endian.
40544         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
40545         Likewise.
40546         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
40547         Likewise.
40548         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
40549         Likewise.
40550         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
40551         Likewise.
40552
40553 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
40554
40555         [BZ #9894]
40556         * sysdeps/unix/sysv/linux/kernel-features.h
40557         [__sparc__ && !__arch64__ && !__sparc_v9__]
40558         (__ASSUME_SET_ROBUST_LIST): Do not define.
40559         [__sparc__ && !__arch64__ && !__sparc_v9__]
40560         (__ASSUME_FUTEX_LOCK_PI): Likewise.
40561         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
40562         Likewise.
40563         * sysdeps/unix/sysv/linux/arm/kernel-features.h
40564         (__ASSUME_FUTEX_LOCK_PI): Undefine.
40565         (__ASSUME_REQUEUE_PI): Likewise.
40566         (__ASSUME_SET_ROBUST_LIST): Likewise.
40567         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
40568         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
40569         Undefine.
40570         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40571         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
40572         Likewise.
40573         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
40574         Likewise.
40575         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
40576         Likewise.
40577         * sysdeps/unix/sysv/linux/mips/kernel-features.h
40578         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
40579         Undefine.
40580         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
40581         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
40582         Likewise.
40583
40584         [BZ #16648]
40585         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
40586         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
40587         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
40588
40589 2014-03-31  Will Newton  <will.newton@linaro.org>
40590
40591         * benchtests/Makefile (bench): Add ffs and ffsll to list
40592         of tests.
40593         * benchtests/ffs-inputs: New file.
40594         * benchtests/ffsll-inputs: Likewise.
40595
40596 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
40597
40598         [BZ #16770]
40599         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
40600         too large before casting to int.
40601         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
40602         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
40603         * math/libm-test.inc (scalb_test_data): Add more tests.
40604
40605 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40606
40607         * benchtests/Makefile (DETAILED_OPT): New make option.
40608         (bench-func): Run benchmark program with -d if DETAILED_OPT is
40609         set.
40610         * benchtests/bench-skeleton.c: Include stdbool.h.
40611         (main): Store and print timings per input.
40612         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
40613         member to each argument value.
40614         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
40615         (_print_arg_data): Initialize per-input timing to 0.
40616
40617         * benchtests/Makefile (timing-type): New binary.
40618         (bench-clean): Also remove bench-timing-type.
40619         (bench): New target for timing-type.
40620         (bench-func): Print output in JSON format.
40621         * benchtests/bench-skeleton.c (main): Print output in JSON
40622         format.
40623         * benchtests/bench-timing-type.c: New file.
40624         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
40625         (TIMING_PRINT_STATS): Remove.
40626         * benchtests/scripts/bench.py (_print_arg_data): Store variant
40627         name separately.
40628
40629         * benchtests/bench-modf.c: Remove.
40630         * benchtests/modf-inputs: New inputs file.
40631
40632 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
40633
40634         [BZ #16362]
40635         * math/s_clog10.c (M_PI_LOG10E): New macro.
40636         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
40637         imaginary parts are 0.
40638         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
40639         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
40640         imaginary parts are 0.
40641         * math/s_clog10l.c (M_PI_LOG10El): New macro.
40642         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
40643         imaginary parts are 0.
40644         * math/libm-test.inc (clog10_test_data): Update expected results
40645         for when real and imaginary parts are 0.
40646
40647 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
40648
40649         * elf/dl-load.c: Finish conversion of __builtin_expect into
40650         __glibc_{un}likely.
40651
40652 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
40653
40654         [BZ #16348]
40655         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
40656         1+x for argument with exponent below -67.
40657         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
40658         Likewise.
40659         * math/auto-libm-test-in: Add more tests of exp.
40660         * math/auto-libm-test-out: Regenerated.
40661
40662 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40663
40664         [BZ #16759]
40665         * inet/getnetgrent_r.c (get_nonempty_val): New function.
40666         (nscd_getnetgrent): Use it.
40667
40668         [BZ #16760]
40669         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
40670         of stpcpy.
40671
40672 2014-03-27  Andi Kleen  <ak@linux.intel.com>
40673
40674         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
40675         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40676         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40677         (lll_robust_unlock): Remove out of line section. Use cfi
40678         intrinsics.
40679         (LLL_STUB_UNWIND_INFO*): Remove.
40680         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
40681         (lll_robust_lock, lll_cond_lock, lll_timedlock)
40682         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
40683         (lll_robust_unlock): Remove out of line section. Use cfi
40684         intrinsics.
40685         (LLL_STUB_UNWIND_INFO*): Remove.
40686
40687 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
40688
40689         [BZ #16758]
40690         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
40691         blank values.
40692
40693 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
40694
40695         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
40696
40697 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
40698
40699         [BZ #16198]
40700         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
40701         fnstenv.
40702         * math/test-fenv-preserve.c: New file.
40703         * math/Makefile (tests): Add test-fenv-preserve.
40704
40705 2014-03-26  Will Newton <will.newton@linaro.org>
40706
40707         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
40708
40709 2014-03-25  Roland McGrath  <roland@hack.frob.com>
40710
40711         * scripts/versionlist.awk: Partition the version sets and emit all
40712         GLIBC_* (sorted) before all others (sorted).
40713
40714 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40715
40716         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
40717         GLIBC_2.2.5 version.
40718
40719 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40720
40721         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
40722         calls.
40723
40724         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
40725         previous change.
40726
40727         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40728
40729 2014-03-25  Andreas Schwab  <schwab@suse.de>
40730
40731         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
40732         label to be used after in6ailist is initialized.
40733
40734 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40735
40736         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
40737         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40738
40739 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
40740
40741         [BZ #16357]
40742         [BZ #16599]
40743         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
40744         min_plus_half.
40745         (fp_formats): Update initializers.
40746         (init_fp_formats): Initialize new field.
40747         (output_for_one_input_case): Allow underflow for results up to
40748         min_plus_half.
40749         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
40750         * math/auto-libm-test-in: Don't mark some underflows from asin and
40751         atanh as spurious.
40752         * math/auto-libm-test-out: Regenerated.
40753         * sysdeps/i386/fpu/libm-test-ulps: Update.
40754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40755
40756 2014-03-25  Andreas Schwab  <schwab@suse.de>
40757
40758         * libio/Makefile (tst-ftell-partial-wide-ENV)
40759         (tst-ftell-active-handler-ENV): Define.
40760
40761 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
40762
40763         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
40764
40765 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40766
40767         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
40768
40769 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
40770
40771         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
40772         * sysdeps/x86_64/fpu/multiarch/e_exp.c
40773         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
40774
40775 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
40776
40777         [BZ #16634]
40778         * elf/dl-load.c (open_verify): Add mode parameter.
40779         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
40780         (open_path): Change from boolean 'secure' to complete flag 'mode'
40781         (_dl_map_object): Adjust.
40782         * elf/Makefile (tests): Add tst-dlopen-aout.
40783         * elf/tst-dlopen-aout.c: New test.
40784
40785 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
40786
40787         [BZ #16714]
40788         * sysdeps/unix/sysv/linux/s390/bits/stat.h
40789         (struct stat): Rename member pad0 to __glibc_reserved0.
40790
40791         [BZ #16712]
40792         * sysdeps/s390/s390-32/bits/wordsize.h
40793         (__WORDSIZE32_SIZE_ULONG): New define.
40794         * sysdeps/s390/s390-64/bits/wordsize.h
40795         (__WORDSIZE32_SIZE_ULONG): Likewise.
40796         * sysdeps/generic/stdint.h (SIZE_MAX):
40797         Define as UL if __WORDSIZE32_SIZE_ULONG.
40798
40799         [BZ #16713]
40800         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
40801         (__glibc_reserved0): New variable.
40802         (sa_flags): Change type to int.
40803
40804         * posix/Makefile (before-compile): Use += before-compile instead
40805         of a :=.
40806
40807         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
40808         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
40809
40810 2014-03-20  Andreas Schwab  <schwab@suse.de>
40811
40812         [BZ #16743]
40813         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
40814         non-matching result from nscd.
40815
40816 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
40817
40818         * scripts/bench.py: Moved to ...
40819         * benchtests/scripts/bench.py: ... here.
40820         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
40821
40822 2014-03-24  Andreas Schwab  <schwab@suse.de>
40823
40824         [BZ #16002]
40825         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
40826         alloca_account and account alloca use for struct in6ailist.
40827
40828 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
40829
40830         [BZ #16284]
40831         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
40832         rounding mode to recompute results that overflow to infinity or
40833         underflow to zero.
40834         * math/auto-libm-test-in: Don't mark tests as expected to fail for
40835         bug 16284.
40836         * math/auto-libm-test-out: Regenerated.
40837         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
40838         (ccosh_test): Likewise.
40839         (csin_test_data): Use plus_oflow.
40840         (csin_test): Use ALL_RM_TEST.
40841         (csinh_test_data): Use plus_oflow.
40842         (csinh_test): Use ALL_RM_TEST.
40843         * sysdeps/i386/fpu/libm-test-ulps: Update.
40844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40845
40846 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
40847
40848         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
40849         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
40850         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
40851
40852         [BZ #16731]
40853         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
40854         when x - 1 is zero.
40855         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
40856         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
40857         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
40858         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
40859         argument is 1.
40860         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
40861         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
40862         zero.
40863         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
40864         * sysdeps/i386/fpu/libm-test-ulps: Update.
40865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40866
40867 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
40868
40869         * scripts/bench.pl: Remove file.
40870         * scripts/bench.py: New benchmark script.
40871         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
40872         * benchtests/README: Mention python dependency.
40873         * scripts/pylintrc: New file.
40874         * scripts/pylint: New file.
40875
40876         * bits/mathdef.h: Use #ifdef instead of #if.
40877         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
40878         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
40879         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
40880         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
40881         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
40882         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
40883
40884 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40885             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
40886
40887         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
40888         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
40889         and strpbrk-ppc64 objects.
40890         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40891         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
40892         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
40893         multiarch strpbrk for POWER7.
40894         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
40895         multiarch strpbrk for PPC64.
40896         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
40897         ifunc selector.
40898         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
40899         strpbrk for POWER7.
40900
40901 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
40902
40903         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
40904         (atan_test): Likewise.
40905         (atanh_test_data): Use NO_TEST_INLINE for two tests.
40906         (atanh_test): Use ALL_RM_TEST.
40907         (atan2_test_data): Likewise.
40908         (cabs_test): Likewise.
40909         (cacosh_test): Likewise.
40910         (carg_test): Likewise.
40911         (casin_test): Likewise.
40912         (casinh_test): Likewise.
40913         (cbrt_test): Likewise.
40914         (csqrt_test): Likewise.
40915         (erf_test): Likewise.
40916         (erfc_test): Likewise.
40917         (pow10_test): Likewise.
40918         (exp2_test): Likewise.
40919         (hypot_test): Likewise.
40920         (j0_test): Likewise.
40921         (j1_test): Likewise.
40922         (lgamma_test): Likewise.
40923         (gamma_test): Likewise.
40924         (sincos_test): Likewise.
40925         (tanh_test): Likewise.
40926         (y0_test): Likewise.
40927         (y1_test): Likewise.
40928         * sysdeps/i386/fpu/libm-test-ulps: Update.
40929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40930
40931 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40932
40933         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
40934         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
40935         and strcspn-ppc64 objects.
40936         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40937         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
40938         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
40939         multiarch strcspn for POWER7.
40940         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
40941         multiarch strcspn for PPC64.
40942         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
40943         ifunc selector.
40944         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
40945         strcspn for POWER7.
40946
40947 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
40948
40949         * math/gen-libm-test.pl (generate_testfile): Expect only function
40950         name as argument to AUTO_TESTS_* and pass results for all rounding
40951         modes to parse_args.
40952         (parse_auto_input): Separate inputs of automatic tests from
40953         outputs before storing in %auto_tests.
40954         * math/libm-test.inc (acos_test_data): Update call to
40955         AUTO_TESTS_f_f.
40956         (acos_test): Use ALL_RM_TEST.
40957         (acos_tonearest_test_data): Remove.
40958         (acos_test_tonearest): Likewise.
40959         (acos_towardzero_test_data): Likewise.
40960         (acos_test_towardzero): Likewise.
40961         (acos_downward_test_data): Likewise.
40962         (acos_test_downward): Likewise.
40963         (acos_upward_test_data): Likewise.
40964         (acos_test_upward): Likewise.
40965         (acosh_test_data): Update call to AUTO_TESTS_f_f.
40966         (asin_test_data): Likewise.
40967         (asin_test): Use ALL_RM_TEST.
40968         (asin_tonearest_test_data): Remove.
40969         (asin_test_tonearest): Likewise.
40970         (asin_towardzero_test_data): Likewise.
40971         (asin_test_towardzero): Likewise.
40972         (asin_downward_test_data): Likewise.
40973         (asin_test_downward): Likewise.
40974         (asin_upward_test_data): Likewise.
40975         (asin_test_upward): Likewise.
40976         (asinh_test_data): Update call to AUTO_TESTS_f_f.
40977         (atan_test_data): Likewise.
40978         (atanh_test_data): Likewise.
40979         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
40980         (cabs_test_data): Update call to AUTO_TESTS_c_f.
40981         (carg_test_data): Likewise.
40982         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
40983         (ccos_test_data): Update call to AUTO_TESTS_c_c.
40984         (ccosh_test_data): Likewise.
40985         (cexp_test_data): Likewise.
40986         (clog_test_data): Likewise.
40987         (clog10_test_data): Likewise.
40988         (cos_test_data): Update call to AUTO_TESTS_f_f.
40989         (cos_test): Use ALL_RM_TEST.
40990         (cos_tonearest_test_data): Remove.
40991         (cos_test_tonearest): Likewise.
40992         (cos_towardzero_test_data): Likewise.
40993         (cos_test_towardzero): Likewise.
40994         (cos_downward_test_data): Likewise.
40995         (cos_test_downward): Likewise.
40996         (cos_upward_test_data): Likewise.
40997         (cos_test_upward): Likewise.
40998         (cosh_test_data): Update call to AUTO_TESTS_f_f.
40999         (cosh_test): Use ALL_RM_TEST.
41000         (cosh_tonearest_test_data): Remove.
41001         (cosh_test_tonearest): Likewise.
41002         (cosh_towardzero_test_data): Likewise.
41003         (cosh_test_towardzero): Likewise.
41004         (cosh_downward_test_data): Likewise.
41005         (cosh_test_downward): Likewise.
41006         (cosh_upward_test_data): Likewise.
41007         (cosh_test_upward): Likewise.
41008         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
41009         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
41010         (ctan_test_data): Likewise.
41011         (ctan_test): Use ALL_RM_TEST.
41012         (ctan_tonearest_test_data): Remove.
41013         (ctan_test_tonearest): Likewise.
41014         (ctan_towardzero_test_data): Likewise.
41015         (ctan_test_towardzero): Likewise.
41016         (ctan_downward_test_data): Likewise.
41017         (ctan_test_downward): Likewise.
41018         (ctan_upward_test_data): Likewise.
41019         (ctan_test_upward): Likewise.
41020         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
41021         (ctanh_test): Use ALL_RM_TEST.
41022         (ctanh_tonearest_test_data): Remove.
41023         (ctanh_test_tonearest): Likewise.
41024         (ctanh_towardzero_test_data): Likewise.
41025         (ctanh_test_towardzero): Likewise.
41026         (ctanh_downward_test_data): Likewise.
41027         (ctanh_test_downward): Likewise.
41028         (ctanh_upward_test_data): Likewise.
41029         (ctanh_test_upward): Likewise.
41030         (erf_test_data): Update call to AUTO_TESTS_f_f.
41031         (erfc_test_data): Likewise.
41032         (exp_test_data): Likewise.
41033         (exp_test): Use ALL_RM_TEST.
41034         (exp_tonearest_test_data): Remove.
41035         (exp_test_tonearest): Likewise.
41036         (exp_towardzero_test_data): Likewise.
41037         (exp_test_towardzero): Likewise.
41038         (exp_downward_test_data): Likewise.
41039         (exp_test_downward): Likewise.
41040         (exp_upward_test_data): Likewise.
41041         (exp_test_upward): Likewise.
41042         (exp10_test_data): Update call to AUTO_TESTS_f_f.
41043         (exp10_test): Use ALL_RM_TEST.
41044         (exp10_tonearest_test_data): Remove.
41045         (exp10_test_tonearest): Likewise.
41046         (exp10_towardzero_test_data): Likewise.
41047         (exp10_test_towardzero): Likewise.
41048         (exp10_downward_test_data): Likewise.
41049         (exp10_test_downward): Likewise.
41050         (exp10_upward_test_data): Likewise.
41051         (exp10_test_upward): Likewise.
41052         (exp2_test_data): Update call to AUTO_TESTS_f_f.
41053         (expm1_test_data): Likewise.
41054         (expm1_test): Use ALL_RM_TEST.
41055         (expm1_tonearest_test_data): Remove.
41056         (expm1_test_tonearest): Likewise.
41057         (expm1_towardzero_test_data): Likewise.
41058         (expm1_test_towardzero): Likewise.
41059         (expm1_downward_test_data): Likewise.
41060         (expm1_test_downward): Likewise.
41061         (expm1_upward_test_data): Likewise.
41062         (expm1_test_upward): Likewise.
41063         (fma_test_data): Update call to AUTO_TESTS_fff_f.
41064         (fma_test): Use ALL_RM_TEST.
41065         (fma_towardzero_test_data): Remove.
41066         (fma_test_towardzero): Likewise.
41067         (fma_downward_test_data): Likewise.
41068         (fma_test_downward): Likewise.
41069         (fma_upward_test_data): Likewise.
41070         (fma_test_upward): Likewise.
41071         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
41072         (j0_test_data): Update call to AUTO_TESTS_f_f.
41073         (j1_test_data): Likewise.
41074         (jn_test_data): Update call to AUTO_TESTS_if_f.
41075         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
41076         (log_test_data): Update call to AUTO_TESTS_f_f.
41077         (log10_test_data): Likewise.
41078         (log1p_test_data): Likewise.
41079         (log2_test_data): Likewise.
41080         (pow_test_data): Update call to AUTO_TESTS_ff_f.
41081         (pow_tonearest_test_data): Likewise.
41082         (sin_test_data): Update call to AUTO_TESTS_f_f.
41083         (sin_test): Use ALL_RM_TEST.
41084         (sin_tonearest_test_data): Remove.
41085         (sin_test_tonearest): Likewise.
41086         (sin_towardzero_test_data): Likewise.
41087         (sin_test_towardzero): Likewise.
41088         (sin_downward_test_data): Likewise.
41089         (sin_test_downward): Likewise.
41090         (sin_upward_test_data): Likewise.
41091         (sin_test_upward): Likewise.
41092         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
41093         (sinh_test_data): Update call to AUTO_TESTS_f_f.
41094         (sinh_test): Use ALL_RM_TEST.
41095         (sinh_tonearest_test_data): Remove.
41096         (sinh_test_tonearest): Likewise.
41097         (sinh_towardzero_test_data): Likewise.
41098         (sinh_test_towardzero): Likewise.
41099         (sinh_downward_test_data): Likewise.
41100         (sinh_test_downward): Likewise.
41101         (sinh_upward_test_data): Likewise.
41102         (sinh_test_upward): Likewise.
41103         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
41104         (sqrt_test): Use ALL_RM_TEST.
41105         (sqrt_tonearest_test_data): Remove.
41106         (sqrt_test_tonearest): Likewise.
41107         (sqrt_towardzero_test_data): Likewise.
41108         (sqrt_test_towardzero): Likewise.
41109         (sqrt_downward_test_data): Likewise.
41110         (sqrt_test_downward): Likewise.
41111         (sqrt_upward_test_data): Likewise.
41112         (sqrt_test_upward): Likewise.
41113         (tan_test_data): Update call to AUTO_TESTS_f_f.
41114         (tan_test): Use ALL_RM_TEST.
41115         (tan_tonearest_test_data): Remove.
41116         (tan_test_tonearest): Likewise.
41117         (tan_towardzero_test_data): Likewise.
41118         (tan_test_towardzero): Likewise.
41119         (tan_downward_test_data): Likewise.
41120         (tan_test_downward): Likewise.
41121         (tan_upward_test_data): Likewise.
41122         (tan_test_upward): Likewise.
41123         (tanh_test_data): Update call to AUTO_TESTS_f_f.
41124         (tgamma_test_data): Likewise.
41125         (y0_test_data): Likewise.
41126         (y1_test_data): Likewise.
41127         (yn_test_data): Update call to AUTO_TESTS_if_f.
41128         (main): Do not call removed functions.
41129
41130 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41131
41132         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
41133         (ldexp_test_data): Remove.
41134         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
41135         scalbn_test_data.
41136         (scalb_test): Use ALL_RM_TEST.
41137
41138 2014-03-19  Andreas Schwab  <schwab@suse.de>
41139
41140         * nscd/nscd.service: Also invalidate netgroup cache on reload.
41141
41142 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
41143
41144         [BZ #16649]
41145         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
41146         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
41147         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
41148         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41149         (__ASSUME_PREADV): Undefine.
41150         (__ASSUME_PWRITEV): Likewise.
41151
41152 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41153
41154         * bits/mman-linux.h: Add comment about non-Linux use.
41155         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
41156         bits/mman-linux.h resting place.
41157
41158         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
41159         * bits/mman-linux.h: ... here.
41160
41161 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41162
41163         * conform/conformtest.pl: Add standard definition when calling C
41164         preprocessor on data files.
41165         (checknamespace): Remove unused variable.
41166
41167 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41168
41169         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
41170         minus_oflow, plus_uflow and minus_uflow in expected results.
41171         * math/libm-test.inc (scalbn_test_data): Add more tests of
41172         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
41173         minus_uflow.
41174         (scalbn_test): Use ALL_RM_TEST.
41175         (scalbln_test_data): Add more tests of negative arguments.  Use
41176         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
41177         (scalbln_test): Use ALL_RM_TEST.
41178
41179 2014-03-18  Roland McGrath  <roland@hack.frob.com>
41180
41181         * scripts/abilist.awk: Ignore symbols marked with .hidden.
41182
41183 2014-03-18  Will Newton  <will.newton@linaro.org>
41184
41185         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
41186         inaccurate comment.
41187
41188 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
41189
41190         * Makerules [!subdir] (check-abi): Exit with error status if a
41191         test failed.
41192
41193 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41194
41195         * math/libm-test.inc (nearbyint_test_data): Include all tests used
41196         for rint.  Include results for all rounding modes.
41197         (nearbyint_test): Use ALL_RM_TEST.
41198         (rint_test_data): Include all tests used for nearbyint.
41199
41200 2014-03-17  Will Newton  <will.newton@linaro.org>
41201
41202         * nptl/sysdeps/pthread/pthread.h: Revert previous
41203         change.
41204
41205         * sysdeps/generic/ldsodefs.h: Revert previous
41206         change.
41207
41208         * libio/genops.c: Revert previous change.
41209         * libio/libioP.h: Likewise.
41210         * stdio-common/vfprintf.c: Likewise.
41211
41212         * sysdeps/generic/math_private.h: Revert previous
41213         change.
41214
41215         * sysdeps/generic/math_private.h: Check whether
41216         HAVE_RM_CTX is defined with #ifdef rather
41217         than #if.
41218
41219         * argp/argp-fmtstream.h: Check whether
41220         __STRICT_ANSI__ is defined with #ifdef rather
41221         than #if.
41222         * argp/argp.h: Likewise.
41223
41224         * libio/genops.c: Check whether
41225         _IO_JUMPS_OFFSET is defined with #ifdef rather
41226         than #if.
41227         * libio/libioP.h: Likewise.
41228         * stdio-common/vfprintf.c: Likewise.
41229
41230         * sysdeps/generic/ldsodefs.h: Check whether
41231         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
41232         than #if.
41233
41234         * nptl/sysdeps/pthread/pthread.h: Check
41235         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
41236         its value.
41237
41238 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
41239
41240         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
41241         setting O_APPEND.
41242         * libio/tst-ftell-active-handler.c (do_append_test): Add a
41243         test case.
41244
41245         [BZ #16680]
41246         * libio/fileops.c (_IO_file_open): Seek to end of file but
41247         don't cache the offset.
41248         (get_file_offset): Remove function.
41249         (do_ftell): Use cached offset when available.
41250         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
41251         don't cache the offset.
41252         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
41253         case.
41254         (do_one_test): Call it.
41255         (do_ftell_test): Fix up expected old offset for a+ mode.
41256         * libio/wfileops.c (do_ftell_wide): Used cached offset when
41257         available.
41258
41259         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
41260         up test status with function return status.
41261         (do_write_test): Likewise.
41262         (do_append_test): Likewise.
41263
41264         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
41265         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
41266         Remove.
41267
41268 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
41269
41270         * math/gen-libm-test.pl (parse_args): Handle results specified for
41271         each rounding mode separately.
41272         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
41273         tests and results from lrint_tonearest_test_data,
41274         lrint_towardzero_test_data, lrint_downward_test_data and
41275         lrint_upward_test_data.
41276         (lrint_test): Use ALL_RM_TEST.
41277         (lrint_tonearest_test_data): Remove.
41278         (lrint_test_tonearest): Likewise.
41279         (lrint_towardzero_test_data): Likewise.
41280         (lrint_test_towardzero): Likewise.
41281         (lrint_downward_test_data): Likewise.
41282         (lrint_test_downward): Likewise.
41283         (lrint_upward_test_data): Likewise.
41284         (lrint_test_upward): Likewise.
41285         (llrint_test_data): Merge in per-rounding-mode tests and results
41286         from llrint_tonearest_test_data, llrint_towardzero_test_data,
41287         llrint_downward_test_data and llrint_upward_test_data.
41288         (llrint_test): Use ALL_RM_TEST.
41289         (llrint_tonearest_test_data): Remove.
41290         (llrint_test_tonearest): Likewise.
41291         (llrint_towardzero_test_data): Likewise.
41292         (llrint_test_towardzero): Likewise.
41293         (llrint_downward_test_data): Likewise.
41294         (llrint_test_downward): Likewise.
41295         (llrint_upward_test_data): Likewise.
41296         (llrint_test_upward): Likewise.
41297         (rint_test_data): Merge in per-rounding-mode tests and results
41298         from rint_tonearest_test_data, rint_towardzero_test_data,
41299         rint_downward_test_data and rint_upward_test_data.  Add
41300         per-rounding-mode results for tests not in those arrays.
41301         (rint_test): Use ALL_RM_TEST.
41302         (rint_tonearest_test_data): Remove.
41303         (rint_test_tonearest): Likewise.
41304         (rint_towardzero_test_data): Likewise.
41305         (rint_test_towardzero): Likewise.
41306         (rint_downward_test_data): Likewise.
41307         (rint_test_downward): Likewise.
41308         (rint_upward_test_data): Likewise.
41309         (rint_test_upward): Likewise.
41310         (main): Don't call removed functions.
41311
41312 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41313
41314         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
41315         "Compiled on ..." crapola.  It is anti-useful.
41316
41317 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
41318
41319         * scripts/evaluate-test.sh: Handle fourth argument to determine
41320         whether test run should stop on failure.
41321         * Makeconfig (stop-on-test-failure): New variable.
41322         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
41323         $(stop-on-test-failure).
41324         * Makefile (tests): Give a summary of results from testing and
41325         exit with failure status if they include an ERROR or FAIL.
41326         (xtests): Likewise.
41327         * manual/install.texi (Configuring and compiling): Mention
41328         stop-on-test-failure=y.
41329         * INSTALL: Regenerated.
41330
41331 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41332
41333         * scripts/versionlist.awk: New file.
41334         * Makerules [$(build-shared) = yes]
41335         (postclean-generated): Add Versions.def, not Versions.def.v and
41336         Versions.def.v.i.
41337         ($(common-objpfx)Versions.def.v.i): Target removed.
41338         ($(common-objpfx)Versions.def): New target.
41339         ($(common-objpfx)Versions.all): Depend on that rather that
41340         $(common-objpfx)Versions.def.v.
41341         * Versions.def: File removed.
41342
41343         * Makeconfig (+gccwarn): Add -Wundef.
41344         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
41345         a dl-sysdep.h breaking its contract.
41346         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
41347         * include/stackinfo.h: New file.
41348         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
41349         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
41350         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
41351         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
41352         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
41353         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
41354         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41355         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41356         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41357         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41358         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41359         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
41360         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41361         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41362         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
41363
41364 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41365
41366         [BZ #16707]
41367         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
41368         implementation.
41369         * math/libm-test.inc (round_test_data): Add more tests.
41370
41371         [BZ #16706]
41372         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
41373         implementation.
41374         * math/libm-test.inc (nearbyint_test_data): Add more tests.
41375
41376         [BZ #16701]
41377         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
41378         implementation.
41379         * math/libm-test.inc (ceil_test_data): Add more tests.
41380
41381         * math/libm-test.inc (trunc_test_data): Add more tests related to
41382         BZ#16414.
41383
41384 2014-03-14  Roland McGrath  <roland@hack.frob.com>
41385
41386         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
41387         with #if rather than #ifdef.
41388         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
41389
41390 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
41391
41392         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
41393         first.  Disable AVX-512 GCC support if assembler doesn't support
41394         it.
41395         * sysdeps/x86_64/configure: Regenerated.
41396
41397 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
41398
41399         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
41400         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
41401         (__old_pthread_attr_setstack): Likewise.
41402         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
41403         [!_STACK_GROWS_DOWN]: Likewise.
41404
41405 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
41406
41407         * config.make.in (have-bash2): Delete.
41408         * configure.ac (libc_cv_have_bash2): Delete.
41409         * configure: Regenerate.
41410         * elf/Makefile (common-ldd-rewrite): Rename to ...
41411         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
41412         (sh-ldd-rewrite): Delete.
41413         (bash-ldd-rewrite): Delete.
41414         (have-bash2): Delete checks.
41415         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
41416         ldd-rewrite.
41417
41418         * config.make.in (have-ksh): Delete.
41419         (KSH): Delete.
41420         * configure.ac (libc_cv_have_ksh): Delete.
41421         * configure: Regenerate.
41422
41423         * elf/Makefile: Delete $(have-ksh) check.
41424         ($(objpfx)sotruss): Change KSH to BASH.
41425         * elf/sotruss.ksh: Rename to ...
41426         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
41427         function style to match POSIX.  Drop ksh vim mode setting.
41428
41429         * manual/time.texi (Specifying the Time Zone with TZ): Change
41430         Tuesday to Thursday.
41431
41432         * debug/tst-longjmp_chk2.c: Update header comment.
41433         (stackoverflow_handler): Add comment.  Call assert on pass value.
41434
41435 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
41436
41437         [BZ #16194]
41438         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
41439         (HAVE_AVX512_ASM_SUPPORT): Likewise.
41440         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
41441         (La_x86_64_vector): Add zmm.
41442         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
41443         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
41444         ($(objpfx)tst-audit10): New target.
41445         ($(objpfx)tst-audit10.out): Likewise.
41446         (tst-audit10-ENV): New.
41447         (AVX512-CFLAGS): Likewise.
41448         (CFLAGS-tst-audit10.c): Likewise.
41449         (CFLAGS-tst-auditmod10a.c): Likewise.
41450         (CFLAGS-tst-auditmod10b.c): Likewise.
41451         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
41452         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
41453         * sysdeps/x86_64/configure: Regenerated.
41454         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
41455         AVX-512 zmm register support.
41456         (_dl_x86_64_save_sse): Likewise.
41457         (_dl_x86_64_restore_sse): Likewise.
41458         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
41459         size vector registers.
41460         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
41461         (ZMM_SIZE): Likewise.
41462         * sysdeps/x86_64/tst-audit10.c: New file.
41463         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
41464         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
41465
41466 2014-03-13  Roland McGrath  <roland@hack.frob.com>
41467
41468         * configure.ac (HAVE_EHDR_START): New check.
41469         * configure: Regenerated.
41470         * config.h.in (HAVE_EHDR_START): New #undef.
41471         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
41472         assuming the lowest-addressed segment maps the start of the file.
41473
41474 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
41475
41476         * INSTALL: Regenerated.
41477
41478 2014-03-13  Will Newton  <will.newton@linaro.org>
41479
41480         * manual/setjmp.texi (System V contexts): Improve
41481         clarity and grammar of documentation.
41482
41483 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
41484
41485         [BZ #16381]
41486         * elf/Makefile (tests): Add tst-pie2.
41487         (tests-pie): Add tst-pie2.
41488         * elf/tst-pie2.c: New file.
41489         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
41490         for ET_EXEC.
41491         * elf/rtld.c (map_doit): Load executable as lt_executable.
41492         (dl_main): Likewise.
41493
41494 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
41495
41496         [BZ #16642]
41497         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
41498         (__ASSUME_PSELECT): Undefine.
41499
41500 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41501
41502         [BZ #16689]
41503         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
41504         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
41505         static build.
41506         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
41507         selector for static builds.
41508
41509 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
41510
41511         [BZ #16695]
41512         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
41513         key in the buffer.
41514
41515 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41516
41517         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
41518         IFUNC selector for static builds.
41519
41520 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
41521
41522         * sysdeps/mips/math_private.h [__mips_hard_float]
41523         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
41524         libc_feresetround_mips_ctx.
41525         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
41526         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
41527         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
41528
41529         [BZ #16677]
41530         * math/s_nextafter.c (__nextafter): Do not return value from
41531         overflowing computation.
41532         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
41533         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
41534         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
41535         Likewise.
41536         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
41537         Likewise.
41538         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
41539         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
41540
41541 2014-03-11  Roland McGrath  <roland@hack.frob.com>
41542
41543         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
41544         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
41545         Move sfi_sp use from the load-multiple (that no longer sets sp) to
41546         the new mov targetting sp.
41547
41548 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41549
41550         [BZ #16683]
41551         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
41552         Define it for static builds as well.
41553         (NO_BZERO_IMPL): Likewise.
41554
41555 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41556
41557         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
41558         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
41559         multiarch strspn for PPC64.
41560         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
41561         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
41562         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41563         (__libc_ifunc_impl_list): Likewise.
41564         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
41565         multiarch optimizations
41566         * string/strspn.c (strspn): Using macro to redefine symbol name.
41567
41568 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
41569             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41570
41571         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
41572         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
41573         multiarch strncat for PPC64.
41574         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
41575         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
41576         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
41577         (__libc_ifunc_impl_list): Likewise.
41578         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
41579         multiarch optimizations
41580
41581 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41582
41583         [BZ #16639]
41584         * nscd/nscd.service: Make service type forking.
41585
41586 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41587
41588         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
41589         sign in non default rounding modes.
41590         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
41591
41592 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
41593
41594         * math/libm-test.inc (ALL_RM_TEST): New macro.
41595         (ceil_test): Use ALL_RM_TEST.
41596         (cimag_test): Likewise.
41597         (conj_test): Likewise.
41598         (copysign_test): Likewise.
41599         (cproj_test): Likewise.
41600         (creal_test): Likewise.
41601         (fabs_test): Likewise.
41602         (floor_test): Likewise.
41603         (fmax_test): Likewise.
41604         (fmin_test): Likewise.
41605         (fmod_test): Likewise.
41606         (fpclassify_test): Likewise.
41607         (frexp_test): Likewise.
41608         (ilogb_test): Likewise.
41609         (isfinite_test): Likewise.
41610         (finite_test): Likewise.
41611         (isgreater_test): Likewise.
41612         (isgreaterequal_test): Likewise.
41613         (isinf_test): Likewise.
41614         (isless_test): Likewise.
41615         (islessequal_test): Likewise.
41616         (islessgreater_test): Likewise.
41617         (isnan_test): Likewise.
41618         (isnormal_test): Likewise.
41619         (issignaling_test): Likewise.
41620         (isunordered_test): Likewise.
41621         (logb_test): Likewise.
41622         (logb_downward_test_data): Remove.
41623         (logb_test_downward): Likewise.
41624         (lround_test): Use ALL_RM_TEST.
41625         (llround_test): Likewise.
41626         (modf_test): Likewise.
41627         (nexttoward_test): Likewise.
41628         (remainder_test): Likewise.
41629         (drem_test): Likewise.
41630         (remainder_tonearest_test_data): Likewise.
41631         (remainder_test_tonearest): Likewise.
41632         (drem_test_tonearest): Likewise.
41633         (remainder_towardzero_test_data): Likewise.
41634         (remainder_test_towardzero): Likewise.
41635         (drem_test_towardzero): Likewise.
41636         (remainder_downward_test_data): Likewise.
41637         (remainder_test_downward): Likewise.
41638         (drem_test_downward): Likewise.
41639         (remainder_upward_test_data): Likewise.
41640         (remainder_test_upward): Likewise.
41641         (drem_test_upward): Likewise.
41642         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
41643         (round_test): Use ALL_RM_TEST.
41644         (signbit_test): Likewise.
41645         (trunc_test): Likewise.
41646         (significand_test): Likewise.
41647         (main): Don't call removed functions.
41648
41649 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
41650
41651         [BZ #16674]
41652         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
41653         || __USE_XOPEN2K8].
41654         (ILL_ILLOPN): Likewise.
41655         (ILL_ILLADR): Likewise.
41656         (ILL_ILLTRP): Likewise.
41657         (ILL_PRVOPC): Likewise.
41658         (ILL_PRVREG): Likewise.
41659         (ILL_COPROC): Likewise.
41660         (ILL_BADSTK): Likewise.
41661         (FPE_INTDIV): Likewise.
41662         (FPE_INTOVF): Likewise.
41663         (FPE_FLTDIV): Likewise.
41664         (FPE_FLTOVF): Likewise.
41665         (FPE_FLTUND): Likewise.
41666         (FPE_FLTRES): Likewise.
41667         (FPE_FLTINV): Likewise.
41668         (FPE_FLTSUB): Likewise.
41669         (SEGV_MAPERR): Likewise.
41670         (SEGV_ACCERR): Likewise.
41671         (BUS_ADRALN): Likewise.
41672         (BUS_ADRERR): Likewise.
41673         (BUS_OBJERR): Likewise.
41674         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41675         (TRAP_TRACE): Likewise.
41676         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41677         __USE_XOPEN2K8].
41678         (CLD_KILLED): Likewise.
41679         (CLD_DUMPED): Likewise.
41680         (CLD_TRAPPED): Likewise.
41681         (CLD_STOPPED): Likewise.
41682         (CLD_CONTINUED): Likewise.
41683         (POLL_IN): Likewise.
41684         (POLL_OUT): Likewise.
41685         (POLL_MSG): Likewise.
41686         (POLL_ERR): Likewise.
41687         (POLL_PRI): Likewise.
41688         (POLL_HUP): Likewise.
41689         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
41690         Likewise.
41691         (ILL_ILLOPN): Likewise.
41692         (ILL_ILLADR): Likewise.
41693         (ILL_ILLTRP): Likewise.
41694         (ILL_PRVOPC): Likewise.
41695         (ILL_PRVREG): Likewise.
41696         (ILL_COPROC): Likewise.
41697         (ILL_BADSTK): Likewise.
41698         (FPE_INTDIV): Likewise.
41699         (FPE_INTOVF): Likewise.
41700         (FPE_FLTDIV): Likewise.
41701         (FPE_FLTOVF): Likewise.
41702         (FPE_FLTUND): Likewise.
41703         (FPE_FLTRES): Likewise.
41704         (FPE_FLTINV): Likewise.
41705         (FPE_FLTSUB): Likewise.
41706         (SEGV_MAPERR): Likewise.
41707         (SEGV_ACCERR): Likewise.
41708         (BUS_ADRALN): Likewise.
41709         (BUS_ADRERR): Likewise.
41710         (BUS_OBJERR): Likewise.
41711         (BUS_MCEERR_AR): Likewise.
41712         (BUS_MCEERR_AO): Likewise.
41713         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41714         (TRAP_TRACE): Likewise.
41715         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41716         __USE_XOPEN2K8].
41717         (CLD_KILLED): Likewise.
41718         (CLD_DUMPED): Likewise.
41719         (CLD_TRAPPED): Likewise.
41720         (CLD_STOPPED): Likewise.
41721         (CLD_CONTINUED): Likewise.
41722         (POLL_IN): Likewise.
41723         (POLL_OUT): Likewise.
41724         (POLL_MSG): Likewise.
41725         (POLL_ERR): Likewise.
41726         (POLL_PRI): Likewise.
41727         (POLL_HUP): Likewise.
41728         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
41729         (ILL_ILLOPN): Likewise.
41730         (ILL_ILLADR): Likewise.
41731         (ILL_ILLTRP): Likewise.
41732         (ILL_PRVOPC): Likewise.
41733         (ILL_PRVREG): Likewise.
41734         (ILL_COPROC): Likewise.
41735         (ILL_BADSTK): Likewise.
41736         (FPE_INTDIV): Likewise.
41737         (FPE_INTOVF): Likewise.
41738         (FPE_FLTDIV): Likewise.
41739         (FPE_FLTOVF): Likewise.
41740         (FPE_FLTUND): Likewise.
41741         (FPE_FLTRES): Likewise.
41742         (FPE_FLTINV): Likewise.
41743         (FPE_FLTSUB): Likewise.
41744         (SEGV_MAPERR): Likewise.
41745         (SEGV_ACCERR): Likewise.
41746         (BUS_ADRALN): Likewise.
41747         (BUS_ADRERR): Likewise.
41748         (BUS_OBJERR): Likewise.
41749         (BUS_MCEERR_AR): Likewise.
41750         (BUS_MCEERR_AO): Likewise.
41751         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41752         (TRAP_TRACE): Likewise.
41753         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41754         __USE_XOPEN2K8].
41755         (CLD_KILLED): Likewise.
41756         (CLD_DUMPED): Likewise.
41757         (CLD_TRAPPED): Likewise.
41758         (CLD_STOPPED): Likewise.
41759         (CLD_CONTINUED): Likewise.
41760         (POLL_IN): Likewise.
41761         (POLL_OUT): Likewise.
41762         (POLL_MSG): Likewise.
41763         (POLL_ERR): Likewise.
41764         (POLL_PRI): Likewise.
41765         (POLL_HUP): Likewise.
41766         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
41767         Likewise.
41768         (ILL_ILLOPN): Likewise.
41769         (ILL_ILLADR): Likewise.
41770         (ILL_ILLTRP): Likewise.
41771         (ILL_PRVOPC): Likewise.
41772         (ILL_PRVREG): Likewise.
41773         (ILL_COPROC): Likewise.
41774         (ILL_BADSTK): Likewise.
41775         (ILL_BADIADDR): Likewise.
41776         (ILL_BREAK): Likewise.
41777         (FPE_INTDIV): Likewise.
41778         (FPE_INTOVF): Likewise.
41779         (FPE_FLTDIV): Likewise.
41780         (FPE_FLTOVF): Likewise.
41781         (FPE_FLTUND): Likewise.
41782         (FPE_FLTRES): Likewise.
41783         (FPE_FLTINV): Likewise.
41784         (FPE_FLTSUB): Likewise.
41785         (FPE_DECOVF): Likewise.
41786         (FPE_DECDIV): Likewise.
41787         (FPE_DECERR): Likewise.
41788         (FPE_INVASC): Likewise.
41789         (FPE_INVDEC): Likewise.
41790         (SEGV_MAPERR): Likewise.
41791         (SEGV_ACCERR): Likewise.
41792         (SEGV_PSTKOVF): Likewise.
41793         (BUS_ADRALN): Likewise.
41794         (BUS_ADRERR): Likewise.
41795         (BUS_OBJERR): Likewise.
41796         (BUS_MCEERR_AR): Likewise.
41797         (BUS_MCEERR_AO): Likewise.
41798         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41799         (TRAP_TRACE): Likewise.
41800         (TRAP_BRANCH): Likewise.
41801         (TRAP_HWBKPT): Likewise.
41802         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41803         __USE_XOPEN2K8].
41804         (CLD_KILLED): Likewise.
41805         (CLD_DUMPED): Likewise.
41806         (CLD_TRAPPED): Likewise.
41807         (CLD_STOPPED): Likewise.
41808         (CLD_CONTINUED): Likewise.
41809         (POLL_IN): Likewise.
41810         (POLL_OUT): Likewise.
41811         (POLL_MSG): Likewise.
41812         (POLL_ERR): Likewise.
41813         (POLL_PRI): Likewise.
41814         (POLL_HUP): Likewise.
41815         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
41816         (ILL_ILLOPN): Likewise.
41817         (ILL_ILLADR): Likewise.
41818         (ILL_ILLTRP): Likewise.
41819         (ILL_PRVOPC): Likewise.
41820         (ILL_PRVREG): Likewise.
41821         (ILL_COPROC): Likewise.
41822         (ILL_BADSTK): Likewise.
41823         (FPE_INTDIV): Likewise.
41824         (FPE_INTOVF): Likewise.
41825         (FPE_FLTDIV): Likewise.
41826         (FPE_FLTOVF): Likewise.
41827         (FPE_FLTUND): Likewise.
41828         (FPE_FLTRES): Likewise.
41829         (FPE_FLTINV): Likewise.
41830         (FPE_FLTSUB): Likewise.
41831         (SEGV_MAPERR): Likewise.
41832         (SEGV_ACCERR): Likewise.
41833         (BUS_ADRALN): Likewise.
41834         (BUS_ADRERR): Likewise.
41835         (BUS_OBJERR): Likewise.
41836         (BUS_MCEERR_AR): Likewise.
41837         (BUS_MCEERR_AO): Likewise.
41838         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41839         (TRAP_TRACE): Likewise.
41840         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41841         __USE_XOPEN2K8].
41842         (CLD_KILLED): Likewise.
41843         (CLD_DUMPED): Likewise.
41844         (CLD_TRAPPED): Likewise.
41845         (CLD_STOPPED): Likewise.
41846         (CLD_CONTINUED): Likewise.
41847         (POLL_IN): Likewise.
41848         (POLL_OUT): Likewise.
41849         (POLL_MSG): Likewise.
41850         (POLL_ERR): Likewise.
41851         (POLL_PRI): Likewise.
41852         (POLL_HUP): Likewise.
41853         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
41854         (ILL_ILLOPN): Likewise.
41855         (ILL_ILLADR): Likewise.
41856         (ILL_ILLTRP): Likewise.
41857         (ILL_PRVOPC): Likewise.
41858         (ILL_PRVREG): Likewise.
41859         (ILL_COPROC): Likewise.
41860         (ILL_BADSTK): Likewise.
41861         (FPE_INTDIV): Likewise.
41862         (FPE_INTOVF): Likewise.
41863         (FPE_FLTDIV): Likewise.
41864         (FPE_FLTOVF): Likewise.
41865         (FPE_FLTUND): Likewise.
41866         (FPE_FLTRES): Likewise.
41867         (FPE_FLTINV): Likewise.
41868         (FPE_FLTSUB): Likewise.
41869         (SEGV_MAPERR): Likewise.
41870         (SEGV_ACCERR): Likewise.
41871         (BUS_ADRALN): Likewise.
41872         (BUS_ADRERR): Likewise.
41873         (BUS_OBJERR): Likewise.
41874         (BUS_MCEERR_AR): Likewise.
41875         (BUS_MCEERR_AO): Likewise.
41876         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41877         (TRAP_TRACE): Likewise.
41878         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41879         __USE_XOPEN2K8].
41880         (CLD_KILLED): Likewise.
41881         (CLD_DUMPED): Likewise.
41882         (CLD_TRAPPED): Likewise.
41883         (CLD_STOPPED): Likewise.
41884         (CLD_CONTINUED): Likewise.
41885         (POLL_IN): Likewise.
41886         (POLL_OUT): Likewise.
41887         (POLL_MSG): Likewise.
41888         (POLL_ERR): Likewise.
41889         (POLL_PRI): Likewise.
41890         (POLL_HUP): Likewise.
41891         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
41892         (ILL_ILLOPN): Likewise.
41893         (ILL_ILLADR): Likewise.
41894         (ILL_ILLTRP): Likewise.
41895         (ILL_PRVOPC): Likewise.
41896         (ILL_PRVREG): Likewise.
41897         (ILL_COPROC): Likewise.
41898         (ILL_BADSTK): Likewise.
41899         (FPE_INTDIV): Likewise.
41900         (FPE_INTOVF): Likewise.
41901         (FPE_FLTDIV): Likewise.
41902         (FPE_FLTOVF): Likewise.
41903         (FPE_FLTUND): Likewise.
41904         (FPE_FLTRES): Likewise.
41905         (FPE_FLTINV): Likewise.
41906         (FPE_FLTSUB): Likewise.
41907         (SEGV_MAPERR): Likewise.
41908         (SEGV_ACCERR): Likewise.
41909         (BUS_ADRALN): Likewise.
41910         (BUS_ADRERR): Likewise.
41911         (BUS_OBJERR): Likewise.
41912         (BUS_MCEERR_AR): Likewise.
41913         (BUS_MCEERR_AO): Likewise.
41914         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41915         (TRAP_TRACE): Likewise.
41916         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41917         __USE_XOPEN2K8].
41918         (CLD_KILLED): Likewise.
41919         (CLD_DUMPED): Likewise.
41920         (CLD_TRAPPED): Likewise.
41921         (CLD_STOPPED): Likewise.
41922         (CLD_CONTINUED): Likewise.
41923         (POLL_IN): Likewise.
41924         (POLL_OUT): Likewise.
41925         (POLL_MSG): Likewise.
41926         (POLL_ERR): Likewise.
41927         (POLL_PRI): Likewise.
41928         (POLL_HUP): Likewise.
41929         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
41930         (ILL_ILLOPN): Likewise.
41931         (ILL_ILLADR): Likewise.
41932         (ILL_ILLTRP): Likewise.
41933         (ILL_PRVOPC): Likewise.
41934         (ILL_PRVREG): Likewise.
41935         (ILL_COPROC): Likewise.
41936         (ILL_BADSTK): Likewise.
41937         (ILL_DBLFLT): Likewise.
41938         (ILL_HARDWALL): Likewise.
41939         (FPE_INTDIV): Likewise.
41940         (FPE_INTOVF): Likewise.
41941         (FPE_FLTDIV): Likewise.
41942         (FPE_FLTOVF): Likewise.
41943         (FPE_FLTUND): Likewise.
41944         (FPE_FLTRES): Likewise.
41945         (FPE_FLTINV): Likewise.
41946         (FPE_FLTSUB): Likewise.
41947         (SEGV_MAPERR): Likewise.
41948         (SEGV_ACCERR): Likewise.
41949         (BUS_ADRALN): Likewise.
41950         (BUS_ADRERR): Likewise.
41951         (BUS_OBJERR): Likewise.
41952         (BUS_MCEERR_AR): Likewise.
41953         (BUS_MCEERR_AO): Likewise.
41954         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41955         (TRAP_TRACE): Likewise.
41956         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41957         __USE_XOPEN2K8].
41958         (CLD_KILLED): Likewise.
41959         (CLD_DUMPED): Likewise.
41960         (CLD_TRAPPED): Likewise.
41961         (CLD_STOPPED): Likewise.
41962         (CLD_CONTINUED): Likewise.
41963         (POLL_IN): Likewise.
41964         (POLL_OUT): Likewise.
41965         (POLL_MSG): Likewise.
41966         (POLL_ERR): Likewise.
41967         (POLL_PRI): Likewise.
41968         (POLL_HUP): Likewise.
41969         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
41970         (ILL_ILLOPN): Likewise.
41971         (ILL_ILLADR): Likewise.
41972         (ILL_ILLTRP): Likewise.
41973         (ILL_PRVOPC): Likewise.
41974         (ILL_PRVREG): Likewise.
41975         (ILL_COPROC): Likewise.
41976         (ILL_BADSTK): Likewise.
41977         (FPE_INTDIV): Likewise.
41978         (FPE_INTOVF): Likewise.
41979         (FPE_FLTDIV): Likewise.
41980         (FPE_FLTOVF): Likewise.
41981         (FPE_FLTUND): Likewise.
41982         (FPE_FLTRES): Likewise.
41983         (FPE_FLTINV): Likewise.
41984         (FPE_FLTSUB): Likewise.
41985         (SEGV_MAPERR): Likewise.
41986         (SEGV_ACCERR): Likewise.
41987         (BUS_ADRALN): Likewise.
41988         (BUS_ADRERR): Likewise.
41989         (BUS_OBJERR): Likewise.
41990         (BUS_MCEERR_AR): Likewise.
41991         (BUS_MCEERR_AO): Likewise.
41992         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
41993         (TRAP_TRACE): Likewise.
41994         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
41995         __USE_XOPEN2K8].
41996         (CLD_KILLED): Likewise.
41997         (CLD_DUMPED): Likewise.
41998         (CLD_TRAPPED): Likewise.
41999         (CLD_STOPPED): Likewise.
42000         (CLD_CONTINUED): Likewise.
42001         (POLL_IN): Likewise.
42002         (POLL_OUT): Likewise.
42003         (POLL_MSG): Likewise.
42004         (POLL_ERR): Likewise.
42005         (POLL_PRI): Likewise.
42006         (POLL_HUP): Likewise.
42007         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
42008         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42009
42010         [BZ #16670]
42011         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
42012         before #include of <time.h>.
42013         [!__USE_XOPEN2K] (__need_timespec): Likewise.
42014         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
42015         (test-xfail-UNIX98/sched.h/conform): Likewise.
42016
42017 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
42018
42019         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
42020         error absence of trapping exception support.
42021         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
42022
42023 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
42024
42025         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
42026         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
42027         * timezone/Makefile (testdata): Move definition above include of
42028         Rules.
42029         (test-zones): New variable.
42030         (tests-special): Add zone files.
42031         (build-testdata): Use $(evaluate-test).
42032
42033         * elf/Makefile (tests-special): Rename tests to end with .out.
42034         ($(objpfx)noload-mem): Likewise.
42035         ($(objpfx)tst-leaks1-mem): Likewise.
42036         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
42037         * iconv/Makefile (xtests-special): Change test-iconvconfig to
42038         $(objpfx)test-iconvconfig.out.
42039         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
42040         set -e inside subshell and redirect output to file.
42041         * iconvdata/Makefile (generated): Rename tests to end with .out.
42042         Correct type.
42043         (tests-special): Rename tests to end with .out.
42044         ($(objpfx)mtrace-tst-loading): Likewise.
42045         * intl/Makefile (generated): Likewise.
42046         (tests-special): Likewise.
42047         ($(objpfx)mtrace-tst-gettext): Likewise.
42048         * misc/Makefile (generated): Likewise.
42049         (tests-special): Likewise.
42050         ($(objpfx)tst-error1-mem): Likewise.
42051         * nptl/Makefile (tests-special): Likewise.
42052         ($(objpfx)tst-stack3-mem): Likewise.
42053         (generated): Likewise.
42054         * posix/Makefile (generated): Likewise.
42055         (tests-special): Likewise.
42056         (xtests-special): Likewise.
42057         ($(objpfx)tst-fnmatch-mem): Likewise.
42058         ($(objpfx)bug-regex2-mem): Likewise.
42059         ($(objpfx)bug-regex14-mem): Likewise.
42060         ($(objpfx)bug-regex21-mem): Likewise.
42061         ($(objpfx)bug-regex31-mem): Likewise.
42062         ($(objpfx)tst-vfork3-mem): Likewise.
42063         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
42064         ($(objpfx)tst-pcre-mem): Likewise.
42065         ($(objpfx)tst-boost-mem): Likewise.
42066         ($(objpfx)bug-ga2-mem): Likewise.
42067         ($(objpfx)bug-glob2-mem): Likewise.
42068         * resolv/Makefile (generate): Likewise.
42069         (tests-special): Likewise.
42070         (xtests-special): Likewise.
42071         (generated): Likewise.
42072         ($(objpfx)mtrace-tst-leaks): Likewise.
42073         ($(objpfx)mtrace-tst-leaks2): Likewise.
42074
42075         * scripts/merge-test-results.sh: New file.
42076         * Makefile (tests-special-notdir): New variable.
42077         (tests): Run merge-test-results.sh.
42078         (xtests): Likewise.
42079         * Rules (tests-special-notdir): New variable.
42080         (xtests-special-notdir): Likewise.
42081         (tests): Run merge-test-results.sh
42082         (xtests): Likewise.
42083
42084         * Makeconfig (test-xfail-name): New variable.
42085         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
42086         compute variable name for expected failures.
42087         * conform/Makefile (conformtest-headers-data): New variable.
42088         (conformtest-standards): Likewise.
42089         (conformtest-headers-ISO): Likewise.
42090         (conformtest-headers-ISO99): Likewise.
42091         (conformtest-headers-ISO11): Likewise.
42092         (conformtest-headers-POSIX): Likewise.
42093         (conformtest-headers-XPG3): Likewise.
42094         (conformtest-headers-XPG4): Likewise.
42095         (conformtest-headers-UNIX98): Likewise.
42096         (conformtest-headers-XOPEN2K): Likewise.
42097         (conformtest-headers-POSIX2008): Likewise.
42098         (conformtest-headers-XOPEN2K8): Likewise.
42099         (conformtest-header-list-base): Likewise.
42100         (conformtest-header-list-tests): Likewise.
42101         (conformtest-header-base): Likewise.
42102         (conformtest-header-tests): Likewise.
42103         (tests-special): Add $(conformtest-header-list-tests).  If
42104         [$(fast-check) && !$(cross-compiling)], add
42105         $(conformtest-header-tests) instead of
42106         $(objpfx)run-conformtest.out.
42107         (generated): Add $(conformtest-header-list-base).  If
42108         [$(fast-check) && !$(cross-compiling)], add
42109         $(conformtest-header-base).  Remove previous setting.
42110         ($(conformtest-header-list-tests)): New target.
42111         (test-xfail-run-conformtest): Remove variable.
42112         ($(objpfx)run-conformtest.out): Remove target.
42113         (test-xfail-ISO11/complex.h/conform): New variable.
42114         (test-xfail-ISO11/stdalign.h/conform): Likewise.
42115         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
42116         (test-xfail-XPG3/varargs.h/conform): Likewise.
42117         (test-xfail-XPG4/varargs.h/conform): Likewise.
42118         (test-xfail-UNIX98/varargs.h/conform): Likewise.
42119         (test-xfail-XPG4/ndbm.h/conform): Likewise.
42120         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
42121         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
42122         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
42123         (test-xfail-XPG3/fcntl.h/conform): Likewise.
42124         (test-xfail-XPG3/ftw.h/conform): Likewise.
42125         (test-xfail-XPG3/grp.h/conform): Likewise.
42126         (test-xfail-XPG3/langinfo.h/conform): Likewise.
42127         (test-xfail-XPG3/limits.h/conform): Likewise.
42128         (test-xfail-XPG3/pwd.h/conform): Likewise.
42129         (test-xfail-XPG3/search.h/conform): Likewise.
42130         (test-xfail-XPG3/signal.h/conform): Likewise.
42131         (test-xfail-XPG3/stdio.h/conform): Likewise.
42132         (test-xfail-XPG3/stdlib.h/conform): Likewise.
42133         (test-xfail-XPG3/string.h/conform): Likewise.
42134         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
42135         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
42136         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
42137         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
42138         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
42139         (test-xfail-XPG3/sys/types.h/conform): Likewise.
42140         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
42141         (test-xfail-XPG3/termios.h/conform): Likewise.
42142         (test-xfail-XPG3/time.h/conform): Likewise.
42143         (test-xfail-XPG3/unistd.h/conform): Likewise.
42144         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
42145         (test-xfail-XPG4/fcntl.h/conform): Likewise.
42146         (test-xfail-XPG4/langinfo.h/conform): Likewise.
42147         (test-xfail-XPG4/netdb.h/conform): Likewise.
42148         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
42149         (test-xfail-XPG4/signal.h/conform): Likewise.
42150         (test-xfail-XPG4/stdio.h/conform): Likewise.
42151         (test-xfail-XPG4/stdlib.h/conform): Likewise.
42152         (test-xfail-XPG4/stropts.h/conform): Likewise.
42153         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
42154         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
42155         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
42156         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
42157         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
42158         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
42159         (test-xfail-XPG4/sys/time.h/conform): Likewise.
42160         (test-xfail-XPG4/sys/types.h/conform): Likewise.
42161         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
42162         (test-xfail-XPG4/termios.h/conform): Likewise.
42163         (test-xfail-XPG4/ucontext.h/conform): Likewise.
42164         (test-xfail-XPG4/unistd.h/conform): Likewise.
42165         (test-xfail-XPG4/utmpx.h/conform): Likewise.
42166         (test-xfail-POSIX/sched.h/conform): Likewise.
42167         (test-xfail-POSIX/signal.h/conform): Likewise.
42168         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
42169         (test-xfail-POSIX/tar.h/conform): Likewise.
42170         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
42171         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
42172         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
42173         (test-xfail-UNIX98/netdb.h/conform): Likewise.
42174         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
42175         (test-xfail-UNIX98/sched.h/conform): Likewise.
42176         (test-xfail-UNIX98/signal.h/conform): Likewise.
42177         (test-xfail-UNIX98/stdio.h/conform): Likewise.
42178         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
42179         (test-xfail-UNIX98/stropts.h/conform): Likewise.
42180         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
42181         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
42182         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
42183         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
42184         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
42185         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
42186         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
42187         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
42188         (test-xfail-UNIX98/unistd.h/conform): Likewise.
42189         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
42190         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
42191         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
42192         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
42193         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
42194         (test-xfail-XOPEN2K/math.h/conform): Likewise.
42195         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
42196         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
42197         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
42198         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
42199         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
42200         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
42201         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
42202         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
42203         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
42204         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
42205         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
42206         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
42207         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
42208         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
42209         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
42210         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
42211         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
42212         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
42213         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
42214         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
42215         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
42216         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
42217         (test-xfail-POSIX2008/signal.h/conform): Likewise.
42218         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
42219         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
42220         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
42221         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
42222         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
42223         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
42224         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
42225         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
42226         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
42227         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
42228         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
42229         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
42230         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
42231         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
42232         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
42233         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
42234         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
42235         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
42236         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
42237         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
42238         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
42239         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
42240         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
42241         (conformtest-cc-flags): Likewise.
42242         ($(conformtest-header-tests): New target.
42243         * conform/check-header-lists.sh: New file.
42244         * conform/run-conformtest.sh: Remove.
42245
42246         * conform/conformtest.pl: Allow ' and \ in values given for
42247         constants.
42248         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
42249         inclusion.
42250         [POSIX] (sys/types.h): Likewise.
42251         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
42252         inclusion.
42253         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
42254         inclusion.
42255         * conform/data/signal.h-data (SIGIO): Remove expectation.
42256         [XPG3] (SIGBUS): Do not expect.
42257         [POSIX || XPG3] (SIGPOLL): Likewise.
42258         [POSIX || XPG3] (SIGPROF): Likewise.
42259         [POSIX || XPG3] (SIGSYS): Likewise.
42260         [XPG3] (SIGTRAP): Likewise.
42261         [POSIX || XPG3] (SIGURG): Likewise.
42262         [POSIX || XPG3] (SIGVTALRM): Likewise.
42263         [POSIX || XPG3] (SIGXCPU): Likewise.
42264         [POSIX || XPG3] (SIGXFSZ): Likewise.
42265         [POSIX] (SA_SIGINFO): Expect.
42266         [XPG3] (siginfo_t): Do not expect type or contents.
42267         [POSIX] (si_pid): Do not expect element.
42268         [POSIX] (si_uid): Likewise.
42269         [POSIX] (si_addr): Likewise.
42270         [POSIX] (si_status): Likewise.
42271         [POSIX] (si_band): Likewise.
42272         [XPG4] (si_value): Likewise.
42273         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
42274         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
42275         [POSIX || XPG3] (ILL_ILLADR): Likewise.
42276         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
42277         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
42278         [POSIX || XPG3] (ILL_PRVREG): Likewise.
42279         [POSIX || XPG3] (ILL_COPROC): Likewise.
42280         [POSIX || XPG3] (ILL_BADSTK): Likewise.
42281         [POSIX || XPG3] (FPE_INTDIV): Likewise.
42282         [POSIX || XPG3] (FPE_INTOVF): Likewise.
42283         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
42284         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
42285         [POSIX || XPG3] (FPE_FLTUND): Likewise.
42286         [POSIX || XPG3] (FPE_FLTRES): Likewise.
42287         [POSIX || XPG3] (FPE_FLTINV): Likewise.
42288         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
42289         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
42290         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
42291         [POSIX || XPG3] (BUS_ADRALN): Likewise.
42292         [POSIX || XPG3] (BUS_ADRERR): Likewise.
42293         [POSIX || XPG3] (BUS_OBJERR): Likewise.
42294         [POSIX || XPG3] (CLD_EXITED): Likewise.
42295         [POSIX || XPG3] (CLD_KILLED): Likewise.
42296         [POSIX || XPG3] (CLD_DUMPED): Likewise.
42297         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
42298         [POSIX || XPG3] (CLD_STOPPED): Likewise.
42299         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
42300         [POSIX || XPG3] (POLL_IN): Likewise.
42301         [POSIX || XPG3] (POLL_OUT): Likewise.
42302         [POSIX || XPG3] (POLL_MSG): Likewise.
42303         [POSIX || XPG3] (POLL_ERR): Likewise.
42304         [POSIX || XPG3] (POLL_PRI): Likewise.
42305         [POSIX || XPG3] (POLL_HUP): Likewise.
42306         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
42307         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
42308         (SIG*): Do not allow.
42309         [XPG3] (si_*): Likewise.
42310         [XPG3] (SI_*): Likewise.
42311         [XPG3 || XPG4] (sigev_*): Likewise.
42312         [XPG3 || XPG4] (SIGEV_*): Likewise.
42313         [XPG3 || XPG4] (sival_*): Likewise.
42314         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
42315         [POSIX || XPG3] (BUS_*): Likewise.
42316         [POSIX || XPG3] (CLD_*): Likewise.
42317         [POSIX || XPG3] (FPE_*): Likewise.
42318         [POSIX || XPG3] (ILL_*): Likewise.
42319         [POSIX || XPG3] (POLL_*): Likewise.
42320         [POSIX || XPG3] (SEGV_*): Likewise.
42321         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
42322         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
42323         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
42324         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
42325         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
42326         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
42327         Specify type and value.
42328         (TVERSLEN): Likewise.
42329         (REGTYPE): Likewise.
42330         (AREGTYPE): Likewise.
42331         (LNKTYPE): Likewise.
42332         (SYMTYPE): Likewise.
42333         (CHRTYPE): Likewise.
42334         (BLKTYPE): Likewise.
42335         (DIRTYPE): Likewise.
42336         (FIFOTYPE): Likewise.
42337         (CONTTYPE): Likewise.
42338         (TSUID): Likewise.
42339         (TSGID): Likewise.
42340         (TSVTX): Likewise.
42341         (TUREAD): Likewise.
42342         (TUWRITE): Likewise.
42343         (TUEXEC): Likewise.
42344         (TGREAD): Likewise.
42345         (TGWRITE): Likewise.
42346         (TGEXEC): Likewise.
42347         (TOREAD): Likewise.
42348         (TOWRITE): Likewise.
42349         (TOEXEC): Likewise.
42350         [POSIX] (TSVTX): Expect constant.
42351
42352 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
42353
42354         * Makefile (tests): Change dependencies to ....
42355         (tests-special): ... additions to this variable.
42356         (tests): Depend on $(tests-special).
42357         * Makerules (check-abi-list): New variable.
42358         (check-abi): Depend on $(check-abi-list).
42359         [$(subdir) = elf] (tests-special): Add
42360         $(objpfx)check-abi-libc.out.
42361         [$(build-shared) = yes && subdir] (tests-special): Add
42362         $(check-abi-list).
42363         [$(build-shared) = yes && subdir] (tests): Do not depend on
42364         check-abi.
42365         * Rules (tests): Depend on $(tests-special).
42366         (xtests): Depend on $(xtests-special).
42367         * catgets/Makefile (tests): Change dependencies to ....
42368         (tests-special): ... additions to this variable.
42369         * conform/Makefile (tests): Change dependencies to ....
42370         (tests-special): ... additions to this variable.
42371         * elf/Makefile (tests): Change dependencies to ....
42372         (tests-special): ... additions to this variable.
42373         * grp/Makefile (tests): Change dependencies to ....
42374         (tests-special): ... additions to this variable.
42375         * iconv/Makefile (xtests): Change dependencies to ....
42376         (xtests-special): ... additions to this variable.
42377         * iconvdata/Makefile (tests): Change dependencies to ....
42378         (tests-special): ... additions to this variable.
42379         * intl/Makefile (tests): Change dependencies to ....
42380         (tests-special): ... additions to this variable.  Also add
42381         $(objpfx)tst-gettext.out.
42382         * io/Makefile (tests): Change dependencies to ....
42383         (tests-special): ... additions to this variable.
42384         * libio/Makefile (tests): Change dependencies to ....
42385         (tests-special): ... additions to this variable.
42386         * malloc/Makefile (tests): Change dependencies to ....
42387         (tests-special): ... additions to this variable.
42388         * misc/Makefile (tests): Change dependencies to ....
42389         (tests-special): ... additions to this variable.
42390         * nptl/Makefile (tests): Change dependencies to ....
42391         (tests-special): ... additions to this variable.
42392         * nptl_db/Makefile (tests): Change dependencies to ....
42393         (tests-special): ... additions to this variable.
42394         * posix/Makefile (tests): Change dependencies to ....
42395         (tests-special): ... additions to this variable.
42396         (xtests): Change dependencies to ....
42397         (xtests-special): ... additions to this variable.
42398         * resolv/Makefile (tests): Change dependencies to ....
42399         (tests-special): ... additions to this variable.
42400         (xtests): Change dependencies to ....
42401         (xtests-special): ... additions to this variable.
42402         * stdio-common/Makefile (tests): Change dependencies to ....
42403         (tests-special): ... additions to this variable.
42404         (do-tst-unbputc): Remove target.
42405         (do-tst-printf): Likewise.
42406         * stdlib/Makefile (tests): Change dependencies to ....
42407         (tests-special): ... additions to this variable.
42408         * string/Makefile (tests): Change dependencies to ....
42409         (tests-special): ... additions to this variable.
42410         * sysdeps/x86/Makefile (tests): Change dependencies to ....
42411         (tests-special): ... additions to this variable.
42412
42413         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
42414         whole file.
42415         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
42416         whole file.
42417         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
42418         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
42419
42420         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
42421         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
42422         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
42423         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
42424         * conform/data/libgen.h-data [XPG3]: Likewise.
42425         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
42426         * conform/data/ndbm.h-data [XPG3]: Likewise.
42427         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42428         * conform/data/netdb.h-data [XPG3]: Likewise.
42429         * conform/data/netinet/in.h-data [XPG3]: Likewise.
42430         * conform/data/poll.h-data [XPG3]: Likewise.
42431         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
42432         * conform/data/strings.h-data [XPG3]: Likewise.
42433         * conform/data/stropts.h-data [XPG3]: Likewise.
42434         * conform/data/sys/mman.h-data [XPG3]: Likewise.
42435         * conform/data/sys/resource.h-data [XPG3]: Likewise.
42436         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
42437         Likewise.
42438         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
42439         * conform/data/sys/time.h-data [XPG3]: Likewise.
42440         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
42441         * conform/data/sys/uio.h-data [XPG3]: Likewise.
42442         * conform/data/sys/un.h-data [XPG3]: Likewise.
42443         * conform/data/syslog.h-data [XPG3]: Likewise.
42444         * conform/data/ucontext.h-data [XPG3]: Likewise.
42445         * conform/data/utmpx.h-data [XPG3]: Likewise.
42446         * conform/data/varargs.h-data [UNIX98]: Enable file.
42447
42448         * manual/Makefile (INSTALL_INFO): Remove variable setting.
42449
42450         * math/libm-test.inc (struct test_f_f_data): Move expected results
42451         into structure for each rounding mode.
42452         (struct test_ff_f_data): Likewise.
42453         (struct test_ff_f_data_nexttoward): Likewise.
42454         (struct test_fi_f_data): Likewise.
42455         (struct test_fl_f_data): Likewise.
42456         (struct test_if_f_data): Likewise.
42457         (struct test_fff_f_data): Likewise.
42458         (struct test_c_f_data): Likewise.
42459         (struct test_f_f1_data): Likewise.
42460         (struct test_fF_f1_data): Likewise.
42461         (struct test_ffI_f1_data): Likewise.
42462         (struct test_c_c_data): Likewise.
42463         (struct test_cc_c_data): Likewise.
42464         (struct test_f_i_data): Likewise.
42465         (struct test_ff_i_data): Likewise.
42466         (struct test_f_l_data): Likewise.
42467         (struct test_f_L_data): Likewise.
42468         (struct test_fFF_11_data): Likewise.
42469         (RM_): New macro.
42470         (RM_FE_DOWNWARD): Likewise.
42471         (RM_FE_TONEAREST): Likewise.
42472         (RM_FE_TOWARDZERO): Likewise.
42473         (RM_FE_UPWARD): Likewise.
42474         (RUN_TEST_LOOP_f_f): Update references to expected results.
42475         (RUN_TEST_LOOP_2_f): Likewise.
42476         (RUN_TEST_LOOP_fff_f): Likewise.
42477         (RUN_TEST_LOOP_c_f): Likewise.
42478         (RUN_TEST_LOOP_f_f1): Likewise.
42479         (RUN_TEST_LOOP_fF_f1): Likewise.
42480         (RUN_TEST_LOOP_fI_f1): Likewise.
42481         (RUN_TEST_LOOP_ffI_f1): Likewise.
42482         (RUN_TEST_LOOP_c_c): Likewise.
42483         (RUN_TEST_LOOP_cc_c): Likewise.
42484         (RUN_TEST_LOOP_f_i): Likewise.
42485         (RUN_TEST_LOOP_f_i_tg): Likewise.
42486         (RUN_TEST_LOOP_ff_i_tg): Likewise.
42487         (RUN_TEST_LOOP_f_b): Likewise.
42488         (RUN_TEST_LOOP_f_b_tg): Likewise.
42489         (RUN_TEST_LOOP_f_l): Likewise.
42490         (RUN_TEST_LOOP_f_L): Likewise.
42491         (RUN_TEST_LOOP_fFF_11): Likewise.
42492         * math/gen-libm-test.pl (parse_args): Output four copies of
42493         expected results for each test.
42494
42495         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
42496         (__ASSUME_UTIMES): Remove.
42497         * sysdeps/unix/sysv/linux/tile/kernel-features.h
42498         (__ASSUME_UTIMES): Likewise.
42499
42500         * math/gen-auto-libm-tests.c: Update comment on output format.
42501         (output_for_one_input_case): Generate before-rounding and
42502         after-rounding information as conditions on output flags not
42503         floating-point format.
42504         * math/auto-libm-test-out: Regenerated.
42505         * math/gen-libm-test.pl (cond_value): New function.
42506         (or_cond_value): Use cond_value.
42507         (generate_testfile): Handle conditional exceptions.
42508
42509 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
42510
42511         * math/libm-test.inc (max_valid_error): New variable.
42512         (init_max_error): Take new argument specifying whether function
42513         results are exactly determined.  Set max_valid_error and bound
42514         other variables for errors based on this argument.
42515         (set_max_error): Do not record results above max_valid_error.
42516         (check_float_internal): Only accept errors of up to 0.5ulps if
42517         also at most max_valid_error.
42518         (START): Take new argument EXACT and pass it to init_max_error.
42519         (acos_test): Update call to START.
42520         (acos_test_tonearest): Likewise.
42521         (acos_test_towardzero): Likewise.
42522         (acos_test_downward): Likewise.
42523         (acos_test_upward): Likewise.
42524         (acosh_test): Likewise.
42525         (asin_test): Likewise.
42526         (asin_test_tonearest): Likewise.
42527         (asin_test_towardzero): Likewise.
42528         (asin_test_downward): Likewise.
42529         (asin_test_upward): Likewise.
42530         (asinh_test): Likewise.
42531         (atan_test): Likewise.
42532         (atanh_test): Likewise.
42533         (atan2_test): Likewise.
42534         (cabs_test): Likewise.
42535         (cacos_test): Likewise.
42536         (cacosh_test): Likewise.
42537         (carg_test): Likewise.
42538         (casin_test): Likewise.
42539         (casinh_test): Likewise.
42540         (catan_test): Likewise.
42541         (catanh_test): Likewise.
42542         (cbrt_test): Likewise.
42543         (ccos_test): Likewise.
42544         (ccosh_test): Likewise.
42545         (ceil_test): Likewise.
42546         (cexp_test): Likewise.
42547         (cimag_test): Likewise.
42548         (clog_test): Likewise.
42549         (clog10_test): Likewise.
42550         (conj_test): Likewise.
42551         (copysign_test): Likewise.
42552         (cos_test): Likewise.
42553         (cos_test_tonearest): Likewise.
42554         (cos_test_towardzero): Likewise.
42555         (cos_test_downward): Likewise.
42556         (cos_test_upward): Likewise.
42557         (cosh_test): Likewise.
42558         (cosh_test_tonearest): Likewise.
42559         (cosh_test_towardzero): Likewise.
42560         (cosh_test_downward): Likewise.
42561         (cosh_test_upward): Likewise.
42562         (cpow_test): Likewise.
42563         (cproj_test): Likewise.
42564         (creal_test): Likewise.
42565         (csin_test): Likewise.
42566         (csinh_test): Likewise.
42567         (csqrt_test): Likewise.
42568         (ctan_test): Likewise.
42569         (ctan_test_tonearest): Likewise.
42570         (ctan_test_towardzero): Likewise.
42571         (ctan_test_downward): Likewise.
42572         (ctan_test_upward): Likewise.
42573         (ctanh_test): Likewise.
42574         (ctanh_test_tonearest): Likewise.
42575         (ctanh_test_towardzero): Likewise.
42576         (ctanh_test_downward): Likewise.
42577         (ctanh_test_upward): Likewise.
42578         (erf_test): Likewise.
42579         (erfc_test): Likewise.
42580         (exp_test): Likewise.
42581         (exp_test_tonearest): Likewise.
42582         (exp_test_towardzero): Likewise.
42583         (exp_test_downward): Likewise.
42584         (exp_test_upward): Likewise.
42585         (exp10_test): Likewise.
42586         (exp10_test_tonearest): Likewise.
42587         (exp10_test_towardzero): Likewise.
42588         (exp10_test_downward): Likewise.
42589         (exp10_test_upward): Likewise.
42590         (pow10_test): Likewise.
42591         (exp2_test): Likewise.
42592         (expm1_test): Likewise.
42593         (expm1_test_tonearest): Likewise.
42594         (expm1_test_towardzero): Likewise.
42595         (expm1_test_downward): Likewise.
42596         (expm1_test_upward): Likewise.
42597         (fabs_test): Likewise.
42598         (fdim_test): Likewise.
42599         (floor_test): Likewise.
42600         (fma_test): Likewise.
42601         (fma_test_towardzero): Likewise.
42602         (fma_test_downward): Likewise.
42603         (fma_test_upward): Likewise.
42604         (fmax_test): Likewise.
42605         (fmin_test): Likewise.
42606         (fmod_test): Likewise.
42607         (fpclassify_test): Likewise.
42608         (frexp_test): Likewise.
42609         (hypot_test): Likewise.
42610         (ilogb_test): Likewise.
42611         (isfinite_test): Likewise.
42612         (finite_test): Likewise.
42613         (isgreater_test): Likewise.
42614         (isgreaterequal_test): Likewise.
42615         (isinf_test): Likewise.
42616         (isless_test): Likewise.
42617         (islessequal_test): Likewise.
42618         (islessgreater_test): Likewise.
42619         (isnan_test): Likewise.
42620         (isnormal_test): Likewise.
42621         (issignaling_test): Likewise.
42622         (isunordered_test): Likewise.
42623         (j0_test): Likewise.
42624         (j1_test): Likewise.
42625         (jn_test): Likewise.
42626         (ldexp_test): Likewise.
42627         (lgamma_test): Likewise.
42628         (gamma_test): Likewise.
42629         (lrint_test): Likewise.
42630         (lrint_test_tonearest): Likewise.
42631         (lrint_test_towardzero): Likewise.
42632         (lrint_test_downward): Likewise.
42633         (lrint_test_upward): Likewise.
42634         (llrint_test): Likewise.
42635         (llrint_test_tonearest): Likewise.
42636         (llrint_test_towardzero): Likewise.
42637         (llrint_test_downward): Likewise.
42638         (llrint_test_upward): Likewise.
42639         (log_test): Likewise.
42640         (log10_test): Likewise.
42641         (log1p_test): Likewise.
42642         (log2_test): Likewise.
42643         (logb_test): Likewise.
42644         (logb_test_downward): Likewise.
42645         (lround_test): Likewise.
42646         (llround_test): Likewise.
42647         (modf_test): Likewise.
42648         (nearbyint_test): Likewise.
42649         (nextafter_test): Likewise.
42650         (nexttoward_test): Likewise.
42651         (pow_test): Likewise.
42652         (pow_test_tonearest): Likewise.
42653         (pow_test_towardzero): Likewise.
42654         (pow_test_downward): Likewise.
42655         (pow_test_upward): Likewise.
42656         (remainder_test): Likewise.
42657         (drem_test): Likewise.
42658         (remainder_test_tonearest): Likewise.
42659         (drem_test_tonearest): Likewise.
42660         (remainder_test_towardzero): Likewise.
42661         (drem_test_towardzero): Likewise.
42662         (remainder_test_downward): Likewise.
42663         (drem_test_downward): Likewise.
42664         (remainder_test_upward): Likewise.
42665         (drem_test_upward): Likewise.
42666         (remquo_test): Likewise.
42667         (rint_test): Likewise.
42668         (rint_test_tonearest): Likewise.
42669         (rint_test_towardzero): Likewise.
42670         (rint_test_downward): Likewise.
42671         (rint_test_upward): Likewise.
42672         (round_test): Likewise.
42673         (scalb_test): Likewise.
42674         (scalbn_test): Likewise.
42675         (scalbln_test): Likewise.
42676         (signbit_test): Likewise.
42677         (sin_test): Likewise.
42678         (sin_test_tonearest): Likewise.
42679         (sin_test_towardzero): Likewise.
42680         (sin_test_downward): Likewise.
42681         (sin_test_upward): Likewise.
42682         (sincos_test): Likewise.
42683         (sinh_test): Likewise.
42684         (sinh_test_tonearest): Likewise.
42685         (sinh_test_towardzero): Likewise.
42686         (sinh_test_downward): Likewise.
42687         (sinh_test_upward): Likewise.
42688         (sqrt_test): Likewise.
42689         (sqrt_test_tonearest): Likewise.
42690         (sqrt_test_towardzero): Likewise.
42691         (sqrt_test_downward): Likewise.
42692         (sqrt_test_upward): Likewise.
42693         (tan_test): Likewise.
42694         (tan_test_tonearest): Likewise.
42695         (tan_test_towardzero): Likewise.
42696         (tan_test_downward): Likewise.
42697         (tan_test_upward): Likewise.
42698         (tanh_test): Likewise.
42699         (tgamma_test): Likewise.
42700         (trunc_test): Likewise.
42701         (y0_test): Likewise.
42702         (y1_test): Likewise.
42703         (yn_test): Likewise.
42704         (significand_test): Likewise.
42705
42706         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
42707         individual tests in comment.
42708         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
42709         (prev_max_error): New variable.
42710         (prev_real_max_error): Likewise.
42711         (prev_imag_max_error): Likewise.
42712         (compare_ulp_data): Don't refer to test names in comment.
42713         (find_test_ulps): Remove function.
42714         (find_function_ulps): Likewise.
42715         (find_complex_function_ulps): Likewise.
42716         (init_max_error): Take function name as argument.  Look up ulps
42717         for that function.
42718         (print_ulps): Remove function.
42719         (print_max_error): Use prev_max_error instead of calling
42720         find_function_ulps.
42721         (print_complex_max_error): Use prev_real_max_error and
42722         prev_imag_max_error instead of calling find_complex_function_ulps.
42723         (check_float_internal): Take max_ulp parameter instead of calling
42724         find_test_ulps.  Don't call print_ulps.
42725         (check_float): Update call to check_float_internal.
42726         (check_complex): Update calls to check_float_internal.
42727         (START): Pass argument to init_max_error.
42728         * math/gen-libm-test.pl (%results): Don't include "kind"
42729         information.
42730         (parse_ulps): Don't handle ulps of individual tests.
42731         (print_ulps_file): Likewise.
42732         (output_ulps): Likewise.
42733         * math/README.libm-test: Update.
42734         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
42735         individual tests.
42736         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
42737         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
42738         * sysdeps/arm/libm-test-ulps: Likewise.
42739         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
42740         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
42741         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
42742         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
42743         * sysdeps/microblaze/libm-test-ulps: Likewise.
42744         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
42745         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42746         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
42747         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
42748         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
42749         * sysdeps/sh/libm-test-ulps: Likewise.
42750         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
42751         * sysdeps/tile/libm-test-ulps: Likewise.
42752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42753
42754 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
42755
42756         * math/libm-test.inc (print_complex_max_error): Check separately
42757         whether real and imaginary errors are within allowed range and
42758         pass 0 to print_complex_function_ulps instead of value within
42759         allowed range.
42760
42761 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42762
42763         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
42764         formatting.
42765         (get_handles_fopen): Likewise.
42766         (do_write_test): Likewise.
42767
42768         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
42769
42770         * libio/fileops.c (do_ftell): Use cached offset when
42771         available.
42772         * libio/iofwide.c (do_ftell_wide): Likewise.
42773         * libio/iofdopen.c (_IO_new_fdopen): Don't use
42774         _IO_file_attach.
42775         * libio/wfileops.c (_IO_fwide): Don't cache offset.
42776
42777         [BZ #16532]
42778         * libio/libioP.h (get_file_offset): New function.
42779         * libio/fileops.c (get_file_offset): Likewise.
42780         (do_ftell): Likewise.
42781         (_IO_new_file_seekoff): Split out ftell logic.
42782         * libio/wfileops.c (do_ftell_wide): Likewise.
42783         (_IO_wfile_seekoff): Split out ftell logic.
42784         * libio/tst-ftell-active-handler.c: New test case.
42785         * libio/Makefile (tests): Add it.
42786
42787 2014-03-03  Roland McGrath  <roland@hack.frob.com>
42788
42789         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
42790         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
42791
42792 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
42793
42794         [BZ #16639]
42795         * nscd/connections.c (nscd_init): Call do_exit.
42796         (start_threads): Call do_exit and notify_parent.
42797         (begin_drop_privileges): Call do_exit.
42798         (finish_drop_privileges): Likewise.
42799         * nscd/selinux.c (preserve_capabilities): Likewise.
42800         (install_real_capabilities): Likewise.
42801         (nscd_selinux_enabled): Likewise.
42802         (avc_create_thread): Likewise.
42803         (avc_alloc_lock): Likewise.
42804         (nscd_avc_init): Likewise.
42805         * nscd/nscd.c (parent_fd): New static variable.
42806         (main): Create a pipe between parent and child processes.
42807         Skip closing parent_fd.
42808         (monitor_child): New function.
42809         (do_exit): Likewise.
42810         (notify_parent): Likewise.
42811         * nscd/nscd.h (notify_parent): Likewise.
42812         (do_exit): Likewise.
42813
42814 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
42815
42816         * malloc/malloc.c (__libc_calloc): Revert last change.
42817
42818 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42819
42820         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42821
42822 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
42823
42824         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
42825         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
42826         implementation.
42827         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42828         (__libc_ifunc_impl_list): Likewise.
42829         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
42830         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
42831         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
42832         * string/strrchr.c: Define STRRCHR.
42833
42834 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
42835
42836         * benchtest/bench-strtok.c (simple_strtok): Delete.
42837         (strtok_string): Use as benchmark.
42838         * string/strtok (STRTOK): New macro.
42839
42840 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
42841
42842         * manual/threads.texi: Add header and standard comments to all
42843         functions.
42844
42845         * elf/dl-lookup.c (check_match): New function.
42846         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
42847         (do_lookup_x): Remove nested function check_match. Use non-nested
42848         function check_match.
42849
42850 2014-02-28  Roland McGrath  <roland@hack.frob.com>
42851
42852         * csu/Makefile (generated, before-compile): Use += rather than =.
42853         * catgets/Makefile (generated, generated-dirs): Likewise.
42854         * debug/Makefile (generated): Likewise.
42855         * dlfcn/Makefile (generated): Likewise.
42856         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
42857         * iconvdata/Makefile (before-compile, generated): Likewise.
42858         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
42859         * libio/Makefile (generated): Likewise.
42860         * malloc/Makefile (generated): Likewise.
42861         * manual/Makefile (generated, generated-dirs): Likewise.
42862         * misc/Makefile (generated): Likewise.
42863         * posix/Makefile (generated): Likewise.
42864         * resolv/Makefile (generated): Likewise.
42865         * sunrpc/Makefile (generated, generated-dirs): Likewise.
42866         * timezone/Makefile (generated, generated-dirs): Likewise.
42867
42868         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
42869
42870 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42871
42872         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
42873         power8 implementation.
42874         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
42875         file: POWER8 llround ifunc implementation.
42876         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
42877         (__lllround): Add POWER8 implementation.
42878         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
42879         POWER8 llround implementation.
42880
42881         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
42882         power8 implementation.
42883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
42884         file: POWER8 llrint ifunc implementation.
42885         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
42886         Add POWER8 implementation.
42887         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
42888         POWER8 llrint implementation.
42889
42890         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
42891         power8 implementation.
42892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
42893         file: POWER8 finite ifunc implementation.
42894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
42895         Add POWER8 implementation.
42896         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
42897         Likewise.
42898         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
42899         POWER8 finite implementation.
42900         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
42901
42902         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
42903         power8 implementation.
42904         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
42905         file: POWER8 isinf ifunc implementation.
42906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
42907         POWER8 implementation.
42908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
42909         Likewise.
42910         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
42911         isinf implementation.
42912         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
42913
42914         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
42915         (INIT_ARCH): Add hwcap2 initialization.
42916         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
42917         power8 implementation.
42918         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
42919         file: POWER8 isnan ifunc implementation.
42920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
42921         POWER8 implementation.
42922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
42923         Likewise.
42924         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
42925         isnan implementation.
42926         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
42927
42928 2014-02-27  Joey Ye  <joey.ye@arm.com>
42929
42930         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
42931         (_FP_NANFRAC_Q): Set to zero.
42932
42933 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
42934
42935         [BZ #16623]
42936         * math/auto-libm-test-in: New test inputs.
42937         * math/auto-libm-test-out: Regenerate.
42938         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
42939         and DA.
42940         (__cos): Likewise.
42941         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
42942
42943 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
42944
42945         * scripts/evaluate-test.sh: Take new argument indicating whether
42946         failure is expected.
42947         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
42948         indicating whether failure is expected.
42949         * conform/Makefile (test-xfail-run-conformtest): New variable.
42950         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
42951         level.
42952         * posix/Makefile (test-xfail-annexc): New variable.
42953         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
42954
42955 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
42956
42957         * argp/Makefile: Include Makeconfig immediately after defining
42958         subdir.
42959         * assert/Makefile: Likewise.
42960         * benchtests/Makefile: Likewise.
42961         * catgets/Makefile: Likewise.
42962         * conform/Makefile: Likewise.
42963         * crypt/Makefile: Likewise.
42964         * csu/Makefile: Likewise.
42965         (all): Remove target.
42966         * ctype/Makefile: Include Makeconfig immediately after defining
42967         subdir.
42968         * debug/Makefile: Likewise.
42969         * dirent/Makefile: Likewise.
42970         * dlfcn/Makefile: Likewise.
42971         * gmon/Makefile: Likewise.
42972         * gnulib/Makefile: Likewise.
42973         * grp/Makefile: Likewise.
42974         * gshadow/Makefile: Likewise.
42975         * hesiod/Makefile: Likewise.
42976         * hurd/Makefile: Likewise.
42977         (all): Remove target.
42978         * iconvdata/Makefile: Include Makeconfig immediately after
42979         defining subdir.
42980         * inet/Makefile: Likewise.
42981         * intl/Makefile: Likewise.
42982         * io/Makefile: Likewise.
42983         * libio/Makefile: Likewise.
42984         (all): Remove target.
42985         * locale/Makefile: Include Makeconfig immediately after defining
42986         subdir.
42987         * login/Makefile: Likewise.
42988         * mach/Makefile: Likewise.
42989         (all): Remove target.
42990         * malloc/Makefile: Include Makeconfig immediately after defining
42991         subdir.
42992         (all): Remove target.
42993         * manual/Makefile: Include Makeconfig immediately after defining
42994         subdir.
42995         * math/Makefile: Likewise.
42996         * misc/Makefile: Likewise.
42997         * nis/Makefile: Likewise.
42998         * nss/Makefile: Likewise.
42999         * po/Makefile: Likewise.
43000         (all): Remove target.
43001         * posix/Makefile: Include Makeconfig immediately after defining
43002         subdir.
43003         * pwd/Makefile: Likewise.
43004         * resolv/Makefile: Likewise.
43005         * resource/Makefile: Likewise.
43006         * rt/Makefile: Likewise.
43007         * setjmp/Makefile: Likewise.
43008         * shadow/Makefile: Likewise.
43009         * signal/Makefile: Likewise.
43010         * socket/Makefile: Likewise.
43011         * soft-fp/Makefile: Likewise.
43012         * stdio-common/Makefile: Likewise.
43013         * stdlib/Makefile: Likewise.
43014         * streams/Makefile: Likewise.
43015         * string/Makefile: Likewise.
43016         * sunrpc/Makefile: Likewise.
43017         (all): Remove target.
43018         * sysvipc/Makefile: Include Makeconfig immediately after defining
43019         subdir.
43020         * termios/Makefile: Likewise.
43021         * time/Makefile: Likewise.
43022         * timezone/Makefile: Likewise.
43023         (all): Remove target.
43024         * wcsmbs/Makefile: Include Makeconfig immediately after defining
43025         subdir.
43026         * wctype/Makefile: Likewise.
43027
43028 2014-02-26  Steve Ellcey  <sellcey@mips.com>
43029
43030         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
43031         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
43032         (libc_feholdexcept_setround_mips): Ditto.
43033         (libc_feholdsetround): New.
43034         (libc_feholdsetroundf): New.
43035         (libc_feholdsetroundl): New.
43036         (libc_feupdateenv_test_mips): New.
43037         (libc_feupdateenv_test): New.
43038         (libc_feupdateenv_testf): New.
43039         (libc_feupdateenv_testl): New.
43040         (libc_feresetround): New.
43041         (libc_feresetroundf): New.
43042         (libc_feresetroundl): New.
43043         (libc_fetestexcept_mips): New.
43044         (libc_fetestexcept): New.
43045         (libc_fetestexceptf): New.
43046         (libc_fetestexceptl): New.
43047         (HAVE_RM_CTX): New.
43048         (libc_feholdexcept_setround_mips_ctx): New.
43049         (libc_feholdexcept_setround_ctx): New.
43050         (libc_feholdexcept_setroundf_ctx): New.
43051         (libc_feholdexcept_setroundl_ctx): New.
43052         (libc_fesetenv_mips_ctx): New.
43053         (libc_fesetenv_ctx): New.
43054         (libc_fesetenv_ctxf): New.
43055         (libc_fesetenv_ctxl): New.
43056         (libc_feupdateenv_mips_ctx): New.
43057         (libc_feupdateenv_ctx): New.
43058         (libc_feupdateenvf_ctx): New.
43059         (libc_feupdateenvl_ctx): New.
43060         (libc_feholdsetround_mips_ctx): New.
43061         (libc_feholdsetround_ctx): New.
43062         (libc_feholdsetroundf_ctx): New.
43063         (libc_feholdsetroundl_ctx): New.
43064         (libc_feresetround_mips_ctx): New.
43065         (libc_feresetround_ctx): New.
43066         (libc_feresetroundf_ctx): New.
43067         (libc_feresetroundl_ctx): New.
43068
43069 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
43070
43071         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
43072
43073         * manual/ipc.texi: New file.
43074         * manual/Makefile (chapters): Add ipc.
43075         * manual/job.texi: Add "Inter-Process Communication" to next.
43076         * manual/process.texi: Add "Inter-Process Communication" to prev.
43077
43078 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43079
43080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43081
43082 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
43083
43084         * malloc/malloc.c (__libc_calloc): Simplify implementation.
43085
43086         * manual/arith.texi: Fix spaces after sentences.
43087         * manual/charset.texi: Likewise.
43088         * manual/errno.texi: Likewise.
43089         * manual/install.texi: Likewise.
43090         * manual/llio.texi: Likewise.
43091         * manual/locale.texi: Likewise.
43092         * manual/maint.texi: Likewise.
43093         * manual/math.texi: Likewise.
43094         * manual/memory.texi: Likewise.
43095         * manual/message.texi: Likewise.
43096         * manual/probes.texi: Likewise.
43097         * manual/resource.texi: Likewise.
43098         * manual/signal.texi: Likewise.
43099         * manual/socket.texi: Likewise.
43100         * manual/stdio.texi: Likewise.
43101         * manual/string.texi: Likewise.
43102         * manual/time.texi: Likewise.
43103         * manual/users.texi: Likewise.
43104
43105 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
43106
43107         [BZ #16632]
43108         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
43109         _DEFAULT_SOURCE is defined.
43110
43111 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
43112             Carlos O'Donell  <carlos@redhat.com>
43113
43114         [BZ #16613]
43115         * elf/dl-tls.c (_dl_count_modids): New function.
43116         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
43117         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
43118         audit library and increment generation counter.
43119         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
43120         * elf/tst-audit9.c: New file.
43121         * elf/tst-auditmod9a.c: New file.
43122         * elf/tst-auditmod9b.c: New file.
43123         * elf/Makefile: Add rules to build and run tst-audit9.
43124
43125 2014-02-25  Florian Weimer  <fweimer@redhat.com>
43126
43127         [BZ #15347]
43128         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
43129
43130 2014-02-25  Will Newton  <will.newton@linaro.org>
43131
43132         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
43133         (__longjmp): Restore sp and lr before restoring callee
43134         saved registers.  Add longjmp and longjmp_target
43135         SystemTap probe point.
43136         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
43137         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
43138         Define to zero to match jmpbuf layout.
43139         * sysdeps/arm/setjmp.S: Include stap-probe.h.
43140         (__sigsetjmp): Save sp and lr before saving callee
43141         saved registers.  Add setjmp SystemTap probe point.
43142
43143 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
43144
43145         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
43146
43147 2014-02-24  Andreas Schwab  <schwab@suse.de>
43148
43149         [BZ #15804]
43150         * elf/pldd.c (wait_for_ptrace_stop): New function.
43151         (main): Call it after attaching.
43152
43153 2014-02-22  Roland McGrath  <roland@hack.frob.com>
43154
43155         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
43156         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
43157         Versions files is now verboten.
43158         * hurd/Versions (libc: GLIBC_2.0):
43159         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
43160         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
43161         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
43162         * mach/Versions: Likewise.
43163
43164         * csu/Versions: Remove unused %include.
43165         * resolv/Versions: Likewise.
43166
43167 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
43168
43169         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
43170         ($(objpfx)check-local-headers.out): Likewise.
43171         ($(objpfx)begin-end-check.out): Likewise.
43172         * Makerules (check-abi-%.out): Likewise.
43173         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
43174         ($(objpfx)test2.cat): Likewise.
43175         ($(objpfx)de/libc.cat): Likewise.
43176         ($(objpfx)test-gencat.out): Likewise.
43177         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
43178         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
43179         ($(objpfx)noload-mem): Likewise.
43180         ($(objpfx)tst-pathopt.out): Likewise.
43181         ($(objpfx)tst-rtld-load-self.out): Likewise.
43182         ($(objpfx)tst-array1-cmp.out): Likewise.
43183         ($(objpfx)tst-array1-static-cmp.out): Likewise.
43184         ($(objpfx)tst-array2-cmp.out): Likewise.
43185         ($(objpfx)tst-array3-cmp.out): Likewise.
43186         ($(objpfx)tst-array4-cmp.out): Likewise.
43187         ($(objpfx)tst-array5-cmp.out): Likewise.
43188         ($(objpfx)tst-array5-static-cmp.out): Likewise.
43189         ($(objpfx)check-textrel.out): Likewise.
43190         ($(objpfx)check-execstack.out): Likewise.
43191         ($(objpfx)check-localplt.out): Likewise.
43192         ($(objpfx)order2-cmp.out): Likewise.
43193         ($(objpfx)tst-leaks1-mem): Likewise.
43194         ($(objpfx)tst-leaks1-static-mem): Likewise.
43195         ($(objpfx)tst-initorder-cmp.out): Likewise.
43196         ($(objpfx)tst-initorder2-cmp.out): Likewise.
43197         ($(objpfx)tst-unused-dep.out): Likewise.
43198         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
43199         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
43200         * iconv/Makefile (test-iconvconfig): Likewise.
43201         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
43202         ($(objpfx)iconv-test.out): Likewise.
43203         ($(objpfx)tst-tables.out): Likewise.
43204         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
43205         ($(objpfx)tst-gettext.out): Likewise.
43206         ($(objpfx)tst-translit.out): Likewise.
43207         ($(objpfx)tst-gettext2.out): Likewise.
43208         ($(objpfx)tst-gettext4.out): Likewise.
43209         ($(objpfx)tst-gettext6.out): Likewise.
43210         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
43211         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
43212         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
43213         ($(objpfx)tst-fopenloc-mem.out): Likewise.
43214         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
43215         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
43216         * posix/Makefile ($(objpfx)globtest.out): Likewise.
43217         ($(objpfx)wordexp-tst.out): Likewise.
43218         ($(objpfx)annexc.out): Likewise.
43219         ($(objpfx)tst-fnmatch-mem): Likewise.
43220         ($(objpfx)bug-regex2-mem): Likewise.
43221         ($(objpfx)bug-regex14-mem): Likewise.
43222         ($(objpfx)bug-regex21-mem): Likewise.
43223         ($(objpfx)bug-regex31-mem): Likewise.
43224         ($(objpfx)tst-vfork3-mem): Likewise.
43225         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
43226         ($(objpfx)tst-pcre-mem): Likewise.
43227         ($(objpfx)tst-boost-mem): Likewise.
43228         ($(objpfx)tst-getconf.out): Likewise.
43229         ($(objpfx)bug-ga2-mem): Likewise.
43230         ($(objpfx)bug-glob2-mem): Likewise.
43231         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
43232         ($(objpfx)mtrace-tst-leaks2): Likewise.
43233         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
43234         ($(objpfx)tst-printf.out): Likewise.
43235         ($(objpfx)tst-setvbuf1.out): Likewise.
43236         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
43237         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
43238         ($(objpfx)tst-fmtmsg.out): Likewise.
43239         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
43240         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
43241
43242         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
43243         * bits/sigaction.h [__USE_MISC]: Likewise.
43244         * bits/waitstatus.h: Update #endif comments.
43245         * ctype/ctype.h: Likewise.
43246         * dirent/dirent.h: Likewise.
43247         [__USE_MISC]: Remove redundant conditionals.
43248         * grp/grp.h: Update #endif comments.
43249         [__USE_GNU]: Remove redundant conditionals.
43250         [__USE_MISC]: Likewise.
43251         * inet/netinet/in.h [__USE_GNU]: Likewise.
43252         * io/sys/stat.h [__USE_MISC]: Likewise.
43253         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
43254         * libio/bits/stdio.h: Update #endif comments.
43255         [__USE_MISC]: Remove redundant conditionals.
43256         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
43257         * libio/stdio.h: Update #endif comments.
43258         [__USE_MISC]: Remove redundant conditionals.
43259         * math/bits/math-finite.h [__USE_MISC]: Likewise.
43260         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
43261         * math/math.h: Update #else and #endif comments.
43262         [__USE_MISC]: Remove redundant conditionals.
43263         * misc/sys/uio.h: Update #endif comments.
43264         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
43265         * posix/glob.h [__USE_MISC]: Likewise.
43266         * posix/sys/types.h: Update #endif comments.
43267         [__USE_MISC]: Remove redundant conditionals.
43268         * posix/sys/wait.h: Update #endif comments.
43269         [__USE_MISC]: Remove redundant conditionals.
43270         * posix/unistd.h: Update #endif comments.
43271         [__USE_MISC]: Remove redundant conditionals.
43272         * pwd/pwd.h [__USE_GNU]: Likewise.
43273         [__USE_MISC]: Likewise.
43274         * resolv/netdb.h [__USE_GNU]: Likewise.
43275         * signal/signal.h: Update #endif comments.
43276         [__USE_MISC]: Remove redundant conditionals.
43277         * stdlib/stdlib.h: Update #else and #endif comments.
43278         [__USE_MISC]: Remove redundant conditionals.
43279         [__USE_GNU]: Likewise.
43280         * string/bits/string2.h [__USE_MISC]: Likewise.
43281         * string/string.h: Update #endif comments.
43282         [__USE_MISC]: Remove redundant conditionals.
43283         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
43284         Likewise.
43285         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
43286         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
43287         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
43288         Likewise.
43289         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
43290         Likewise.
43291         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
43292         comments.
43293         [__USE_MISC]: Remove redundant conditionals.
43294         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
43295         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
43296         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
43297         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
43298         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
43299         Likewise.
43300         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
43301         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
43302         Likewise.
43303         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
43304         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
43305         Likewise.
43306         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
43307         Likewise.
43308         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
43309         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
43310         Likewise.
43311         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
43312         Likewise.
43313         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
43314         * sysdeps/x86/bits/string.h: Update #endif comments.
43315         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
43316         conditionals.
43317         * time/sys/time.h: Update #endif comments.
43318         * time/time.h: Likewise.
43319         [__USE_MISC]: Remove redundant conditionals.
43320
43321 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
43322
43323         [BZ #16600]
43324         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
43325
43326 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
43327
43328         * Versions.def (librt): Add GLIBC_2.17.
43329
43330 2014-02-21  Adam Conrad  <adconrad@0c3.net>
43331
43332         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
43333         synonym for _SYS_AUXV_H to allow direct inclusion.
43334         * sysdeps/sparc/bits/hwcap.h: Likewise.
43335         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
43336         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
43337         * sysdeps/sparc/sysdep.h: Likewise.
43338
43339 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
43340
43341         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
43342
43343 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
43344
43345         * benchtests/bench-strrchr.c: Print length instead of position.
43346
43347 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
43348
43349         [BZ #16611]
43350         * sysdeps/unix/sysv/linux/kernel-features.h
43351         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
43352         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
43353         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
43354         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
43355         Likewise.
43356         [__i386__ || __powerpc__ || __sh__ || __sparc__]
43357         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43358         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
43359         (__ASSUME_SENDMMSG): Define instead of using previous
43360         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
43361         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43362         (__ASSUME_SENDMMSG_SYSCALL): Define.
43363         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43364         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
43365         Likewise.
43366         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43367         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43368         Likewise.
43369         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43370         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43371         Likewise.
43372         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
43373         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43374         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43375         [__ASSUME_SENDMMSG]: Change conditionals to
43376         [__ASSUME_SENDMMSG_SOCKETCALL].
43377         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43378         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
43379         Define.
43380         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43381         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
43382         Likewise.
43383         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
43384         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
43385         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
43386         [!__ASSUME_SENDMMSG]: Change conditional to
43387         [!__ASSUME_SENDMMSG_SOCKETCALL].
43388         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43389         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
43390         Define.
43391
43392         [BZ #16610]
43393         * sysdeps/unix/sysv/linux/kernel-features.h
43394         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
43395         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
43396         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
43397         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
43398         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
43399         [__i386__ || __sparc__]
43400         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43401         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
43402         (__ASSUME_RECVMMSG): Define instead of using previous
43403         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
43404         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43405         (__ASSUME_RECVMMSG_SYSCALL): Define.
43406         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43407         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43408         Likewise.
43409         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43410         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43411         Likewise.
43412         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43413         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43414         Likewise.
43415         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
43416         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43417         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43418         [__ASSUME_RECVMMSG]: Change condition to
43419         [__ASSUME_RECVMMSG_SOCKETCALL].
43420         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43421         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43422         Define.
43423         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43424         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43425         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
43426         Likewise.
43427         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
43428         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
43429         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
43430         [!__ASSUME_RECVMMSG]: Change condition to
43431         [!__ASSUME_RECVMMSG_SOCKETCALL].
43432         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43433         (__ASSUME_RECVMMSG_SYSCALL): Define.
43434
43435         [BZ #16609]
43436         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
43437         __powerpc__ || __s390__ || __sh__ || __sparc__]
43438         (__ASSUME_SOCKETCALL): Define.
43439         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
43440         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
43441         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
43442         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
43443         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
43444         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
43445         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
43446         (__ASSUME_ACCEPT4): Define instead of using previous
43447         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
43448         __powerpc__ || __sparc__ || __s390__)] condition.
43449         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
43450         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43451         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
43452         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43453         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43454         [!__ASSUME_ACCEPT4]: Change condition to
43455         [!__ASSUME_ACCEPT4_SOCKETCALL].
43456         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
43457         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
43458         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
43459         * sysdeps/unix/sysv/linux/arm/kernel-features.h
43460         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
43461         __ASSUME_ACCEPT4_SYSCALL.
43462         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
43463         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
43464         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
43465         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
43466         __ASSUME_ACCEPT4_SYSCALL.
43467         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
43468         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
43469         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
43470         [__ASSUME_ACCEPT4]: Change condition to
43471         [__ASSUME_ACCEPT4_SOCKETCALL].
43472         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
43473         (__ASSUME_SOCKETCALL): Define.
43474         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
43475         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
43476         (__ASSUME_SOCKETCALL): Define.
43477         (__ASSUME_ACCEPT4): Remove.
43478         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
43479         Define.
43480         * sysdeps/unix/sysv/linux/mips/kernel-features.h
43481         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
43482         Likewise.
43483         * sysdeps/unix/sysv/linux/tile/kernel-features.h
43484         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
43485
43486         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
43487         macro.
43488         (HWCAP_ARM_LPAE): Likewise.
43489         (HWCAP_ARM_EVTSTRM): Likewise.
43490         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
43491         Add vpfd32, lpae and evtstrm.
43492         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
43493         Increase to 22.
43494
43495 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
43496
43497         * math/auto-libm-test-in: Add tests of clog10.
43498         * math/auto-libm-test-out: Regenerated.
43499         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
43500         * sysdeps/i386/fpu/libm-test-ulps: Update.
43501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43502
43503 2014-02-18  Andreas Schwab  <schwab@suse.de>
43504
43505         [BZ #16574]
43506         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
43507         Store non-zero if the second buffer was newly allocated.
43508         (send_dg): Likewise.
43509         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
43510         to send_vc and send_dg.
43511         (res_nsend): Pass NULL for ansp2_malloced.
43512         * resolv/res_query.c (__libc_res_nquery): Add parameter
43513         answerp2_malloced and pass it down to __libc_res_nsend.
43514         (res_nquery): Pass additional NULL to __libc_res_nquery.
43515         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
43516         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
43517         second answer buffer if answerp2_malloced was set.
43518         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
43519         (__libc_res_nquerydomain): Add parameter
43520         answerp2_malloced and pass it down to __libc_res_nquery.
43521         (res_nquerydomain): Pass additional NULL to
43522         __libc_res_nquerydomain.
43523         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
43524         additional NULL to __libc_res_nsend and __libc_res_nquery.
43525         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
43526         additional NULL to __libc_res_nsearch.
43527         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
43528         parameter of __libc_res_nsearch to check for separately allocated
43529         second buffer.
43530         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
43531         __libc_res_nquery.
43532         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
43533         additional NULL to __libc_res_nquery.
43534         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
43535         __libc_res_nsearch.
43536         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
43537         * include/resolv.h: Update prototypes of __libc_res_nquery,
43538         __libc_res_nsearch, __libc_res_nsend.
43539
43540 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
43541
43542         * math/auto-libm-test-in: Add tests of fma.
43543         * math/auto-libm-test-out: Regenerated.
43544         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
43545         (fma_towardzero_test_data): Likewise.
43546         (fma_downward_test_data): Likewise.
43547         (fma_upward_test_data): Likewise.
43548         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
43549         mpc_mode.
43550         (rounding_modes): Add values for new field.
43551         (func_calc_method): Add value mpfr_fff_f.
43552         (func_calc_desc): Add mpfr_fff_f union field.
43553         (test_function): Add field exact_args.
43554         (FUNC): Add macro argument EXACT_ARGS.
43555         (FUNC_mpfr_f_f): Update call to FUNC.
43556         (FUNC_mpfr_f_f): Likewise.
43557         (FUNC_mpfr_ff_f): Likewise.
43558         (FUNC_mpfr_if_f): Likewise.
43559         (FUNC_mpc_c_f): Likewise.
43560         (FUNC_mpc_c_c): Likewise.
43561         (test_functions): Add fma.  Update calls to FUNC.
43562         (handle_input_arg): Add argument exact_args.
43563         (add_test): Update call to handle_input_arg.
43564         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
43565         (output_for_one_input_case): Update call to calc_generic_results.
43566         Recalculate exact zero results in each rounding mode.
43567
43568         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
43569         non-negative before setting low bit.
43570         * math/auto-libm-test-in: Mark one asin test possibly having
43571         spurious underflow.
43572         * math/auto-libm-test-out: Regenerated.
43573         * sysdeps/i386/fpu/libm-test-ulps: Update.
43574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43575
43576 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
43577
43578         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
43579         * sysdeps/unix/sysv/linux/microblaze: Move directory from
43580         ports/sysdeps/unix/sysv/linux/microblaze.
43581         * README: Add missing listing for microblaze*-*-linux-gnu.
43582
43583 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
43584
43585         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
43586         duplicate code
43587
43588 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
43589
43590         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
43591         * sysdeps/unix/sysv/linux/ia64: Move directory from
43592         ports/sysdeps/unix/sysv/linux/ia64.
43593         * README: Update listing for ia64-*-linux-gnu.
43594
43595 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
43596             Joseph Myers  <joseph@codesourcery.com>
43597
43598         * Makeconfig (test-name): New variable.
43599         (evaluate-test): Likewise.
43600         * Makerules (do-test-clean): Remove .test-result files.
43601         (common-mostlyclean): Likewise.
43602         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
43603         * scripts/evaluate-test.sh: New file.
43604
43605 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
43606
43607         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
43608         separate $(objpfx)tst-fopenloc-cmp.out and
43609         $(objpfx)tst-fopenloc-mem.out targets.
43610         (tests): Update dependencies.
43611         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
43612         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
43613         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
43614         (tst-rxspencer-no-utf8-ARGS): New variable.
43615         (tst-rxspencer-no-utf8-ENV): Likewise.
43616         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
43617         instead of $(objpfx)tst-rxspencer-mem.
43618         ($(objpfx)tst-rxspencer-mem): Change target to
43619         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
43620         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
43621         * posix/tst-rxspencer-no-utf8.c: New file.
43622
43623         * elf/Makefile ($(objpfx)order.out): Remove rule.
43624         [$(run-built-tests) = yes] (tests): Depend on
43625         $(objpfx)order-cmp.out.
43626         ($(objpfx)order-cmp.out): New rule.
43627         [$(run-built-tests) = yes] (tests): Depend on
43628         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
43629         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
43630         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
43631         $(objpfx)tst-array5-static-cmp.out.
43632         ($(objpfx)tst-array1.out): Remove rule.
43633         ($(objpfx)tst-array1-cmp.out): New rule.
43634         ($(objpfx)tst-array1-static.out): Remove rule.
43635         ($(objpfx)tst-array1-static-cmp.out): New rule.
43636         ($(objpfx)tst-array2.out): Remove rule.
43637         ($(objpfx)tst-array2-cmp.out): New rule.
43638         ($(objpfx)tst-array3.out): Remove rule.
43639         ($(objpfx)tst-array3-cmp.out): New rule.
43640         ($(objpfx)tst-array4.out): Remove rule.
43641         ($(objpfx)tst-array4-cmp.out): New rule.
43642         ($(objpfx)tst-array5.out): Remove rule.
43643         ($(objpfx)tst-array5-cmp.out): New rule.
43644         ($(objpfx)tst-array5-static.out): Remove rule.
43645         ($(objpfx)tst-array5-static-cmp.out): New rule.
43646         [$(run-built-tests) = yes] (tests): Depend on
43647         $(objpfx)order2-cmp.out.
43648         ($(objpfx)order2.out): Remove rule.
43649         ($(objpfx)order2-cmp.out): New rule.
43650         ($(objpfx)tst-initorder.out): Remove rule.
43651         [$(run-built-tests) = yes] (tests): Depend on
43652         $(objpfx)tst-initorder-cmp.out.
43653         ($(objpfx)tst-initorder-cmp.out): New rule.
43654         ($(objpfx)tst-initorder2.out): Remove rule.
43655         [$(run-built-tests) = yes] (tests): Depend on
43656         $(objpfx)tst-initorder2-cmp.out.
43657         ($(objpfx)tst-initorder2-cmp.out): New rule.
43658         [$(run-built-tests) = yes] (tests): Depend on
43659         $(objpfx)tst-unused-dep-cmp.out.
43660         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
43661         ($(objpfx)tst-unused-dep-cmp.out): New rule.
43662         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
43663         on $(objpfx)tst-setvbuf1-cmp.out.
43664         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
43665         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
43666         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
43667         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
43668         ($(objpfx)tst-svc.out): Remove rule.
43669         ($(objpfx)tst-svc-cmp.out): New rule.
43670
43671 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
43672
43673         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
43674         * ctype/ctype.h [__USE_MISC]: Likewise.
43675         * dirent/dirent.h [__USE_MISC]: Likewise.
43676         * grp/grp.h [__USE_MISC]: Likewise.
43677         * io/fcntl.h [__USE_MISC]: Likewise.
43678         * io/sys/stat.h [__USE_MISC]: Likewise.
43679         * libio/stdio.h [__USE_MISC]: Likewise.
43680         * posix/unistd.h [__USE_MISC]: Likewise.
43681         * pwd/pwd.h [__USE_MISC]: Likewise.
43682         * stdlib.h [__USE_MISC]: Likewise.
43683         * string/bits/string2.h [__USE_MISC]: Likewise.
43684         * string/string.h [__USE_MISC]: Likewise.
43685         * time/time.h [__USE_MISC]: Likewise.
43686
43687 2014-02-13  Andreas Schwab  <schwab@suse.de>
43688
43689         [BZ #16574]
43690         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
43691         second answer buffer if it was separately allocated.
43692
43693 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
43694
43695         * sysdeps/mips/math-tests.h: Include <features.h>.
43696         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43697         (ROUNDING_TESTS_long_double): Do not define.
43698         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
43699         (EXCEPTION_TESTS_long_double): Likewise.
43700         * sysdeps/mips/mips64/libm-test-ulps: Update.
43701
43702         * include/features.h (__USE_BSD): Remove macro definitions.
43703         (__USE_SVID): Likewise.
43704         (_BSD_SOURCE): Likewise.
43705         (_SVID_SOURCE): Likewise.
43706         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
43707         from definition of _DEFAULT_SOURCE.
43708         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
43709         [_DEFAULT_SOURCE].
43710         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
43711         * bits/mman.h [__USE_BSD]: Likewise.
43712         * bits/termios.h [__USE_BSD]: Likewise.
43713         * bits/waitstatus.h [__USE_BSD]: Likewise.
43714         * ctype/ctype.h [__USE_SVID]: Likewise.
43715         * dirent/dirent.h [__USE_BSD]: Likewise.
43716         * grp/grp.h [__USE_SVID]: Likewise.
43717         [__USE_BSD]: Likewise.
43718         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
43719         * io/fcntl.h [__USE_BSD]: Likewise.
43720         * io/ftw.h [__USE_BSD]: Likewise.
43721         * io/sys/stat.h [__USE_BSD]: Likewise.
43722         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
43723         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
43724         * libio/stdio.h [__USE_SVID]: Likewise.
43725         [__USE_BSD]: Likewise.
43726         * math/math.h [__USE_SVID]: Likewise.
43727         [__USE_BSD]: Likewise.
43728         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
43729         * misc/bits/syslog.h [__USE_BSD]: Likewise.
43730         * misc/search.h [__USE_SVID]: Likewise.
43731         * misc/sys/mman.h [__USE_BSD]: Likewise.
43732         * misc/sys/syslog.h [__USE_BSD]: Likewise.
43733         * misc/sys/uio.h [__USE_BSD]: Likewise.
43734         * posix/bits/unistd.h [__USE_BSD]: Likewise.
43735         * posix/glob.h [__USE_BSD]: Likewise.
43736         * posix/regex.h [__USE_BSD]: Likewise.
43737         * posix/sys/types.h [__USE_BSD]: Likewise.
43738         [__USE_SVID]: Likewise.
43739         * posix/sys/utsname.h [__USE_SVID]: Likewise.
43740         * posix/sys/wait.h [__USE_BSD]: Likewise.
43741         [__USE_SVID]: Likewise.
43742         * posix/unistd.h [__USE_BSD]: Likewise.
43743         [__USE_SVID]: Likewise.
43744         * pwd/pwd.h [__USE_SVID]: Likewise.
43745         * resolv/netdb.h [__USE_BSD]: Likewise.
43746         * setjmp/setjmp.h [__USE_BSD]: Likewise.
43747         * signal/signal.h [__USE_BSD]: Likewise.
43748         [__USE_SVID]: Likewise.
43749         * socket/sys/socket.h [__USE_BSD]: Likewise.
43750         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
43751         * stdlib/stdlib.h [__USE_BSD]: Likewise.
43752         [__USE_SVID]: Likewise.
43753         * string/bits/string2.h [__USE_BSD]: Likewise.
43754         [__USE_SVID]: Likewise.
43755         * string/bits/string3.h [__USE_BSD]: Likewise.
43756         * string/endian.h [__USE_BSD]: Likewise.
43757         * string/string.h [__USE_SVID]: Likewise.
43758         [__USE_BSD]: Likewise.
43759         * string/strings.h [__USE_BSD]: Likewise.
43760         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
43761         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
43762         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
43763         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
43764         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
43765         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
43766         Likewise.
43767         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
43768         Likewise.
43769         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
43770         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
43771         Likewise.
43772         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
43773         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
43774         Likewise.
43775         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
43776         Likewise.
43777         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
43778         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
43779         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
43780         Likewise.
43781         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
43782         Likewise.
43783         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
43784         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
43785         * termios/termios.h [__USE_BSD]: Likewise.
43786         * time/sys/time.h [__USE_BSD]: Likewise.
43787         * time/time.h [__USE_BSD]: Likewise.
43788         [__USE_SVID]: Likewise.
43789
43790         * Makefile (subdir_targets): Remove subdir_lint.out.
43791
43792         * stdio-common/Makefile (do-tst-unbputc): Remove target.
43793         (do-tst-printf): Likewise.
43794         (tests): Depend directly on $(objpfx)tst-unbputc.out and
43795         $(objpfx)tst-printf.out.
43796
43797         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
43798
43799         * Makerules (check-abi-%): Change target to
43800         $(objpfx)check-abi-%.out.
43801         (check-abi target): Update dependencies.
43802         (check-abi-pattern variable): Redirect output of diff to $@.
43803         (check-abi variable): Likewise.
43804         * elf/Makefile (check-abi): Update dependencies.
43805
43806         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
43807         unused.
43808         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
43809         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
43810         subnormal range.
43811         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
43812         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
43813         value has largest subnormal exponent.
43814         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
43815         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
43816         * sysdeps/aarch64/soft-fp/sfp-machine.h
43817         (_FP_TININESS_AFTER_ROUNDING): New macro.
43818         * sysdeps/alpha/soft-fp/sfp-machine.h
43819         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43820         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
43821         Likewise.
43822         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
43823         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43824         * sysdeps/mips/soft-fp/sfp-machine.h
43825         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43826         * sysdeps/powerpc/soft-fp/sfp-machine.h
43827         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43828         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
43829         Likewise.
43830         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
43831         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43832         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
43833         (_FP_TININESS_AFTER_ROUNDING): Likewise.
43834         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
43835         Likewise.
43836
43837 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
43838
43839         [BZ #16545]
43840         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
43841         model 1.
43842
43843 2014-02-12  Richard Henderson  <rth@redhat.com>
43844
43845         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
43846         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
43847         * sysdeps/unix/sysv/linux/alpha: Move directory from
43848         ports/sysdeps/unix/sysv/linux/alpha.
43849         * README: Update listing for alpha-*-linux-gnu.
43850
43851 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
43852
43853         * include/features.h: Update comment documenting feature test
43854         macros.
43855         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
43856         _DEFAULT_SOURCE.
43857         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
43858         (_SVID_SOURCE): Likewise.
43859         (_DEFAULT_SOURCE): Update description of default features.
43860         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
43861         with _GNU_SOURCE.
43862         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
43863         (S_ISVTX): Likewise.
43864         * manual/math.texi (Mathematical Constants): Likewise.
43865         * manual/signal.texi (Interrupted Primitives): Likewise.
43866         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
43867         * math/test-matherr.c (_SVID_SOURCE): Do not define.
43868         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
43869         Don't refer to _SVID_SOURCE in warning text.
43870
43871         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43872
43873         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
43874         already defined.
43875         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
43876         * sysdeps/mips/dl-lookup.c: Remove.
43877         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
43878
43879 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
43880
43881         [BZ #16447]
43882         * math/auto-libm-test-in: Add testcase for expl.
43883         * math/auto-libm-test-out: Regenerate.
43884         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
43885         calculation of unsafe.
43886         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
43887
43888 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
43889
43890         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
43891         * sysdeps/unix/sysv/linux/aarch64: Move directory from
43892         ports/sysdeps/unix/sysv/linux/aarch64.
43893         * README: Update listing for aarch64*-*-linux-gnu.
43894
43895 2014-02-11  Will Newton  <will.newton@linaro.org>
43896
43897         * manual/probes.texi (Mathematical Function Probes): Use
43898         "triggered" instead of "hit".
43899
43900         * manual/probes.texi (Internal Probes): Add documentation
43901         of setjmp, longjmp and longjmp_target probes.
43902
43903         * include/stap-probe.h: Add comment about probe argument
43904         format.
43905
43906         * malloc/mtrace.c (attribute_hidden): Remove unused macro
43907         definition.  (tr_where, tr_freehook, tr_mallochook,
43908         tr_reallochook, tr_memalignhook): Use ANSI protoype.
43909
43910 2014-02-11  David S. Miller  <davem@davemloft.net>
43911
43912         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
43913         processing int_tests.
43914
43915 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
43916
43917         * sysdeps/mips: Move directory from ports/sysdeps/mips.
43918         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
43919         * sysdeps/unix/sysv/linux/mips: Move directory from
43920         ports/sysdeps/unix/sysv/linux/mips.
43921         * README: Update listing for mips-*-linux-gnu and
43922         mips64-*-linux-gnu.
43923
43924 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
43925
43926         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
43927         * sysdeps/unix/sysv/linux/m68k: Move directory from
43928         ports/sysdeps/unix/sysv/linux/m68k.
43929         * README: Update listing for m68k-*-linux-gnu.
43930
43931 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
43932
43933         * sysdeps/tile: Move directory from ports/sysdeps/tile.
43934         * sysdeps/unix/sysv/linux/generic: Move directory from
43935         ports/sysdeps/unix/sysv/linux/generic.
43936         * sysdeps/unix/sysv/linux/tile: Move directory from
43937         ports/sysdeps/unix/sysv/linux/tile.
43938         * README: Update listing for tile*-*-linux-gnu.
43939
43940 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
43941
43942         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
43943         __builtin_expect.
43944         * benchtests/bench-memmem.c (simple_memmem): Likewise.
43945         * catgets/open_catalog.c (__open_catalog): Likewise.
43946         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
43947         * debug/confstr_chk.c: Likewise.
43948         * debug/fread_chk.c (__fread_chk): Likewise.
43949         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
43950         * debug/getgroups_chk.c: Likewise.
43951         * debug/mbsnrtowcs_chk.c: Likewise.
43952         * debug/mbsrtowcs_chk.c: Likewise.
43953         * debug/mbstowcs_chk.c: Likewise.
43954         * debug/memcpy_chk.c: Likewise.
43955         * debug/memmove_chk.c: Likewise.
43956         * debug/mempcpy_chk.c: Likewise.
43957         * debug/memset_chk.c: Likewise.
43958         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
43959         * debug/strcat_chk.c (__strcat_chk): Likewise.
43960         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
43961         * debug/strncat_chk.c (__strncat_chk): Likewise.
43962         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
43963         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
43964         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
43965         * debug/wcpncpy_chk.c: Likewise.
43966         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
43967         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
43968         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
43969         * debug/wcsncpy_chk.c: Likewise.
43970         * debug/wcsnrtombs_chk.c: Likewise.
43971         * debug/wcsrtombs_chk.c: Likewise.
43972         * debug/wcstombs_chk.c: Likewise.
43973         * debug/wmemcpy_chk.c: Likewise.
43974         * debug/wmemmove_chk.c: Likewise.
43975         * debug/wmempcpy_chk.c: Likewise.
43976         * debug/wmemset_chk.c: Likewise.
43977         * dirent/scandirat.c (SCANDIRAT): Likewise.
43978         * dlfcn/dladdr1.c (dladdr1): Likewise.
43979         * dlfcn/dladdr.c (dladdr): Likewise.
43980         * dlfcn/dlclose.c (dlclose_doit): Likewise.
43981         * dlfcn/dlerror.c (__dlerror): Likewise.
43982         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
43983         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
43984         * dlfcn/dlopen.c (dlopen_doit): Likewise.
43985         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
43986         * dlfcn/dlsym.c (dlsym_doit): Likewise.
43987         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
43988         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
43989         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
43990         Likewise.
43991         * elf/dl-conflict.c: Likewise.
43992         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
43993         * elf/dl-dst.h: Likewise.
43994         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
43995         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
43996         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
43997         * elf/dl-init.c (call_init, _dl_init): Likewise.
43998         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
43999         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
44000         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
44001         Likewise.
44002         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
44003         Likewise.
44004         * elf/dl-minimal.c (__libc_memalign): Likewise.
44005         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
44006         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
44007         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
44008         * elf/dl-sym.c (do_sym): Likewise.
44009         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
44010         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
44011         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
44012         * elf/dl-writev.h (_dl_writev): Likewise.
44013         * elf/ldconfig.c (search_dir): Likewise.
44014         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
44015         (dl_main): Likewise.
44016         * elf/setup-vdso.h (setup_vdso): Likewise.
44017         * grp/compat-initgroups.c (compat_call): Likewise.
44018         * grp/fgetgrent.c (fgetgrent): Likewise.
44019         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
44020         * grp/putgrent.c (putgrent): Likewise.
44021         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
44022         Likewise.
44023         * hurd/hurdinit.c: Likewise.
44024         * iconvdata/8bit-gap.c (struct): Likewise.
44025         * iconvdata/ansi_x3.110.c : Likewise.
44026         * iconvdata/big5.c : Likewise.
44027         * iconvdata/big5hkscs.c : Likewise.
44028         * iconvdata/cp1255.c: Likewise.
44029         * iconvdata/cp1258.c : Likewise.
44030         * iconvdata/cp932.c : Likewise.
44031         * iconvdata/euc-cn.c: Likewise.
44032         * iconvdata/euc-jisx0213.c : Likewise.
44033         * iconvdata/euc-jp.c: Likewise.
44034         * iconvdata/euc-jp-ms.c : Likewise.
44035         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
44036         * iconvdata/gb18030.c : Likewise.
44037         * iconvdata/gbbig5.c (const): Likewise.
44038         * iconvdata/gbgbk.c: Likewise.
44039         * iconvdata/gbk.c : Likewise.
44040         * iconvdata/ibm1364.c : Likewise.
44041         * iconvdata/ibm930.c : Likewise.
44042         * iconvdata/ibm932.c: Likewise.
44043         * iconvdata/ibm933.c : Likewise.
44044         * iconvdata/ibm935.c : Likewise.
44045         * iconvdata/ibm937.c : Likewise.
44046         * iconvdata/ibm939.c : Likewise.
44047         * iconvdata/ibm943.c: Likewise.
44048         * iconvdata/iso_11548-1.c: Likewise.
44049         * iconvdata/iso-2022-cn.c : Likewise.
44050         * iconvdata/iso-2022-cn-ext.c : Likewise.
44051         * iconvdata/iso-2022-jp-3.c: Likewise.
44052         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
44053         * iconvdata/iso-2022-kr.c : Likewise.
44054         * iconvdata/iso646.c (gconv_end): Likewise.
44055         * iconvdata/iso_6937-2.c : Likewise.
44056         * iconvdata/iso_6937.c : Likewise.
44057         * iconvdata/iso8859-1.c: Likewise.
44058         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
44059         * iconvdata/shift_jisx0213.c : Likewise.
44060         * iconvdata/sjis.c : Likewise.
44061         * iconvdata/t.61.c : Likewise.
44062         * iconvdata/tcvn5712-1.c : Likewise.
44063         * iconvdata/tscii.c: Likewise.
44064         * iconvdata/uhc.c : Likewise.
44065         * iconvdata/unicode.c (gconv_end): Likewise.
44066         * iconvdata/utf-16.c (gconv_end): Likewise.
44067         * iconvdata/utf-32.c (gconv_end): Likewise.
44068         * iconvdata/utf-7.c (base64): Likewise.
44069         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
44070         * iconv/gconv_close.c (__gconv_close): Likewise.
44071         * iconv/gconv_open.c (__gconv_open): Likewise.
44072         * iconv/gconv_simple.c (internal_ucs4_loop_single)
44073         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
44074         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
44075         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
44076         (ucs4le_internal_loop_single): Likewise.
44077         * iconv/iconv.c (iconv): Likewise.
44078         * iconv/iconv_close.c: Likewise.
44079         * iconv/loop.c (SINGLE): Likewise.
44080         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
44081         * include/atomic.h: Likewise.
44082         * inet/inet6_option.c (option_alloc): Likewise.
44083         * intl/bindtextdom.c (set_binding_values): Likewise.
44084         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
44085         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
44086         * intl/localealias.c (read_alias_file): Likewise.
44087         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
44088         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
44089         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
44090         * libio/fmemopen.c (fmemopen): Likewise.
44091         * libio/iofgets.c (_IO_fgets): Likewise.
44092         * libio/iofgets_u.c (fgets_unlocked): Likewise.
44093         * libio/iofgetws.c (fgetws): Likewise.
44094         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
44095         * libio/iogetdelim.c (_IO_getdelim): Likewise.
44096         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
44097         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
44098         * locale/findlocale.c (_nl_find_locale): Likewise.
44099         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
44100         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
44101         Likewise.
44102         * locale/setlocale.c (setlocale): Likewise.
44103         * login/programs/pt_chown.c (main): Likewise.
44104         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
44105         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
44106         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
44107         (mmap, mmap64, mremap, munmap): Likewise.
44108         * math/e_exp2l.c: Likewise.
44109         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
44110         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
44111         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
44112         * math/s_catan.c (__catan): Likewise.
44113         * math/s_catanf.c (__catanf): Likewise.
44114         * math/s_catanh.c (__catanh): Likewise.
44115         * math/s_catanhf.c (__catanhf): Likewise.
44116         * math/s_catanhl.c (__catanhl): Likewise.
44117         * math/s_catanl.c (__catanl): Likewise.
44118         * math/s_ccosh.c (__ccosh): Likewise.
44119         * math/s_ccoshf.c (__ccoshf): Likewise.
44120         * math/s_ccoshl.c (__ccoshl): Likewise.
44121         * math/s_cexp.c (__cexp): Likewise.
44122         * math/s_cexpf.c (__cexpf): Likewise.
44123         * math/s_cexpl.c (__cexpl): Likewise.
44124         * math/s_clog10.c (__clog10): Likewise.
44125         * math/s_clog10f.c (__clog10f): Likewise.
44126         * math/s_clog10l.c (__clog10l): Likewise.
44127         * math/s_clog.c (__clog): Likewise.
44128         * math/s_clogf.c (__clogf): Likewise.
44129         * math/s_clogl.c (__clogl): Likewise.
44130         * math/s_csin.c (__csin): Likewise.
44131         * math/s_csinf.c (__csinf): Likewise.
44132         * math/s_csinh.c (__csinh): Likewise.
44133         * math/s_csinhf.c (__csinhf): Likewise.
44134         * math/s_csinhl.c (__csinhl): Likewise.
44135         * math/s_csinl.c (__csinl): Likewise.
44136         * math/s_csqrt.c (__csqrt): Likewise.
44137         * math/s_csqrtf.c (__csqrtf): Likewise.
44138         * math/s_csqrtl.c (__csqrtl): Likewise.
44139         * math/s_ctan.c (__ctan): Likewise.
44140         * math/s_ctanf.c (__ctanf): Likewise.
44141         * math/s_ctanh.c (__ctanh): Likewise.
44142         * math/s_ctanhf.c (__ctanhf): Likewise.
44143         * math/s_ctanhl.c (__ctanhl): Likewise.
44144         * math/s_ctanl.c (__ctanl): Likewise.
44145         * math/w_pow.c: Likewise.
44146         * math/w_powf.c: Likewise.
44147         * math/w_powl.c: Likewise.
44148         * math/w_scalb.c (sysv_scalb): Likewise.
44149         * math/w_scalbf.c (sysv_scalbf): Likewise.
44150         * math/w_scalbl.c (sysv_scalbl): Likewise.
44151         * misc/error.c (error_tail): Likewise.
44152         * misc/pselect.c (__pselect): Likewise.
44153         * nis/nis_callback.c (__nis_create_callback): Likewise.
44154         * nis/nis_call.c (__nisfind_server): Likewise.
44155         * nis/nis_creategroup.c (nis_creategroup): Likewise.
44156         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
44157         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
44158         * nis/nis_getservlist.c (nis_getservlist): Likewise.
44159         * nis/nis_lookup.c (nis_lookup): Likewise.
44160         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
44161         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
44162         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
44163         * nis/nis_xdr.c (xdr_endpoint): Likewise.
44164         * nis/nss_compat/compat-grp.c (getgrent_next_file)
44165         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
44166         * nis/nss_compat/compat-initgroups.c (add_group)
44167         (internal_getgrent_r): Likewise.
44168         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
44169         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
44170         * nis/nss_compat/compat-spwd.c (getspent_next_file)
44171         (internal_getspnam_r): Likewise.
44172         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
44173         (_nss_nis_getaliasbyname_r): Likewise.
44174         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
44175         (_nss_nis_getntohost_r): Likewise.
44176         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
44177         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
44178         (_nss_nis_getgrgid_r): Likewise.
44179         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
44180         (internal_nis_gethostent_r, internal_gethostbyname2_r)
44181         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
44182         (_nss_nis_gethostbyname4_r): Likewise.
44183         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
44184         (initgroups_netid): Likewise.
44185         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
44186         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
44187         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
44188         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
44189         (_nss_nis_getprotobynumber_r): Likewise.
44190         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
44191         (_nss_nis_getsecretkey): Likewise.
44192         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
44193         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
44194         (_nss_nis_getpwuid_r): Likewise.
44195         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
44196         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
44197         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
44198         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
44199         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
44200         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
44201         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
44202         Likewise.
44203         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
44204         (_nss_nisplus_getntohost_r): Likewise.
44205         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
44206         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
44207         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
44208         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
44209         Likewise.
44210         * nis/nss_nisplus/nisplus-initgroups.c
44211         (_nss_nisplus_initgroups_dyn): Likewise.
44212         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
44213         (_nss_nisplus_getnetbyaddr_r): Likewise.
44214         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
44215         (_nss_nisplus_getprotobynumber_r): Likewise.
44216         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
44217         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
44218         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
44219         Likewise.
44220         * nis/nss_nisplus/nisplus-service.c
44221         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
44222         (_nss_nisplus_getservbyport_r): Likewise.
44223         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
44224         (_nss_nisplus_getspnam_r): Likewise.
44225         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
44226         Likewise.
44227         * nscd/aicache.c (addhstaiX): Likewise.
44228         * nscd/cache.c (cache_search, prune_cache): Likewise.
44229         * nscd/connections.c (register_traced_file, send_ro_fd)
44230         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
44231         (main_loop_epoll): Likewise.
44232         * nscd/grpcache.c (addgrbyX): Likewise.
44233         * nscd/hstcache.c (addhstbyX): Likewise.
44234         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44235         * nscd/mem.c (gc, mempool_alloc): Likewise.
44236         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
44237         (addinnetgrX): Likewise.
44238         * nscd/nscd-client.h (__nscd_acquire_maplock)
44239         (__nscd_drop_map_ref): Likewise.
44240         * nscd/nscd_getai.c (__nscd_getai): Likewise.
44241         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
44242         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
44243         Likewise.
44244         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
44245         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44246         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
44247         (__nscd_get_map_ref): Likewise.
44248         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
44249         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
44250         Likewise.
44251         * nscd/pwdcache.c (addpwbyX): Likewise.
44252         * nscd/selinux.c (preserve_capabilities): Likewise.
44253         * nscd/servicescache.c (addservbyX): Likewise.
44254         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
44255         * posix/fnmatch.c (fnmatch): Likewise.
44256         * posix/getopt.c (_getopt_internal_r): Likewise.
44257         * posix/glob.c (glob, glob_in_dir): Likewise.
44258         * posix/wordexp.c (exec_comm_child): Likewise.
44259         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
44260         (getanswer_r, gaih_getanswer_slice): Likewise.
44261         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
44262         * resolv/res_init.c: Likewise.
44263         * resolv/res_mkquery.c (res_nmkquery): Likewise.
44264         * resolv/res_query.c (__libc_res_nquery): Likewise.
44265         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
44266         Likewise.
44267         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
44268         * stdio-common/perror.c (perror): Likewise.
44269         * stdio-common/printf_fp.c (___printf_fp): Likewise.
44270         * stdio-common/tmpnam.c (tmpnam): Likewise.
44271         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
44272         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
44273         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
44274         Likewise.
44275         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
44276         * stdlib/putenv.c (putenv): Likewise.
44277         * stdlib/setenv.c (__add_to_environ): Likewise.
44278         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
44279         * stdlib/strtol_l.c (INTERNAL): Likewise.
44280         * string/memmem.c (memmem): Likewise.
44281         * string/strerror.c (strerror): Likewise.
44282         * string/strnlen.c (__strnlen): Likewise.
44283         * string/test-memmem.c (simple_memmem): Likewise.
44284         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
44285         * sunrpc/pm_getport.c (__get_socket): Likewise.
44286         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
44287         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
44288         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
44289         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
44290         Likewise.
44291         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
44292         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
44293         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
44294         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
44295         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
44296         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
44297         Likewise.
44298         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
44299         Likewise.
44300         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
44301         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
44302         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
44303         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
44304         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
44305         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
44306         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
44307         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
44308         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
44309         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
44310         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
44311         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
44312         Likewise.
44313         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
44314         Likewise.
44315         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
44316         Likewise.
44317         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
44318         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
44319         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
44320         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
44321         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
44322         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
44323         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
44324         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
44325         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
44326         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
44327         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
44328         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
44329         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
44330         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
44331         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
44332         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
44333         Likewise.
44334         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
44335         Likewise.
44336         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
44337         Likewise.
44338         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
44339         Likewise.
44340         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
44341         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44342         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
44343         Likewise.
44344         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
44345         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
44346         * sysdeps/posix/opendir.c (__opendirat): Likewise.
44347         * sysdeps/posix/sleep.c: Likewise.
44348         * sysdeps/posix/tempname.c: Likewise.
44349         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
44350         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
44351         Likewise.
44352         * sysdeps/powerpc/powerpc32/dl-machine.h
44353         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
44354         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
44355         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
44356         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
44357         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
44358         Likewise.
44359         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
44360         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
44361         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44362         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
44363         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
44364         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
44365         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
44366         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
44367         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44368         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
44369         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
44370         (elf_machine_lazy_rel): Likewise.
44371         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44372         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
44373         (elf_machine_lazy_rel): Likewise.
44374         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
44375         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
44376         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
44377         * sysdeps/unix/grantpt.c (grantpt): Likewise.
44378         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
44379         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
44380         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
44381         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44382         Likewise.
44383         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
44384         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
44385         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
44386         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
44387         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
44388         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
44389         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
44390         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
44391         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
44392         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
44393         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
44394         Likewise.
44395         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
44396         (__posix_fallocate64_l64): Likewise.
44397         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
44398         (posix_fallocate): Likewise.
44399         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
44400         Likewise.
44401         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44402         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
44403         (getifaddrs_internal): Likewise.
44404         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
44405         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
44406         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
44407         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
44408         * sysdeps/unix/sysv/linux/posix_fallocate64.c
44409         (__posix_fallocate64_l64): Likewise.
44410         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
44411         Likewise.
44412         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
44413         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
44414         (__get_clockfreq): Likewise.
44415         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
44416         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
44417         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
44418         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44419         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44420         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
44421         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
44422         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
44423         Likewise.
44424         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
44425         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
44426         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
44427         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
44428         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
44429         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
44430         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
44431         Likewise.
44432         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
44433         (posix_fallocate): Likewise.
44434         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44435         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
44436         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
44437         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
44438         (elf_machine_rela, elf_machine_rela_relative)
44439         (elf_machine_lazy_rel): Likewise.
44440         * time/asctime.c (asctime_internal): Likewise.
44441         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
44442         * time/tzset.c (__tzset_parse_tz): Likewise.
44443         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
44444         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
44445         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
44446         * wcsmbs/wcsmbsload.h: Likewise.
44447
44448         [BZ #15894]
44449         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
44450
44451         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
44452         (arena_get2): Remove THREAD_STATS conditionals.
44453         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
44454         (__malloc_stats, int): Likewise.
44455
44456 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
44457
44458         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
44459         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
44460
44461         * manual/setjmp.texi: Fix typos/grammar errors.
44462
44463         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
44464         Only return early when n is <= 0.  Delete unused return statement.
44465
44466         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
44467         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
44468         * debug/tst-longjmp_chk3.c: New file.
44469
44470         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
44471         (test_main): Replace code with set_fortify_handler call.
44472         * debug/test-strcpy_chk.c: Likewise.
44473         * debug/tst-chk1.c: Likewise.
44474         * debug/tst-longjmp_chk.c: Likewise.
44475         * test-skeleton.c: Include fcntl.h & paths.h
44476         (set_fortify_handler): Define.
44477
44478         * debug/tst-longjmp_chk.c: Add header comment and include
44479         ../test-skeleton.c.
44480         (do_test): Mark static.
44481         (TEST_FUNCTION): Define.
44482
44483         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
44484         (IP_PMTUDISC_INTERFACE): Likewise.
44485         (IP_MULTICAST_IF): Likewise.
44486         (IP_MULTICAST_TTL): Likewise.
44487         (IP_MULTICAST_LOOP): Likewise.
44488         (IP_ADD_MEMBERSHIP): Likewise.
44489         (IP_DROP_MEMBERSHIP): Likewise.
44490         (IP_UNBLOCK_SOURCE): Likewise.
44491         (IP_BLOCK_SOURCE): Likewise.
44492         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
44493         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
44494         (IP_MSFILTER): Likewise.
44495         (MCAST_JOIN_GROUP): Likewise.
44496         (MCAST_BLOCK_SOURCE): Likewise.
44497         (MCAST_UNBLOCK_SOURCE): Likewise.
44498         (MCAST_LEAVE_GROUP): Likewise.
44499         (MCAST_JOIN_SOURCE_GROUP): Likewise.
44500         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
44501         (MCAST_MSFILTER): Likewise.
44502         (IP_MULTICAST_ALL): Likewise.
44503         (IP_UNICAST_IF): Likewise.
44504
44505         * timezone/Makefile: Delete $(have-ksh) check.
44506         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
44507         * timezone/tzselect.ksh: Add +x mode bits.
44508
44509         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
44510         (ANON_INODE_FS_MAGIC): Likewise.
44511         (BDEVFS_MAGIC): Likewise.
44512         (BINFMTFS_MAGIC): Likewise.
44513         (BTRFS_TEST_MAGIC): Likewise.
44514         (CRAMFS_MAGIC_WEND): Likewise.
44515         (DEBUGFS_MAGIC): Likewise.
44516         (ECRYPTFS_SUPER_MAGIC): Likewise.
44517         (EXT3_SUPER_MAGIC): Likewise.
44518         (EXT4_SUPER_MAGIC): Likewise.
44519         (FUTEXFS_SUPER_MAGIC): Likewise.
44520         (HOSTFS_SUPER_MAGIC): Likewise.
44521         (HUGETLBFS_MAGIC): Likewise.
44522         (MINIX3_SUPER_MAGIC): Likewise.
44523         (MTD_INODE_FS_MAGIC): Likewise.
44524         (NILFS_SUPER_MAGIC): Likewise.
44525         (OPENPROM_SUPER_MAGIC): Likewise.
44526         (PIPEFS_MAGIC): Likewise.
44527         (PSTOREFS_MAGIC): Likewise.
44528         (QNX6_SUPER_MAGIC): Likewise.
44529         (RAMFS_MAGIC): Likewise.
44530         (REISERFS_SUPER_MAGIC_STRING): Likewise.
44531         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
44532         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
44533         (SECURITYFS_MAGIC): Likewise.
44534         (SELINUX_MAGIC): Likewise.
44535         (SMACK_MAGIC): Likewise.
44536         (SOCKFS_MAGIC): Likewise.
44537         (SQUASHFS_MAGIC): Likewise.
44538         (STACK_END_MAGIC): Likewise.
44539         (TMPFS_MAGIC): Likewise.
44540         (USBDEVICE_SUPER_MAGIC): Likewise.
44541         (V9FS_MAGIC): Likewise.
44542         (XENFS_SUPER_MAGIC): Likewise.
44543         (CRAMFS_MAGIC): Fix typo in comment.
44544         (EXT2_SUPER_MAGIC): Update comment.
44545         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
44546
44547 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
44548
44549         * sysdeps/arm: Move directory from ports/sysdeps/arm.
44550         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
44551         * sysdeps/unix/sysv/linux/arm: Move directory from
44552         ports/sysdeps/unix/sysv/linux/arm.
44553         * README: Update listing for arm-*-linux-gnueabi.
44554
44555         * README: Remove mention of am33.
44556
44557 2014-02-07  Roland McGrath  <roland@hack.frob.com>
44558
44559         * bits/sigset.h (__sigemptyset): Use a statement expression rather
44560         than the comma operator, to avoid "rhs of comma has no effect"
44561         compiler warnings.
44562         (__sigfillset, __sigandset, __sigorset): Likewise.
44563         * include/signal.h (__sigemptyset): Likewise.
44564         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
44565
44566 2014-02-07  Allan McRae  <allan@archlinux.org>
44567
44568         * version.h (RELEASE): Set to "development".
44569         (VERSION): Set to "2.19.90"
44570         * NEWS: Add 2.20 section.
44571
44572 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
44573
44574         [BZ #16529]
44575         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
44576
44577 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
44578
44579         * manual/contrib.texi: Update entry for Carlos O'Donell,
44580         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
44581
44582 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
44583
44584         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
44585
44586         * sysdeps/unix/sysv/linux/kernel-features.h
44587         [__LINUX_KERNEL_VERSION >= 0x020621]
44588         (__ASSUME_PROC_PID_TASK_COMM): Define.
44589
44590 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
44591
44592         [BZ #16398]
44593         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
44594         conversion when destination buffer does not have enough space.
44595         * libio/tst-ftell-partial-wide.c: New test case.
44596         * libio/Makefile (tests): Add tst-ftell-partial-wide.
44597
44598         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
44599         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
44600         Leonard and Allan McRae.
44601
44602 2014-02-04  David S. Miller  <davem@davemloft.net>
44603
44604         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
44605         32-bit.
44606
44607 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44608
44609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44610         New file
44611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44612         New file
44613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44614         New file.
44615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44616         New file.
44617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44618         New file.
44619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44620         New file.
44621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44622         New file.
44623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44624         New file.
44625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44626         New file.
44627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44628         New file.
44629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44630         New file.
44631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44632         New file.
44633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44634         New file.
44635
44636 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44637
44638         * nptl/shlib-versions: Change powerpc*le start to 2.17.
44639         * shlib-versions: Likewise.
44640
44641 2014-02-04  Roland McGrath  <roland@hack.frob.com>
44642             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44643
44644         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
44645         (abilist-pattern): New variable, set to %-le.abilist.
44646
44647         * Makerules (abilist-pattern): New variable.
44648         (vpath): Use $(abilist-pattern) in place of %.abilist.
44649         (check-abi-% pattern rule): Likewise.
44650         (check-abi, update-abi): Likewise.
44651
44652 2014-02-04  Eric Wong  <normalperson@yhbt.net>
44653
44654         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44655
44656 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
44657
44658         * manual/startup.texi: Add next, previous, and top entries for
44659         the `Program Arguments' and `Environment Variables' nodes.
44660
44661 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
44662
44663         * manual/macros.texi: Add comments before MTASC-safety macros.
44664
44665         * manual/users.texi: Document MTASC-safety properties.
44666
44667         * manual/threads.texi (pthread_key_create, pthread_key_delete)
44668         (pthread_getspecific, pthread_setspecific): Format with
44669         @deftypefun, and add @safety note.
44670         * manual/signal.texi: Move comments that analyze the above
44671         functions to their home place.
44672
44673 2014-02-03  Allan McRae  <allan@archlinux.org>
44674
44675         * po/sl.po: Update Slovenian translation from translation project.
44676
44677 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
44678
44679         * manual/time.texi (timegm): Add missing blank after @c.
44680         Reported by Joseph Myers <joseph@codesourcery.com>.
44681
44682 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
44683
44684         * manual/check-safety.sh: New.
44685         * manual/Makefile ($(objpfx)stamp-summary): Run it.
44686
44687         * manual/terminal.texi: Document MTASC-safety properties.
44688
44689         * manual/filesys.texi: Document MTASC-safety properties.
44690
44691         * manual/errno.texi: Document MTASC-safety properties.
44692
44693         * manual/intro.texi: Document safety identifiers and
44694         conditionals.
44695
44696         * manual/string.texi (wcstok): Fix prototype.
44697         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
44698
44699         * manual/time.texi: Document MTASC-safety properties.
44700
44701         * manual/string.texi: Document MTASC-safety properties.
44702
44703         * manual/threads.texi: Document MTASC-safety properties.
44704
44705         * manual/stdio.texi: Document MTASC-safety properties.
44706
44707         * manual/syslog.texi: Document MTASC-safety properties.
44708
44709         * manual/sysinfo.texi: Document MTASC-safety properties.
44710
44711         * manual/startup.texi: Document MTASC-safety properties.
44712
44713         * manual/socket.texi: Document MTASC-safety properties.
44714
44715         * manual/signal.texi: Document MTASC-safety properties.
44716
44717 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
44718
44719         * manual/setjmp.texi: Document MTASC-safety properties.
44720
44721         * manual/search.texi: Document MTASC-safety properties.
44722
44723         * manual/resource.texi: Document MTASC-safety properties.
44724
44725         * manual/process.texi: Document MTASC-safety properties.
44726
44727         * manual/platform.texi: Document MTASC-safety properties.
44728
44729         * manual/pipe.texi: Document MTASC-safety properties.
44730
44731         * manual/pattern.texi: Document MTASC-safety properties.
44732
44733         * manual/message.texi: Document MTASC-safety properties.
44734
44735         [BZ #12751]
44736         * manual/memory.texi: Document MTASC-safety properties.
44737
44738         * manual/math.texi: Document MTASC-safety properties.
44739
44740         * manual/locale.texi: Document MTASC-safety properties.
44741
44742         * manual/llio.texi: Document MTASC-safety properties.
44743
44744         * manual/libdl.texi: New.
44745
44746         * manual/lang.texi: Document MTASC-safety properties.
44747
44748         * manual/job.texi: Document MTASC-safety properties.
44749
44750         * manual/getopt.texi: Document MTASC-safety properties.
44751
44752         * manual/ctype.texi: Document MTASC-safety properties.
44753
44754 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
44755
44756         [BZ #16046]
44757         * csu/libc-tls.c (static_map): Remove variable.
44758         (__libc_setup_tls): Use main executable's link map for TLS data.
44759         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
44760         casing for LM_ID_BASE and GL(dl_nns).
44761         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
44762         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
44763         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
44764         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
44765         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
44766         member.
44767         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
44768         l_phnum members.
44769
44770 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
44771
44772         * manual/debug.texi: Document MTASC-safety properties.
44773
44774 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
44775
44776         [BZ #16510]
44777         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
44778         of __x86_64__ when disabling x87 inline functions.
44779
44780 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
44781
44782         * manual/charset.texi: Document MTASC-safety properties.
44783
44784         * manual/crypt.texi: Document MTASC-safety properties.
44785
44786         * manual/conf.texi: Document MTASC-safety properties.
44787
44788         * manual/arith.texi: Document MTASC-safety properties.
44789
44790         * manual/argp.texi: Document MTASC-safety properties.
44791
44792         * manual/macros.texi: Introduce macros to document multi
44793         thread, asynchronous signal and asynchronous cancellation
44794         safety properties.
44795         * manual/intro.texi: Introduce the properties themselves.
44796
44797 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44798
44799         * sysdeps/sh/sh4/Makefile: New file.
44800
44801 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
44802
44803         * math/gen-libm-test.pl ($srcdir): New variable.
44804         ($auto_input): Use it.
44805
44806 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
44807
44808         [BZ #16506]
44809         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
44810         access beyond array bounds when parsing netgroups file.
44811
44812         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
44813         the old buffer before realloc.
44814
44815 2014-01-27  Allan McRae  <allan@archlinux.org>
44816
44817         * po/fr.po: Update French translation from translation project.
44818
44819 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44820
44821         * sysdeps/sh/libm-test-ulps: Regenerate.
44822
44823 2014-01-24  David S. Miller  <davem@davemloft.net>
44824
44825         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
44826
44827 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44828
44829         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
44830         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
44831
44832 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44833
44834         [BZ #16474]
44835         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
44836         string pointers after reallocation.
44837
44838 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44839
44840         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
44841         __SH4A__ instead of __SH_FPU_ANY__.
44842
44843 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44844
44845         * sysdeps/sh/fpu_control.h: New file.
44846         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
44847         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
44848         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
44849         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
44850         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
44851         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
44852         * sysdeps/sh/sys/ucontext.h: Remove.
44853         * sysdeps/sh/sys: Remove directory.
44854
44855 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44856
44857         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
44858         s390/sys/ucontext.h.
44859         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
44860         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
44861
44862 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
44863
44864         [BZ #15605]
44865         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
44866
44867 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44868
44869         [BZ#16431]
44870         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
44871         Adjust the vDSO correctly for internal calls.
44872         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
44873
44874 2014-01-20  Allan McRae  <allan@archlinux.org>
44875
44876         * po/ca.po: Update Catalan translation from translation project.
44877
44878 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
44879
44880         * sysdeps/s390/sotruss-lib.c: New file.
44881
44882 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44883
44884         [BZ#16430]
44885         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
44886         (__GI___gettimeofday): Alias for a different internal symbol to avoid
44887         local calls issues by not having a PLT stub required for IFUNC calls.
44888         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
44889
44890 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
44891
44892         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
44893         * math/test-fpucw-static.c: Likewise.
44894
44895 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
44896
44897         [BZ #16453]
44898         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
44899
44900 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44901
44902         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
44903         implementation for powerpc.
44904
44905 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
44906
44907         [BZ #14782]
44908         * sysdeps/posix/system.c (__libc_system): Do not enable
44909         asynchronous cancellation.
44910
44911 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44912
44913         [BZ #16427]
44914         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
44915         handling only for numbers special also in the IEEE case.
44916
44917 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44918
44919         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
44920
44921 2014-01-11  Allan McRae  <allan@archlinux.org>
44922
44923         * po/bg.po: Update Bulgarian translation from translation project.
44924
44925         * po/de.po: Update German translation from translation project.
44926
44927 2014-01-10  Roland McGrath  <roland@hack.frob.com>
44928
44929         * sysdeps/generic/gcc-compat.h: New file.
44930
44931 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
44932
44933         * benchtests/asin-inputs: Correct slow inputs.
44934         * benchtests/acos-inputs: Likewise.
44935
44936 2014-01-10  Allan McRae  <allan@archlinux.org>
44937
44938         * po:sv.po: Update Swedish translation from translation project.
44939
44940         * po/vi.po: Update Vietnamese translation from translation project.
44941
44942         * po/eo.po: Update Esperanto translation from translation project.
44943
44944         * po/cs.po: Update Czech translation from translation project.
44945
44946         * po/nl.po: Update Dutch translation from translation project.
44947
44948         * po/pl.po: Update Polish translation from translation project.
44949
44950         * po/ru.po: Update Russian translation from translation project.
44951
44952         * po/uk.po: Update Ukrainian translation from translation project.
44953
44954 2014-01-08  Brooks Moses  <bmoses@google.com>
44955
44956         * elf/dl-load.c: Fix comment typo.
44957
44958 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
44959
44960         * po/header.pot: Rename to...
44961         * po/pot.header: ... this.
44962         * po/Makefile: Use pot.header.
44963
44964 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
44965             Maxim Kuvyrkov  <maxim@kugelworks.com>
44966
44967         [BZ #16394]
44968         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
44969         SRC and DEST against LEN.
44970
44971 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44972
44973         [BZ #16414]
44974         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
44975         implementation.
44976         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
44977
44978 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44979
44980         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44981
44982 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
44983
44984         [BZ #16408]
44985         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
44986         for large positive arguments.
44987
44988 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
44989
44990         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
44991
44992         * math/auto-libm-test-in: Mark various tests with
44993         xfail-rounding:ldbl-128ibm.
44994         * math/auto-libm-test-out: Regenerated.
44995
44996         [BZ #16407]
44997         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
44998         Increase overflow threshold.
44999
45000 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
45001
45002         [BZ #14286]
45003         * stdio-common/vfprintf.c: Check for integer overflow.
45004
45005 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45006
45007         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
45008         the first argument and return value of __tls_get_addr_internal.
45009
45010 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45011
45012         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
45013         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
45014
45015 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45016
45017         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
45018         * sysdeps/s390/rtld-global-offsets.sym: New file.
45019         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
45020         GLIBC_2.19 symbol.
45021         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
45022         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
45023         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
45024         ... this.
45025         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
45026         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
45027         ... this.
45028         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45029         Regenerate.
45030         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45031         Regenerate.
45032         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
45033         halfs of GPRs for high_gprs contexts.
45034         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
45035         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
45036         field.
45037         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
45038         uc_flags field.
45039         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
45040         64 bit versions:
45041         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
45042         for high GPRs (uc_high_gprs) and for future extensions
45043         (__reserved).
45044         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
45045         for future extensions (__reserved).
45046         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
45047         64 bit versions:
45048         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
45049         SC_HIGHGPRS offset definition.
45050         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
45051         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
45052
45053         * Versions.def: Add GLIBC_2.19 for libpthread.
45054         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
45055         siglongjmp for libpthread with GLIBC_2.19 symver.
45056         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
45057         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
45058         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
45059         * sysdeps/s390/__longjmp.c: New file.
45060         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
45061         * sysdeps/s390/longjmp.c: New file.
45062         * sysdeps/s390/setjmp.S: New file.
45063         * sysdeps/s390/sigjmp.S: New file.
45064         * sysdeps/s390/v1-longjmp.c: New file.
45065         * sysdeps/s390/v1-setjmp.h: New file.
45066         * sysdeps/s390/v1-sigjmp.c: New file.
45067         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
45068         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
45069         GLIBC_2.19 version.
45070         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
45071         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
45072         versioned symbols for ____longjmp_chk.
45073         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
45074         Likewise.
45075         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
45076         Regenerate.
45077         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45078         Regenerate.
45079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
45080         Regenerate.
45081         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45082         Regenerate.
45083         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
45084         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
45085         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
45086         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
45087         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
45088         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
45089         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
45090         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
45091         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
45092         * sysdeps/s390/rtld-__longjmp.c: New file.
45093         * sysdeps/s390/rtld-setjmp.S: New file.
45094
45095 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
45096
45097         [BZ #16400]
45098         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45099         Return -__logl (x) for small positive arguments without evaluating
45100         a polynomial.
45101
45102 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
45103
45104         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
45105         Rename to ...
45106         (__ptrace_peeksiginfo_args): ... this.
45107         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45108         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45109         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45110
45111 2014-01-06  Allan McRae  <allan@archlinux.org>
45112
45113         * inet/netinet/in.h: Fix typo in comment.
45114
45115 2014-01-05  Andreas Jaeger  <aj@suse.de>
45116
45117         * sysdeps/i386/fpu/libm-test-ulps: Update.
45118
45119 2014-01-05  Allan McRae  <allan@archlinux.org>
45120
45121         * po/libc.pot: Regenerated.
45122
45123         * malloc/memusagestat.c: Fix gettext call formatting.
45124
45125 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
45126
45127         * nscd/nscd.c: Improve usage() output.
45128
45129 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
45130
45131         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
45132         * sysdeps/unix/sysv/linux/configure: Regenerated.
45133         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
45134         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
45135
45136 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45137
45138         [BZ #16390]
45139         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
45140         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
45141
45142 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45143
45144         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
45145         extra tokens at end of #undef directive.
45146         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
45147         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
45148         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
45149
45150 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
45151
45152         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
45153
45154         * math/auto-libm-test-in: Mark various tests with
45155         xfail-rounding:ldbl-128ibm.
45156         * math/auto-libm-test-out: Regenerated.
45157
45158 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
45159
45160         [BZ #16386]
45161         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
45162         numbers with subnormal high part when calculating exponent.
45163
45164         [BZ #16385]
45165         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
45166         fabs.
45167
45168         [BZ #16384]
45169         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
45170         M_LN2l.
45171         (__ieee754_acoshl): Use __log1pl not __log1p.
45172
45173 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
45174
45175         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
45176         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
45177         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
45178         (grow_heap, heap_trim, _int_new_arena, get_free_list)
45179         (reused_arena, arena_get2): Convert to GNU style.
45180         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
45181         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
45182         (memalign_check, __malloc_set_state): Likewise.
45183         * malloc/mallocbug.c (main): Likewise.
45184         * malloc/malloc.c (__malloc_assert, malloc_init_state)
45185         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
45186         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
45187         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
45188         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
45189         (__posix_memalign, malloc_info): Likewise.
45190         * malloc/malloc.h: Likewise.
45191         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
45192         (mallochook, memalignhook, reallochook, mabort): Likewise.
45193         * malloc/mcheck.h: Likewise.
45194         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
45195         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
45196         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
45197         * malloc/morecore.c (__default_morecore): Likewise.
45198         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
45199         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
45200         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
45201         (print_and_abort): Likewise.
45202         * malloc/obstack.h: Likewise.
45203         * malloc/set-freeres.c (__libc_freeres): Likewise.
45204         * malloc/tst-mallocstate.c (main): Likewise.
45205         * malloc/tst-mtrace.c (main): Likewise.
45206         * malloc/tst-realloc.c (do_test): Likewise.
45207
45208 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45209
45210         [BZ #16366]
45211         * nscd/netgroupcache.c (do_notfound): New function.
45212         (addgetnetgrentX): Use it.
45213
45214         [BZ # 16365]
45215         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
45216         NSS_STATUS_NOTFOUND.
45217
45218 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
45219
45220         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45222
45223 2014-01-01  Allan McRae  <allan@archlinux.org>
45224
45225         * scripts/update-copyrights: Update configure input file suffix.
45226
45227         * NEWS: Update copyright year.
45228         * catgets/gencat.c: Likewise.
45229         * csu/version.c: Likewise.
45230         * debug/catchsegv.sh: Likewise.
45231         * debug/pcprofiledump.c: Likewise.
45232         * debug/xtrace.sh: Likewise.
45233         * elf/ldconfig.c: Likewise.
45234         * elf/ldd.bash.in: Likewise.
45235         * elf/pldd.c: Likewise.
45236         * elf/sotruss.ksh: Likewise.
45237         * elf/sprof.c: Likewise.
45238         * iconv/iconv_prog.c: Likewise.
45239         * iconv/iconvconfig.c: Likewise.
45240         * locale/programs/locale.c: Likewise.
45241         * locale/programs/localedef.c: Likewise.
45242         * login/programs/pt_chown.c: Likewise.
45243         * malloc/memusage.sh: Likewise.
45244         * malloc/memusagestat.c: Likewise.
45245         * malloc/mtrace.pl: Likewise.
45246         * manual/libc.texinfo: Likewise.
45247         * nscd/nscd.c: Likewise.
45248         * nss/getent.c: Likewise.
45249         * nss/makedb.c: Likewise.
45250         * posix/getconf.c: Likewise.
45251         * scripts/test-installation.pl: Likewise.
45252
45253         * All files with FSF copyright notices: Update copyright dates
45254         using scripts/update-copyrights.
45255         * intl/plural.c: Regenerated.
45256         * locale/programs/charmap-kw.h: Likewise.
45257         * locale/programs/locfile-kw.h: Likewise.
45258
45259 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
45260
45261         * sysdeps/unix/sysv/linux/configure: Regenerated.
45262         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
45263         the linux/fanotify.h header.
45264         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
45265         HAVE_LINUX_FANOTIFY_H is defined.
45266
45267 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
45268
45269         * benchtests/cos-inputs: New inputs.
45270         * benchtests/sin-inputs: Likewise.
45271
45272         * benchtests/atan-inputs: New inputs. Fix name of multiple
45273         precision fallback inputs.
45274
45275         * benchtests/atanh-inputs: New inputs.
45276         * benchtests/tanh-inputs: Likewise.
45277
45278         * benchtests/acosh-inputs: New inputs.
45279         * benchtests/asinh-inputs: Likewise.
45280
45281         * benchtests/cosh-inputs: New inputs.
45282         * benchtests/sinh-inputs: Likewise.
45283
45284         * benchtests/acos-inputs: Add more inputs.
45285         * benchtests/asin-inputs: Likewise.
45286
45287 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
45288
45289         [BZ #16375]
45290         * manual/arith.texi: Fix spelling.
45291         * manual/charset.texi: Likewise.
45292         * manual/errno.texi: Likewise.
45293         * manual/filesys.texi: Likewise.
45294         * manual/lang.texi: Likewise.
45295         * manual/llio.texi: Likewise.
45296         * manual/locale.texi: Likewise.
45297         * manual/message.texi: Likewise.
45298         * manual/resource.texi: Likewise.
45299         * manual/search.texi: Likewise.
45300         * manual/setjmp.texi: Likewise.
45301         * manual/stdio.texi: Likewise.
45302         * manual/string.texi: Likewise.
45303         * manual/sysinfo.texi: Likewise.
45304         * manual/time.texi: Likewise.
45305
45306 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
45307
45308         * po/sl.po: New file.
45309
45310 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
45311
45312         * .gitignore: Add core/.gdbinit/.gdb_history.
45313
45314 2013-12-27  Allan McRae  <allan@archlinux.org>
45315
45316         [BZ #16369]
45317         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
45318         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
45319
45320 2013-12-24  Brooks Moses  <bmoses@google.com>
45321
45322         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
45323         all compilers that claim C++98 compliance, not just GCC.
45324         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
45325         Likewise.
45326
45327 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45328
45329         * NEWS: Restore accidentally deleted bug-fix entries.
45330
45331 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
45332             Ondřej Bílka  <neleai@seznam.cz>
45333
45334         [BZ #15073]
45335         * malloc/malloc.c (_int_free): Perform sanity check only if we
45336         have_lock.
45337
45338 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
45339
45340         [BZ #12986]
45341         * manual/stdio.texi (String Input Conversions): Clarify that character
45342         classes are not supported.
45343
45344 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45345
45346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45347
45348 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
45349
45350         [BZ #16337]
45351         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
45352         Calculate results for small negative arguments directly rather
45353         than using reflection formula with special underflow handling.
45354
45355         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
45356         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
45357         sysdeps/unix/bsd/bsd4.4/syscalls.list.
45358         (fchflags): Likewise.
45359         (revoke): Likewise.
45360         (setlogin): Likewise.
45361         (sigaltstack): Likewise.
45362         (wait4): Likewise.
45363         (sigblock): Remove.
45364         (sigsetmask): Likewise.
45365         (wait3): Likewise.
45366         (waitpid): Likewise.
45367         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
45368         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
45369         file.
45370         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
45371         * sysdeps/unix/bsd/Makefile: ... here.
45372         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
45373         * sysdeps/unix/bsd/Versions: ... here.
45374         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
45375         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
45376         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
45377         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
45378         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
45379         * sysdeps/unix/bsd/sigblock.c: ... here.
45380         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
45381         * sysdeps/unix/bsd/sigsetmask.c: ... here.
45382         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
45383         * sysdeps/unix/bsd/sigvec.c: ... here.
45384         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
45385         * sysdeps/unix/bsd/tcdrain.c: ... here.
45386         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
45387         * sysdeps/unix/bsd/tcgetattr.c: ... here.
45388         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
45389         * sysdeps/unix/bsd/tcsetattr.c: ... here.
45390         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
45391         * sysdeps/unix/bsd/wait.c: ... here.
45392         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
45393         * sysdeps/unix/bsd/wait3.c: ... here.
45394         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
45395         * sysdeps/unix/bsd/waitpid.c: ... here.
45396
45397 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
45398
45399         [BZ #16356]
45400         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
45401         round-to-nearest for [!USE_AS_EXPM1L].
45402         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
45403         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
45404         more tests of exp and exp10.  Expect some exp10 tests to miss
45405         exceptions or fail in directed rounding modes.
45406         * math/auto-libm-test-out: Regenerated.
45407         * math/libm-test.inc (exp10_tonearest_test_data): New array.
45408         (exp10_test_tonearest): New function.
45409         (exp10_towardzero_test_data): New array.
45410         (exp10_test_towardzero): New function.
45411         (exp10_downward_test_data): New array.
45412         (exp10_test_downward): New function.
45413         (exp10_upward_test_data): New array.
45414         (exp10_test_upward): New function.
45415         (main): Call the new functions.
45416         * sysdeps/i386/fpu/libm-test-ulps: Update.
45417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45418
45419 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
45420
45421         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
45422         asinh, atan, atan2, atanh, cbrt, cos and cosh.
45423         * math/auto-libm-test-out: Regenerated.
45424         * math/libm-test.inc (acosh_test_data): Add more tests.
45425         (atanh_test_data): Likewise.
45426         (ceil_test_data): Likewise.
45427         (copysign_test_data): Likewise.
45428         * sysdeps/i386/fpu/libm-test-ulps: Update.
45429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45430
45431         * timezone/checktab.awk: Update from tzcode 2013i.
45432         * timezone/private.h: Likewise.
45433         * timezone/scheck.c: Likewise.
45434         * timezone/tzfile.h: Likewise.
45435         * timezone/tzselect.ksh: Likewise.
45436         * timezone/zdump.c: Likewise.
45437         * timezone/zic.c: Likewise.
45438
45439         * math/auto-libm-test-in: Add tests of cpow.
45440         * math/auto-libm-test-out: Regenerated.
45441         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
45442         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45443         mpc_cc_c.
45444         (func_calc_desc): Add mpc_cc_c union field.
45445         (test_functions): Add cpow.
45446         (special_fill_2pi): New function.
45447         (special_real_inputs): Add 2pi.
45448         (calc_generic_results): Handle mpc_cc_c.
45449         * sysdeps/i386/fpu/libm-test-ulps: Update.
45450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45451
45452         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
45453         csqrt, ctan and ctanh.
45454         * math/auto-libm-test-out: Regenerated.
45455         * math/libm-test.inc (TEST_COND_x86_64): New macro.
45456         (TEST_COND_x86): Likewise.
45457         (ccos_test_data): Use AUTO_TESTS_c_c.
45458         (ccosh_test_data): Likewise.
45459         (cexp_test_data): Likewise.
45460         (clog_test_data): Likewise.
45461         (csqrt_test_data): Likewise.
45462         (ctan_test_data): Likewise.
45463         (ctan_tonearest_test_data): Likewise.
45464         (ctan_towardzero_test_data): Likewise.
45465         (ctan_downward_test_data): Likewise.
45466         (ctan_upward_test_data): Likewise.
45467         (ctanh_test_data): Likewise.
45468         (ctanh_tonearest_test_data): Likewise.
45469         (ctanh_towardzero_test_data): Likewise.
45470         (ctanh_downward_test_data): Likewise.
45471         (ctanh_upward_test_data): Likewise.
45472         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45473         mpc_c_c.
45474         (func_calc_desc): Add mpc_c_c union field.
45475         (FUNC_mpc_c_c): New macro.
45476         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
45477         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
45478         ctanh.
45479         (special_fill_min_subnorm_p120): New function.
45480         (special_real_inputs): Add min_subnorm_p120.
45481         (calc_generic_results): Handle mpc_c_c.
45482         * sysdeps/i386/fpu/libm-test-ulps: Update.
45483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45484
45485 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45486
45487         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
45488         (do_sin_slow): New functions.
45489         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
45490         (cslow2, csloww1, csloww2): Use the new functions.
45491
45492         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
45493         Use M to change sign of result instead of X.  Assume X is
45494         positive.
45495         (csloww1): Likewise.
45496         (__sin): Adjust.
45497         (__cos): Adjust.
45498
45499         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
45500         arguments A and DA.
45501         (__sin): Adjust.
45502         (__cos): Likewise.
45503
45504         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
45505         (__cos): Likewise.
45506         (sloww1): Don't adjust sign of DX.
45507         (csloww1): Likewise.
45508         (sloww2): Use X directly and don't adjust sign of DX.
45509         (csloww2): Likewise.
45510
45511 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45512
45513         * math/auto-libm-test-in: Add tests of cabs and carg.
45514         * math/auto-libm-test-out: Regenerated.
45515         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
45516         (carg_test_data): Likewise.
45517         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45518         mpc_c_f.
45519         (func_calc_desc): Add mpc_c_f union field.
45520         (test_functions): Add cabs and carg.
45521         (calc_generic_results): Handle mpc_c_f.
45522
45523         * sysdeps/powerpc/powerpc32/libgcc-compat.S
45524         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
45525         as a macro and a compat symbol.
45526         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
45527         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
45528         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
45529         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
45530         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
45531         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
45532         not use .hidden.
45533         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
45534         Likewise.
45535         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
45536         Likewise.
45537         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
45538         Likewise.
45539         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
45540         Likewise.
45541         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
45542         Likewise.
45543         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
45544         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
45545         from GLIBC_2.3.2.
45546
45547 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45548
45549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45550
45551 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45552
45553         * manual/texinfo.tex: Update to version 2013-11-26.10 with
45554         trailing whitespace removed.
45555         * scripts/config.guess: Update to version 2013-11-29.
45556         * scripts/config.sub: Update to version 2013-10-01.
45557
45558         * math/auto-libm-test-in: Add tests of sincos.
45559         * math/auto-libm-test-out: Regenerated.
45560         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
45561         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45562         mpfr_f_11.
45563         (func_calc_desc): Add mpfr_f_11 union field.
45564         (test_functions): Add sincos.
45565         (calc_generic_results): Handle mpfr_f_11.
45566         * sysdeps/i386/fpu/libm-test-ulps: Update.
45567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45568
45569 2013-12-19  Andreas Schwab  <schwab@suse.de>
45570
45571         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
45572         CALL_MCOUNT.
45573         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
45574         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
45575         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
45576
45577 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
45578
45579         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
45580         * sysdeps/i386/fpu/libm-test-ulps: Update.
45581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45582
45583         [BZ #16293]
45584         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
45585         round-to-nearest mode when using frndint.
45586         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
45587         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
45588         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
45589         Likewise.
45590         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
45591         sinh test to fail.
45592         * math/auto-libm-test-out: Regenerated.
45593         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
45594         (TEST_COND_x86): Likewise.
45595         (expm1_tonearest_test_data): New array.
45596         (expm1_test_tonearest): New function.
45597         (expm1_towardzero_test_data): New array.
45598         (expm1_test_towardzero): New function.
45599         (expm1_downward_test_data): New array.
45600         (expm1_test_downward): New function.
45601         (expm1_upward_test_data): New array.
45602         (expm1_test_upward): New function.
45603         (main): Run the new test functions.
45604         * sysdeps/i386/fpu/libm-test-ulps: Update.
45605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45606
45607         * include/features.h: Update comment documenting feature test
45608         macros.  Mention _DEFAULT_SOURCE in comment.
45609         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
45610         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
45611         _BSD_SOURCE and _SVID_SOURCE.
45612         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
45613         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
45614         !_SVID_SOURCE]: Likewise.
45615         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45616         (__USE_POSIX_IMPLICITLY): Define.
45617         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45618         (_POSIX_SOURCE): Undefine and redefine.
45619         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
45620         (_POSIX_C_SOURCE): Likewise.
45621         * manual/creature.texi (_DEFAULT_SOURCE): Document.
45622         (Feature Test Macros): Update documentation of default features.
45623
45624 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
45625
45626         * benchtests/Makefile: Add bench-strtok.
45627         * benchtests/bench-strtok.c: New file: strtok benchtest.
45628
45629 2013-12-19  Allan McRae  <allan@archlinux.org>
45630
45631         * manual/install.texi: Suppress menu for plain text output.
45632         * INSTALL: Regenerated.
45633
45634 2013-12-18  Brooks Moses  <bmoses@google.com>
45635
45636         [BZ #15846]
45637         * misc/getauxval.c: Include errno.h.
45638         (__getauxval): Set errno to ENOENT if the requested type is not
45639         found.
45640         * misc/sys/auxv.h (getauxval): Document that it may set errno;
45641         don't declare with __attribute_const__.
45642         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
45643         * manual/startup.texi: Document that getauxval sets errno.
45644
45645 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45646
45647         * math/auto-libm-test-in: Add tests of jn and yn.
45648         * math/auto-libm-test-out: Regenerated.
45649         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
45650         (yn_test_data): Likewise.
45651         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45652         mpfr_if_f.
45653         (func_calc_desc): Add mpfr_if_f union field.
45654         (FUNC_mpfr_if_f): New macro.
45655         (test_functions): Add jn and yn.
45656         (calc_generic_results): Assert type of second input for
45657         mpfr_ff_f.  Handle mpfr_if_f.
45658         (output_for_one_input_case): Disable all checking for arguments
45659         fitting floating-point types in case of an integer argument.
45660         * sysdeps/i386/fpu/libm-test-ulps: Update.
45661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45662
45663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
45664         Don't expect fegetround reference in libm.so.
45665
45666 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45667
45668         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
45669         $(config-cflags-nofma).
45670
45671 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
45672
45673         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
45674         * math/auto-libm-test-out: Regenerated.
45675
45676         [BZ #16338]
45677         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
45678         to determine exponent and adjust argument to have exponent of -1.
45679         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
45680         log2.
45681         * math/auto-libm-test-out: Regenerated.
45682         * sysdeps/i386/fpu/libm-test-ulps: Update.
45683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45684
45685 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
45686
45687         * manual/probes.texi: Remove cases when per-thread arenas are
45688         disabled.
45689
45690 2013-12-18  Andreas Schwab  <schwab@suse.de>
45691
45692         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
45693         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
45694         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
45695         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
45696         * sysdeps/i386/i686/multiarch/Makefile: Update.
45697         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
45698
45699 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45700
45701         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
45702         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
45703
45704 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
45705
45706         [BZ #15968]
45707         Support TZ transition times < 00:00:00.
45708         This is needed for version-3 tz-format files; it supports time
45709         stamps past 2037 for America/Godthab (the only entry in the tz
45710         database for which this change is relevant).
45711         * manual/time.texi (TZ Variable): Document transition times
45712         from -167:59:59 through -00:00:01.
45713         * time/tzset.c (tz_rule): Time of day is now signed.
45714         (__tzset_parse_tz): Parse negative time of day.
45715
45716         Document TZ transition times >= 25:00:00.
45717         * manual/time.texi (TZ Variable): Document transition times from
45718         25:00:00 through 167:59:59.  These are already supported, and this
45719         support will help with version-3 tz-format files.
45720
45721         * manual/time.texi (TZ Variable): Modernize North America example
45722         to reflect current (i.e., 2007-and-later) daylight saving rules.
45723
45724         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
45725
45726 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45727
45728         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
45729         * sysdeps/unix/bsd/bits/stat.h: Likewise.
45730         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
45731         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
45732         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
45733         * sysdeps/unix/bsd/bsdstat.h: Likewise.
45734         * sysdeps/unix/bsd/clock.c: Likewise.
45735         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
45736         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
45737         * sysdeps/unix/bsd/init-posix.c: Likewise.
45738         * sysdeps/unix/bsd/poll.c: Likewise.
45739         * sysdeps/unix/bsd/ptsname.c: Likewise.
45740         * sysdeps/unix/bsd/seekdir.c: Likewise.
45741         * sysdeps/unix/bsd/setegid.c: Likewise.
45742         * sysdeps/unix/bsd/seteuid.c: Likewise.
45743         * sysdeps/unix/bsd/setgid.c: Likewise.
45744         * sysdeps/unix/bsd/setrgid.c: Likewise.
45745         * sysdeps/unix/bsd/setruid.c: Likewise.
45746         * sysdeps/unix/bsd/setsid.c: Likewise.
45747         * sysdeps/unix/bsd/setuid.c: Likewise.
45748         * sysdeps/unix/bsd/sigaction.c: Likewise.
45749         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
45750         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
45751         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
45752         * sysdeps/unix/bsd/telldir.c: Likewise.
45753         * sysdeps/unix/bsd/times.c: Likewise.
45754         * sysdeps/unix/bsd/usleep.c: Likewise.
45755
45756         * misc/Makefile (install-lib): Remove libbsd-compat.a.
45757         ($(objpfx)libbsd-compat.a): Remove rule.
45758
45759         * include/features.h (__FAVOR_BSD): Do not define.
45760         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
45761         features conflicting with POSIX.
45762         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
45763         (_BSD_SOURCE): Remove description of not being a subset of other
45764         feature test macros.
45765         * manual/job.texi (getpgrp): Do not document BSD version.
45766         (getpgid): Do not document by reference to BSD getpgrp.
45767         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
45768         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
45769         * signal/signal.h [__FAVOR_BSD]: Likewise.
45770         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
45771         instead of making contents conditional on [__FAVOR_BSD].
45772         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
45773
45774 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45775
45776         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45777
45778 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
45779
45780         [BZ #16314]
45781         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
45782         values below 2**-450, not 2**-500.
45783         * math/auto-libm-test-in: Don't allow spurious underflow from
45784         hypot.
45785         * math/auto-libm-test-out: Regenerated.
45786
45787         [BZ #16316]
45788         [BZ #16330]
45789         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
45790         values of ha and hb and sort them after adjusting subnormal
45791         arguments.
45792         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
45793         Likewise.
45794         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
45795         values of ea and eb and sort them after adjusting subnormal
45796         arguments.
45797         * math/auto-libm-test-in: Do not expect some hypot tests of
45798         subnormals to fail.  Add more hypot tests.
45799         * math/auto-libm-test-out: Regenerated.
45800
45801 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45802
45803         [BZ #13304]
45804         * sysdeps/sh/s_fma.c: New file.
45805         * sysdeps/sh/s_fmaf.c: New file.
45806         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
45807         version.
45808         * sysdeps/sh/Implies: Add sh/soft-fp.
45809
45810 2013-12-16  Roland McGrath  <roland@hack.frob.com>
45811
45812         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
45813         level of indirection to members `objname', `errstring', `malloced'.
45814         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
45815         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
45816         it as the __longjmp argument (just pass 1 instead).
45817         (_dl_catch_error): Initialize C with argument pointers and address of
45818         volatile local ERRCODE rather than copying values out of C at return.
45819
45820 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
45821
45822         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
45823         * math/auto-libm-test-out: Regenerated.
45824         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
45825         (hypot_test_data): Likewise.
45826         (pow_test_data): Likewise.
45827         (pow_tonearest_test_data): Likewise.
45828         * math/gen-auto-libm-tests.c (func_calc_method): Add value
45829         mpfr_ff_f.
45830         (func_calc_desc): Add mpfr_ff_f union field.
45831         (FUNC_mpfr_ff_f): New macro.
45832         (test_functions): Add atan2, hypot and pow.
45833         (special_fill_min): New function.
45834         (special_fill_minus_min): Likewise.
45835         (special_fill_min_subnorm): Likewise.
45836         (special_fill_minus_min_subnorm): Likewise.
45837         (special_real_inputs): Add min, -min, min_subnorm and
45838         -min_subnorm.
45839         (calc_generic_results): Handle mpfr_ff_f.
45840         * sysdeps/i386/fpu/libm-test-ulps: Update.
45841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45842
45843 2013-12-16  Will Newton  <will.newton@linaro.org>
45844
45845         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
45846         (Aligned Memory Blocks): Add documentation for aligned_alloc
45847         and suggest it as an alternative to posix_memalign.
45848         (Hooks for Malloc): Document __memalign_hook is also called
45849         for aligned_alloc.  (Summary of Malloc): Add summary for
45850         aligned alloc.  Document __memalign_hook is also called
45851         for aligned_alloc.
45852
45853 2013-12-16  Will Newton  <will.newton@linaro.org>
45854
45855         * manual/memory.texi (Malloc Examples): Clarify default
45856         alignment documentation.  Suggest posix_memalign rather
45857         than memalign or valloc.
45858         (Aligned Memory Blocks): Remove suggestion to use memalign
45859         or valloc.  Remove obsolete comment about BSD.
45860         Document memalign errno values and mark the function obsolete.
45861         Document posix_memalign returned error codes.  Mark valloc
45862         as obsolete.  (Hooks for Malloc): __memalign_hook is also
45863         called for posix_memalign and valloc.
45864         (Summary of Malloc): Add posix_memalign to function summary.
45865         __memalign_hook is also called for posix_memalign and valloc.
45866
45867 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
45868
45869         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
45870         TAYLOR_SIN.
45871         (__sin): Adjust.
45872         (__cos): Likewise.
45873         (sloww): Use mynumber union.  Expand ternary operator into
45874         if-else statements.
45875         (cslow): use mynumber union.
45876
45877 2013-12-16  Allan McRae  <allan@archlinux.org>
45878
45879         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
45880         * configure: Regenerated.
45881
45882         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
45883
45884         [BZ #14120]
45885         * configure.ac: Added --enable-maintainer-mode. Check for
45886         autoconf when enabled.
45887         * configure: Regenerated.
45888
45889         * nscd/nscd.service: New file.
45890         * nscd/nscd.tmpfiles: New file.
45891
45892 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
45893
45894         [BZ #12100]
45895         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
45896         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
45897         * sysdeps/x86_64/multiarch/strstr.c: ... here.
45898         (strstr): Add __strstr_sse2_unaligned ifunc.
45899         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
45900         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
45901         (strcasestr): Remove __strcasestr_sse42 ifunc.
45902         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
45903         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
45904         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
45905
45906 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45907
45908         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
45909         * sysdeps/sh/bits/fenv.h: ... here.
45910         * sysdeps/sh/sh4/fpu/bits: Remove directory.
45911
45912 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45913
45914         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
45915
45916         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
45917         hypotf multiarch implementations.
45918         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
45919         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
45920         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
45921         multiarch hypot for PPC64.
45922         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
45923         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
45924         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
45925         multiarch hypotf for PPC64.
45926
45927         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
45928         modff multiarch implementations.
45929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
45930         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
45931         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
45932         multiarch modf for PPC64.
45933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
45934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
45935         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
45936         multiarch modff for PPC64.
45937
45938         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
45939         and logl multiarch implementations.
45940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
45941         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
45942         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
45943         multiarch logb for PPC64.
45944         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
45945         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
45946         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
45947         multiarch logb for PPC64.
45948         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
45949         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
45950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
45951         multiarch logb for PPC64.
45952
45953         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
45954         isinff multiarch implementation.
45955         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
45956         file.
45957         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
45958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
45959         multiarch isinf for PPC64.
45960         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
45961         file.
45962         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
45963         multiarch isinff for PPC64.
45964
45965         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
45966         finitef multiarch implementation.
45967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
45968         file.
45969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
45970         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
45971         multiarch finite for PPC64.
45972         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
45973         file.
45974         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
45975         multiarch finitef for PPC64.
45976
45977         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
45978         lrint multiarch implementation.
45979         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
45980         file.
45981         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
45982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
45983         multiarch llrint for PPC64.
45984         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
45985         multiarch lrint for PPC64.
45986
45987         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
45988         copysignf multiarch implementation.
45989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
45990         file.
45991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
45992         file.
45993         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
45994         multiarch copysign for PPC64.
45995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
45996         multiarch copysignf for PPC64.
45997
45998         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
45999         multiarch implementation.
46000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
46001         file.
46002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
46003         file.
46004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
46005         file.
46006         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
46007         file.
46008         multiarch llround for PPC64.
46009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
46010         multiarch trunc for PPC64.
46011         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
46012         multiarch truncf for PPC64.
46013
46014         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
46015         multiarch implementation.
46016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
46017         file.
46018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
46019         file.
46020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
46021         file.
46022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
46023         file.
46024         multiarch llround for PPC64.
46025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
46026         multiarch round for PPC64.
46027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
46028         multiarch roundf for PPC64.
46029
46030         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
46031         multiarch implementation.
46032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
46033         file.
46034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
46035         file.
46036         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
46037         file.
46038         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
46039         file.
46040         multiarch llround for PPC64.
46041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
46042         multiarch floor for PPC64.
46043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
46044         multiarch floorf for PPC64.
46045
46046         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
46047         multiarch implementation.
46048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
46049         file.
46050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
46051         file.
46052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
46053         file.
46054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
46055         file.
46056         multiarch llround for PPC64.
46057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
46058         multiarch ceil for PPC64.
46059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
46060         multiarch ceilf for PPC64.
46061
46062         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
46063         multiarch implementation.
46064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
46065         file.
46066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
46067         file.
46068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
46069         file.
46070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
46071         multiarch llround for PPC64.
46072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
46073         multiarch lround for PPC64.
46074
46075         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
46076         multiarch implementation.
46077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
46078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
46079         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
46080         file.
46081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
46082         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
46083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
46084         multiarch isnan for PPC64.
46085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
46086         multiarch isnanf for PPC64.
46087
46088         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
46089         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
46090         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
46091         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
46092         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
46093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
46094
46095         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
46096         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
46097         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46098         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46099
46100         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
46101         multiarch implementations.
46102         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46103         (__libc_ifunc_impl_list): Likewise.
46104         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
46105         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
46106         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
46107         multiarch stpcpy for PPC64.
46108
46109         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
46110         multiarch implementations.
46111         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46112         (__libc_ifunc_impl_list): Likewise.
46113         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
46114         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
46115         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
46116         multiarch strcpy for PPC64.
46117
46118         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
46119         redefine function name.
46120         (_wordcopy_fwd_dest_aligned): Likewise.
46121         (_wordcopy_bwd_aligned): Likewise.
46122         (_wordcopy_bwd_dest_aligned): Likewise.
46123         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
46124         multiarch implementations.
46125         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46126         (__libc_ifunc_impl_list): Likewise.
46127         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
46128         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
46129         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
46130         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
46131         multiarch wcscpy for PPC64.
46132
46133         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
46134         multiarch implementations.
46135         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46136         (__libc_ifunc_impl_list): Likewise.
46137         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
46138         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
46139         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
46140         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
46141         multiarch wcscpy for PPC64.
46142
46143         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
46144         multiarch implementations.
46145         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46146         (__libc_ifunc_impl_list): Likewise.
46147         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
46148         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
46149         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
46150         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
46151         multiarch wcsrchr for PPC64.
46152
46153         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
46154         multiarch implementations.
46155         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46156         (__libc_ifunc_impl_list): Likewise.
46157         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
46158         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
46159         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
46160         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
46161         multiarch wcschr for PPC64.
46162
46163         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
46164         multiarch implementations.
46165         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46166         (__libc_ifunc_impl_list): Likewise.
46167         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
46168         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
46169         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
46170         multiarch strchrnul for PPC64.
46171
46172         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
46173         implementations.
46174         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46175         (__libc_ifunc_impl_list): Likewise.
46176         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
46177         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
46178         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
46179         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
46180         strchr for PPC64.
46181
46182         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
46183         implementations.
46184         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46185         (__libc_ifunc_impl_list): Likewise.
46186         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
46187         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
46188         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
46189         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
46190         strncmp for PPC64.
46191
46192         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
46193         multiarch implementations.
46194         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46195         (__libc_ifunc_impl_list): Likewise.
46196         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
46197         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
46198         strncasecmp for PPC64.
46199         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
46200         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
46201         multiarch strncasecmp_l for PPC64.
46202
46203         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
46204         multiarch implementations.
46205         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
46206         (__libc_ifunc_impl_list): Likewise.
46207         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
46208         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
46209         multiarch strcasecmp for PPC64.
46210         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
46211         file.
46212         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
46213         multiarch strcasecmp_l for PPC64.
46214
46215         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
46216         implementations.
46217         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46218         (__libc_ifunc_impl_list): Likewise.
46219         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
46220         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
46221         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
46222         strnlen for PPC64.
46223
46224         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
46225         implementations.
46226         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46227         (__libc_ifunc_impl_list): Likewise.
46228         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
46229         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
46230         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
46231         strlen for PPC64.
46232
46233         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
46234         implementations.
46235         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46236         (__libc_ifunc_impl_list): Likewise.
46237         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
46238         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
46239         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
46240         rawmemrchr for PPC64.
46241
46242         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
46243         implementation.
46244         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46245         (__libc_ifunc_impl_list): Likewise.
46246         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
46247         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
46248         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
46249         memrchr for PPC64.
46250
46251         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
46252         implementation.
46253         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46254         (__libc_ifunc_impl_list): Likewise.
46255         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
46256         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
46257         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
46258         memchr for PPC64.
46259
46260         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
46261         implementation.
46262         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46263         (__libc_ifunc_impl_list): Likewise.
46264         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
46265         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
46266         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
46267         mempcpy for PPC64.
46268
46269         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
46270         avoid cretion of __bzero symbol.
46271         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
46272         Likewise.
46273         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
46274         Likewise.
46275         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
46276         Likewise.
46277         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
46278         multiarch implementations.
46279         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46280         (__libc_ifunc_impl_list): Likewise.
46281         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
46282         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
46283         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
46284         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
46285         bzero for PPC32.
46286         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
46287         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
46288         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
46289         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
46290         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
46291         memset for PPC64.
46292         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
46293
46294         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
46295         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
46296         implementations.
46297         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
46298         (__libc_ifunc_impl_list): Likewise.
46299         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
46300         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
46301         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
46302         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
46303         memcmp for PPC64.
46304
46305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
46306         multiarch for POWER/PPC64.
46307         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
46308         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
46309         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
46310         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
46311         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
46312         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
46313         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
46314         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
46315         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
46316         memcpy for PPC64.
46317
46318         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
46319         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
46320         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
46321         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
46322         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
46323         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
46324         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
46325         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
46326         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
46327         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
46328         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
46329         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
46330         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
46331         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
46332         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
46333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
46334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
46335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
46336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
46337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
46338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
46339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
46340
46341 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46342
46343         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
46344
46345 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
46346
46347         * benchtests/Makefile (bench): Add exp2 and log2.
46348         (LDLIBS-bench-exp2): Add -lm.
46349         (LDLIBS-bench-log2): Likewise.
46350         * benchtests/exp2-inputs: New inputs file.
46351         * benchtests/log2-inputs: New inputs file.
46352         * benchtests/log-inputs: Add new inputs.
46353         * benchtests/tan-inputs: Likewise.
46354
46355 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46356
46357         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
46358         definition...
46359         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
46360         (csloww2): ... from here.
46361
46362         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
46363         instead of structures.
46364         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
46365         (POLYNOMIAL): Likewise.
46366         (TAYLOR_SLOW): Likewise.
46367         (__sin): Likewise.
46368         (__cos): Likewise.
46369         (slow1): Likewise.
46370         (slow2): Likewise.
46371         (sloww): Likewise.
46372         (sloww1); Likewise.
46373         (sloww2): Likewise.
46374         (bsloww1): Likewise.
46375         (bsloww2): Likewise.
46376         (cslow2): Likewise.
46377         (csloww): Likewise.
46378         (csloww1): Likewise.
46379         (csloww2): Likewise.
46380
46381 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
46382
46383         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
46384         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
46385         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
46386         * malloc/hooks.c (realloc_check): Likewise.
46387
46388         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
46389         * malloc/arena.c: Remove PER_THREAD conditional.
46390         [!PER_THREAD]: Remove code.
46391         (ptmalloc_unlock_all2): Likewise.
46392         (ptmalloc_init): Likewise.
46393         (_int_new_arena): Likewise.
46394         (arena_get2): Likewise.
46395         * malloc/hooks.c (__malloc_get_state): Likewise.
46396         (__malloc_set_state): Likewise.
46397         * malloc/malloc.c: Likewise.
46398         (struct malloc_state): Likewise.
46399         (struct malloc_par): Likewise.
46400         (__libc_realloc): Likewise.
46401         (__libc_mallopt): Likewise.
46402
46403 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46404
46405         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
46406
46407 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
46408
46409         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
46410         macro to a function.  Check for zero perturb_byte.
46411         (_int_malloc, _int_free): Remove zero perturb_byte checks.
46412
46413         * malloc/malloc.c: (force_reg): Remove.
46414         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
46415         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
46416         force_reg by atomic_forced_read.
46417         * malloc/arena.c (ptmalloc_init): Likewise.
46418         * malloc/hooks.c (top_check): Likewise.
46419
46420 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46421
46422         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46423
46424 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
46425
46426         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46427
46428 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
46429
46430         * math/auto-libm-test-in: Add tests of lgamma.
46431         * math/auto-libm-test-out: Regenerated.
46432         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
46433         (M_LOG_2_SQRT_PIl): Likewise.
46434         (lgamma_test_data): Use AUTO_TESTS_f_f1.
46435         * math/gen-auto-libm-tests.c (func_calc_method): Add value
46436         mpfr_f_f1.
46437         (func_calc_desc): Add mpfr_f_f1 union field.
46438         (ARGS1): New macro.
46439         (ARGS2): Likewise.
46440         (ARGS3): Likewise.
46441         (ARGS4): Likewise.
46442         (RET1): Likewise.
46443         (RET2): Likewise.
46444         (CALC): Likewise.
46445         (FUNC): Likewise.
46446         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
46447         (test_functions): Add lgamma.
46448         (calc_generic_results): Handle mpfr_f_f1.
46449         * sysdeps/i386/fpu/libm-test-ulps: Update.
46450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46451
46452 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46453
46454         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
46455         __mpn_add_n for PowerPC64/POWER7.
46456         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
46457         __mpn_sub_n for PowerPC64/POWER7.
46458
46459         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
46460         __mpn_addmul_1 for PowerPC64.
46461         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
46462         __mpn_submul_1 for PowerPC64.
46463         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
46464         for PowerPC64.
46465         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
46466         for PowerPC64.
46467
46468 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
46469
46470         [BZ #15089]
46471         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
46472
46473 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46474
46475         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
46476
46477         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
46478         add multiarch folders.
46479         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
46480         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
46481         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
46482         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
46483         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
46484         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
46485         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
46486         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
46487         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
46488         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
46489         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
46490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
46491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
46492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
46493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
46494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
46495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
46496
46497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46498         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
46499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
46500         New file.
46501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
46502         New file.
46503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
46504         multiarch __ieee754_hypot for PowerPC32.
46505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
46506         New file.
46507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
46508         New file.
46509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
46510         multiarch __ieee754_hypotf for PowerPC32.
46511
46512         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
46513         long_double_symbol only if __logbl is defined.
46514         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
46515         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
46516         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
46517         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
46518         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
46519         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
46520         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
46521         path for implementation.
46522         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
46523         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
46524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
46525         logb, and logbl multiarch implementations for PowerPC32.
46526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
46527         file.
46528         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
46529         file.
46530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
46531         multiarch logb for PowerPC32.
46532         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
46533         file.
46534         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
46535         file.
46536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
46537         multiarch logbf for PowerPC32.
46538         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
46539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
46540         file.
46541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
46542         multiarch logbl implementation for PowerPC32.
46543
46544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
46545         and modff multiarch implementations.
46546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
46547         New file.
46548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
46549         New file.
46550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
46551         multiarch modf for PowerPC32.
46552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
46553         New file.
46554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
46555         New file.
46556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
46557         multiarch modff for PowerPC32.
46558
46559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
46560         and lrintf multiarch implementations.
46561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
46562         New file.
46563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
46564         New file.
46565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
46566         multiarch lrint for PowerPC32.
46567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
46568         file: multiarch lrintf for PowerPC32.
46569
46570         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
46571         and lroundf multiarch implementations.
46572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
46573         New file.
46574         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
46575         New file.
46576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
46577         New file.
46578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
46579         multiarch lround for PowerPC32.
46580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
46581         file: multiarch lroundf for PowerPC32.
46582
46583         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
46584         copysign and copysignf multiarch implementations.
46585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
46586         New file.
46587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
46588         New file.
46589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
46590         file: multiarch copysign for PowerPC32.
46591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
46592         file: multiarch copysignf for PowerPC32.
46593
46594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
46595         and truncf multiarch implementations.
46596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
46597         New file.
46598         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
46599         file.
46600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
46601         multiarch trunc for PowerPC32.
46602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
46603         New file.
46604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
46605         New file.
46606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
46607         multiarch truncf for PowerPC32.
46608
46609         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
46610         and roundf multiarch implementations.
46611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
46612         New file.
46613         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
46614         file.
46615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
46616         multiarch round for PowerPC32.
46617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
46618         New file.
46619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
46620         New file.
46621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
46622         multiarch roundf for PowerPC32.
46623
46624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
46625         and floorf multiarch implementations.
46626         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
46627         New file.
46628         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
46629         file.
46630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
46631         multiarch floor for PowerPC32.
46632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
46633         New file.
46634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
46635         New file.
46636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
46637         multiarch floorf for PowerPC32.
46638
46639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
46640         and ceilf multiarch implementations.
46641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
46642         New file.
46643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
46644         file.
46645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
46646         multiarch ceil for PowerPC32.
46647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
46648         New file.
46649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
46650         file.
46651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
46652         multiarch ceilf for PowerPC32.
46653
46654         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
46655         is defined.
46656         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
46657         FINITEF is defined.
46658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
46659         and finitef multiarch implementations.
46660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
46661         New file.
46662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
46663         file.
46664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
46665         multiarch finite for PowerPC32.
46666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
46667         New file.
46668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
46669         file: multiarch finitef for PowerPC32.
46670
46671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
46672         and isinff multiarch implementations.
46673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
46674         file.
46675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
46676         file.
46677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
46678         multiarch isinf for PowerPC32.
46679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
46680         New file.
46681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
46682         multiarch isinff for PowerPC32.
46683
46684         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
46685         alias when __isnan is defined.
46686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
46687         and isnanf multiarch implementations.
46688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
46689         file.
46690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
46691         file.
46692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
46693         file.
46694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
46695         file.
46696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
46697         multiarch isnan for PowerPC32.
46698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
46699         New file.
46700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
46701         New file.
46702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
46703         multiarch isnanf for PowerPC32.
46704
46705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
46706         and sqrtf multiarch implementations.
46707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
46708         file.
46709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
46710         file.
46711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
46712         multiarch sqrt for PowerPC32.
46713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
46714         file.
46715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
46716         file.
46717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
46718         multiarch sqrtf for PowerPC32.
46719
46720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
46721         and llroundf multiarch implementations.
46722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
46723         New file.
46724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
46725         New file.
46726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
46727         New file.
46728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
46729         file: multiarch llround for PowerPC32.
46730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
46731         file: multiarch llroundf for PowerPC32.
46732
46733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
46734         multiarch PowerPC32 fpu implementations.
46735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
46736         New file.
46737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
46738         New file.
46739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
46740         multiarch llrint for PowerPC32.
46741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
46742         New file.
46743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
46744         New file.
46745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
46746         file.
46747
46748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
46749
46750         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
46751         file.
46752         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
46753         file.
46754         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
46755         file.
46756         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
46757         multiarch wordcopy for PPC32.
46758         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46759         wordcopy objects.
46760         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46761         (__libc_ifunc_impl_list): Likewise.
46762         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
46763         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
46764         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
46765         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
46766         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
46767         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
46768
46769         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
46770         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
46771         file.
46772         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
46773         file.
46774         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
46775         file.
46776         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
46777         multiarch wcscpy for PPC32.
46778         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
46779         multiarch objects.
46780         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46781         (__libc_ifunc_impl_list): Likewise.
46782         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46783         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46784         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
46785         sysdeps/powerpc/power6/wcscpy.c.
46786
46787         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
46788         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
46789         file.
46790         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
46791         file.
46792         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
46793         file.
46794         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
46795         multiarch wcsrchr for PPC32.
46796         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
46797         multiarch objects.
46798         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46799         (__libc_ifunc_impl_list): Likewise.
46800         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
46801         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
46802         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
46803         sysdeps/powerpc/power6/wcsrchr.c.
46804
46805         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
46806         file.
46807         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
46808         file.
46809         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
46810         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
46811         multiarch wcschr for PPc32.
46812         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
46813         multiarch objects.
46814         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46815         (__libc_ifunc_impl_list): Likewise.
46816         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
46817         * sysdeps/powerpc/power6/wcschr.c: ... to here.
46818         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
46819         sysdeps/powerpc/power6/wcschr.c.
46820
46821         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
46822         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
46823         file.
46824         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
46825         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
46826         file: multiarch strchr for PPC32.
46827         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
46828         multiarch objects.
46829         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46830         (__libc_ifunc_impl_list): Likewise.
46831
46832         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
46833         name.
46834         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
46835         file.
46836         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
46837         file.
46838         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
46839         multiarch strchrnul for PPC32.
46840         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
46841         multiarch objects.
46842         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46843         (__libc_ifunc_impl_list): Likewise.
46844
46845         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
46846         file.
46847         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
46848         multiarch strncasecmp for PPC32.
46849         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
46850         file.
46851         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
46852         multiarch strncasecmp_l for PPC32.
46853         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
46854         strncasecmp multiarch objects.
46855         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46856         (__libc_ifunc_impl_list): Likewise.
46857
46858         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
46859         file.
46860         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
46861         multiarch strncasecmp for PPC32.
46862         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
46863         New file.
46864         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
46865         multiarch strcasecmp_l for PPC32.
46866         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
46867         multiarch objects.
46868         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46869         (__libc_ifunc_impl_list): Likewise.
46870
46871         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
46872         file.
46873         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
46874         file.
46875         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
46876         multiarch strncmp for PPC32.
46877         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
46878         multiarch objects.
46879         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46880         (__libc_ifunc_impl_list): Likewise.
46881
46882         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
46883         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
46884         file.
46885         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
46886         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
46887         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
46888         multiarch objects.
46889         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46890         (__libc_ifunc_impl_list): Likewise.
46891
46892         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
46893         file.
46894         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
46895         file.
46896         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
46897         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
46898         multiarch objects.
46899         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46900         (__libc_ifunc_impl_list): Likewise.
46901
46902         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
46903         file.
46904         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
46905         file.
46906         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
46907         multiarch rawmemchr for PPC32.
46908         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
46909         multiarch objects.
46910         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46911         (__libc_ifunc_impl_list): Likewise.
46912
46913         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
46914         file.
46915         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
46916         file.
46917         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
46918         file: memrchr multiarch for PPC32.
46919         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
46920         multiarch objects.
46921         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
46922         (__libc_ifunc_impl_list): Likewise.
46923
46924         * string/memchr.c (__memchr): Using macro to redefine symbol name.
46925         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
46926         file.
46927         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
46928         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
46929         multiarch memchr for PPC32.
46930         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
46931         multiarch objects.
46932         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46933         (__libc_ifunc_impl_list): Likewise.
46934
46935         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
46936         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
46937         file.
46938         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
46939         file.
46940         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
46941         file: multiarch mempcpy for PPC32.
46942         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
46943         multiarch objects.
46944         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46945         (__libc_ifunc_impl_list): Likewise.
46946
46947         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
46948         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
46949         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
46950         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
46951         multiarch bzero for PPC32.
46952         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
46953         file.
46954         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
46955         file.
46956         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
46957         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
46958         file: multiarch memset for PPC32.
46959         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
46960         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
46961         memset multiarch objects.
46962         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46963         (__libc_ifunc_impl_list): Likewise.
46964
46965         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
46966         file.
46967         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
46968         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
46969         memcmp for PPC32.
46970         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
46971         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
46972         multiarch objects.
46973         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46974         (__libc_ifunc_impl_list): Likewise.
46975
46976         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
46977         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
46978         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
46979         file.
46980         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
46981         file.
46982         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
46983         file.
46984         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
46985         multiarch memcpy for PPC32.
46986         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
46987         multiarch objects.
46988         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
46989         (__libc_ifunc_impl_list): Likewise.
46990
46991         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
46992         support multiarch for POWER/PPC32.
46993         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
46994         Likewise.
46995         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
46996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
46997         Implies file to make multiarch folder appers before the fpu and
46998         default folder for power4 configuration.
46999
47000 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
47001
47002         * scripts/bench.pl: Append volatile keyword to type.
47003
47004 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
47005
47006         * sysdeps/sh/sotruss-lib.c: New file.
47007         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
47008
47009 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47010
47011         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47012
47013 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
47014
47015         [BZ #6810]
47016         * math/w_tgamma.c: Include <errno.h>.
47017         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
47018         * math/w_tgammaf.c: Include <errno.h>.
47019         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
47020         * math/w_tgammal.c: Include <errno.h>.
47021         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
47022         * math/auto-libm-test-in: Do not allow missing errno on tgamma
47023         underflow.  Add more tgamma tests.
47024         * math/auto-libm-test-out: Regenerated.
47025         * sysdeps/i386/fpu/libm-test-ulps: Update.
47026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47027
47028         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
47029         sin, sinh, tan, tanh, tgamma, y0 and y1.
47030         * math/auto-libm-test-out: Regenerated.
47031         * math/libm-test.inc (TEST_COND_x86_64): New macro.
47032         (TEST_COND_x86): Likewise.
47033         (M_E2l): Remove macro.
47034         (M_E3l): Likewise.
47035         (M_2_SQRT_PIl): Likewise.
47036         (M_SQRT_PIl): Likewise.
47037         (M_1_DIV_El): Likewise.
47038         (log_test_data): Use AUTO_TESTS_f_f.
47039         (log10_test_data): Likewise.
47040         (log1p_test_data): Likewise.
47041         (log2_test_data): Likewise.
47042         (sin_test_data): Likewise.
47043         (sin_tonearest_test_data): Likewise.
47044         (sin_towardzero_test_data): Likewise.
47045         (sin_downward_test_data): Likewise.
47046         (sin_upward_test_data): Likewise.
47047         (sinh_test_data): Likewise.
47048         (sinh_tonearest_test_data): Likewise.
47049         (sinh_towardzero_test_data): Likewise.
47050         (sinh_downward_test_data): Likewise.
47051         (sinh_upward_test_data): Likewise.
47052         (tan_test_data): Likewise.
47053         (tan_tonearest_test_data): Likewise.
47054         (tan_towardzero_test_data): Likewise.
47055         (tan_downward_test_data): Likewise.
47056         (tan_upward_test_data): Likewise.
47057         (tanh_test_data): Likewise.
47058         (tgamma_test_data): Likewise.
47059         (y0_test_data): Likewise.
47060         (y1_test_data): Likewise.
47061         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
47062         (special_real_inputs): Add pi/4.
47063         * sysdeps/i386/fpu/libm-test-ulps: Update.
47064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47065
47066 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47067
47068         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
47069         "longjmp_target" static probes.
47070         (__longjmp): Rename to __longjmp_symbol.
47071         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
47072         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
47073         on which longjmp to generate.
47074         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
47075         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
47076         probe.
47077         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47078         (__sigjmp_save): Rename to __sigjmp_save_symbol.
47079         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
47080         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
47081         and __sigjmp_save_symbol based on which sigsetjmp to generated.
47082         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
47083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
47084         __longjmp_symbol based on which __longjmp to generate.
47085         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
47086         probe.
47087         (setjmp): Rename to setjmp_symbol.
47088         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47089         (_setjmp): Rename to _setjmp_symbol.
47090         (__sigsetjmp): Rename to __sigsetjmp_symbol.
47091         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
47092         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
47093         which setjmp to generate.
47094         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
47095         "longjmp_target" static probes.
47096
47097 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
47098
47099         * benchtests/README: Add note about output arguments.
47100         * benchtests/bench-sincos.c: Remove file.
47101         * benchtests/sincos-inputs: New file.
47102         * scripts/bench.pl: Identify output arguments and define
47103         static variables for them.
47104
47105         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
47106
47107         [BZ #15941]
47108         * Makefile (INSTALL): Add install-plain.texi as the primary
47109         dependency.
47110         * manual/install-plain.texi: New file.
47111         * manual/install.texi: Include node directive only for
47112         non-plaintext output.
47113
47114 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
47115
47116         * stdlib/longlong.h: Update from GCC.
47117
47118         [BZ #6807]
47119         [BZ #15901]
47120         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
47121         * math/w_j0f.c (y0f): Likewise.
47122         * math/w_j0l.c (__y0l): Likewise.
47123         * math/w_j1.c (y1): Likewise.
47124         * math/w_j1f.c (y1f): Likewise.
47125         * math/w_j1l.c (__y1l): Likewise.
47126         * math/w_jn.c (yn): Likewise.
47127         * math/w_jnf.c (ynf): Likewise.
47128         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
47129         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
47130         value for Bessel function domain errors outside _SVID_ mode.
47131         Adjust sign of return value for yn (negative integer, 0).
47132         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
47133         by zero in return for negative x and set sign appropriately for
47134         negative n.
47135         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
47136         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
47137         * math/libm-test.inc (y0_test_data): Add more tests and adjust
47138         expectations in error cases.
47139         (y1_test_data): Likewise.
47140         (yn_test_data): Likewise.
47141         * sysdeps/i386/fpu/libm-test-ulps: Update.
47142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47143
47144 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47145
47146         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
47147         "64" to "64-v1".  Add "64-v2".
47148         (abi-64-options): Rename to ...
47149         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
47150         (abi-64-condition): Rename to ...
47151         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
47152         (abi-64-ld-soname): Rename to ...
47153         (abi-64-v1-ld-soname): ... this.
47154         (abi-64-v2-options): Define.
47155         (abi-64-v2-condition): Likewise.
47156         (abi-64-v2-ld-soname): Likewise.
47157         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
47158         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
47159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
47160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
47161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
47162
47163 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47164             Alan Modra  <amodra@gmail.com>
47165
47166         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
47167         New versions for use with the ELFv2 ABI.
47168         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
47169         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
47170         declaration.
47171         (struct La_ppc64v2_retval): Likewise.
47172         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
47173         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
47174         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
47175         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
47176         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
47177         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47178         Do not save or restore CR.
47179         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
47180         (_dl_profile_resolve): Do no save or restore CR.  Support extended
47181         return values for ELFv2 ABI.  Fix location of FPR return registers.
47182         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
47183         updated values for _CALL_ELF == 2.
47184         (La_regs, La_retval, int_retval): Likewise.
47185
47186 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47187
47188         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
47189         (FRAME_MIN_SIZE_PARM): Likewise.
47190         (FRAME_BACKCHAIN): Likewise.
47191         (FRAME_CR_SAVE): Likewise.
47192         (FRAME_LR_SAVE): Likewise.
47193         (FRAME_TOC_SAVE): Likewise.
47194         (FRAME_PARM_SAVE): Likewise.
47195         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
47196         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
47197         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47198         (call_mcount_parm_offset): New macro.
47199         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
47200         (PROF): Use symbolic stack frame offsets.
47201         (TAIL_CALL_SYSCALL_ERROR): Likewise.
47202         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
47203         Redefine in terms of FRAME_MIN_SIZE.
47204         (_dl_runtime_resolve): Use symbolic stack frame offsets.
47205         (_dl_profile_resolve): Likewise.  Update comment.
47206         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
47207         symbols stack frame offsets.
47208         (__sigsetjmp): Likewise.
47209         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
47210         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
47211         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
47212         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
47213
47214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
47215         (FRAME_BACKCHAIN): Remove.
47216         (FRAME_CR_SAVE): Likewise.
47217         (FRAME_LR_SAVE): Likewise.
47218         (FRAME_COMPILER_DW): Likewise.
47219         (FRAME_LINKER_DW): Likewise.
47220         (FRAME_TOC_SAVE): Likewise.
47221         (FRAME_PARM_SAVE): Likewise.
47222         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
47223         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
47224         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
47225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
47226         (CHECK_SP): Use symbolic stack frame offsets.
47227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
47228         zone" instead of caller's parameter save area for temp storage.
47229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47230         Likewise.  Also, use symbolic stack frame offsets.
47231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
47232         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
47233         our own stack frame instead of the caller's.
47234         (__socket): Use symbolic stack frame offsets.
47235
47236 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47237             Alan Modra  <amodra@gmail.com>
47238
47239         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
47240         Define.
47241         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
47242         (PPC64_LOCAL_ENTRY_OFFSET): Define.
47243         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
47244         New function.
47245         (elf_machine_fixup_plt): Call it.
47246         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
47247         reloc arguments.
47248         (elf_machine_rela): Update call to elf_machine_plt_conflict.
47249         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47250         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
47251         r2 before calling target.
47252
47253 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47254             Alan Modra  <amodra@gmail.com>
47255
47256         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
47257         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
47258         versions of macros to support ELFv2 ABI.
47259         (LOCALENTRY): New macro.
47260         (ENTRY, EALIGN): Use it.
47261         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
47262         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
47263         fall through into ENTRY entry point.
47264         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
47265         Only define if _CALL_ELF != 2.
47266
47267         (elf_machine_matches_host): Verify ABI version matches.
47268         (RTLD_START): Use LOCALENTRY.
47269         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
47270         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
47271         (PLT_ENTRY_WORDS): New macro.
47272         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
47273         (elf_machine_runtime_setup): Support ELFv2 ABI.
47274         (elf_machine_fixup_plt): Likewise.
47275         (elf_machine_plt_conflict): Likewise.
47276         (resolve_ifunc): Likewise.
47277         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
47278         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
47279         Likewise.
47280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
47281         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
47282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47283         (makecontext): Support ELFv2 ABI.
47284         * elf/elf.h (EF_PPC64_ABI): Define.
47285
47286 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47287
47288         * sysdeps/powerpc/powerpc64/sysdep.h
47289         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
47290         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
47291         (ENTRY) [ASSEMBLER]: ... but instead here ...
47292         (EALIGN) [ASSEMBLER]: ... and here.
47293         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
47294         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
47295         (ENTRY_2) [!ASSEMBLER]: Use it.
47296         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
47297         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
47298         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
47299         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
47300         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
47301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
47302         Use PPC64_LOAD_FUNCPTR.
47303
47304         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
47305
47306 2013-12-04  Alan Modra  <amodra@gmail.com>
47307
47308         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
47309         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
47310         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
47311         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
47312
47313         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
47314         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
47315         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
47316         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
47317         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
47318         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
47319
47320 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
47321
47322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47323         (__makecontext): Fix incorrect CFI when backtracing out of
47324         context created via makecontext.
47325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
47326         (__setcontext): Fix incorrect CFI during switch to new context.
47327         (__novec_setcontext): Likewise.
47328
47329 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47330
47331         [BZ #4772]
47332         * time/strptime_l.c (__strptime_internal): Allow modifiers
47333         in strptime.
47334         * time/tst-strptime.c (day_tests): Add testcase.
47335
47336 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
47337
47338         * scripts/bench.pl: Skip over blank lines.
47339
47340 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         [BZ #926]
47343         * manual/time.texi (Calendar Time): Clarify what timezone functions
47344         use.
47345
47346 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47347
47348         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47349
47350 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
47351
47352         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
47353         implementation.
47354         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
47355         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
47356         * debug/memset_chk.c (__memset_chk): Likewise.
47357         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
47358         * debug/strncpy_chk.c: Likewise.
47359
47360 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47361
47362         [BZ #15268]
47363         [BZ #15425]
47364         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
47365         (__ieee754_exp): For possibly underflowing results, check size of
47366         result and force underflow exception if required.
47367         * math/auto-libm-test-in: Add more tests of exp.
47368         * math/auto-libm-test-out: Regenerated.
47369         * sysdeps/i386/fpu/libm-test-ulps: Update.
47370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47371
47372         [BZ #16283]
47373         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
47374         * math/w_exp2f.c (__exp2f): Likewise.
47375         * math/w_exp2l.c (__exp2l): Likewise.
47376         * math/auto-libm-test-in: Do not allow missing errno on exp2
47377         underflow.
47378         * math/auto-libm-test-out: Regenerated.
47379
47380 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
47381
47382         [BZ #16274]
47383         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
47384         handle filename validation.
47385         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
47386         (do_open): Delete.
47387
47388 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
47389
47390         [BZ #6786]
47391         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
47392         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
47393         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
47394         <float.h>.
47395         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
47396         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
47397         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47398         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
47399         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47400         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
47401         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
47402         * math/auto-libm-test-in: Don't allow missing errno from erfc.
47403         Add more erfc tests.
47404         * math/auto-libm-test-out: Regenerated.
47405         * sysdeps/i386/fpu/libm-test-ulps: Update.
47406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47407
47408         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
47409         exp2, expm1, j0 and j1.
47410         * math/auto-libm-test-out: Regenerated.
47411         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
47412         (erfc_test_data): Likewise.
47413         (exp_test_data): Likewise.
47414         (exp_tonearest_test_data): Likewise.
47415         (exp_towardzero_test_data): Likewise.
47416         (exp_downward_test_data): Likewise.
47417         (exp_upward_test_data): Likewise.
47418         (exp10_test_data): Likewise.
47419         (exp2_test_data): Likewise.
47420         (expm1_test_data): Likewise.
47421         (j0_test_data): Likewise.
47422         (j1_test_data): Likewise.
47423         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
47424         (input_flag_type): Add flag_xfail_rounding.
47425         (input_flags): Add xfail-rounding.
47426         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
47427         (output_for_one_input_case): Handle flag_xfail_rounding.
47428         * sysdeps/i386/fpu/libm-test-ulps: Update.
47429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47430
47431 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
47432
47433         [BZ #16289]
47434         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
47435         division by 0.
47436
47437 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
47438
47439         [BZ #16195]
47440         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
47441         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
47442         (STAP_PROBE0): New macro.
47443         (STAP_PROBE1): Likewise.
47444         (STAP_PROBE2): Likewise.
47445         (STAP_PROBE3): Likewise.
47446         (STAP_PROBE4): Likewise.
47447
47448 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
47449
47450         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
47451
47452 2013-12-02  Steve Ellcey  <sellcey@mips.com>
47453
47454         * benchtests/Makefile (bench): Add sqrt.
47455         (LDLIBS-bench-sqrt): New.
47456         * benchtests/sqrt-input: New.
47457
47458 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
47459
47460         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
47461         (GAIH_EAI): Likewise.
47462         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
47463         (gaih_inet): Likewise.
47464         (getaddrinfo): Don't use GAIH_EAI.
47465
47466         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
47467         (struct gaih): Remove definition.
47468
47469 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
47470
47471         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
47472         Use HERRNOP directly.
47473
47474 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47475
47476         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47477
47478 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
47479
47480         * math/gen-auto-libm-tests.c (test_functions): Add more
47481         single-argument functions.
47482         (special_fill_pi_2): New function.
47483         (special_fill_minus_pi_2): Likewise.
47484         (special_fill_pi_6): Likewise.
47485         (special_fill_minus_pi_6): Likewise.
47486         (special_fill_pi_3): Likewise.
47487         (special_fill_2pi_3): Likewise.
47488         (special_fill_e): Likewise.
47489         (special_fill_1_e): Likewise.
47490         (special_fill_e_minus_1): Likewise.
47491         (special_real_inputs): Add more special inputs.
47492         (output_for_one_input_case): Do not require ERANGE on underflow to
47493         zero if round-to-nearest result does not underflow to zero, unless
47494         exact results required.
47495         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
47496         atan, atanh, cbrt, cos and cosh.
47497         * math/auto-libm-test-out: Regenerated.
47498         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
47499         (acos_tonearest_test_data): Likewise.
47500         (acos_towardzero_test_data): Likewise.
47501         (acos_downward_test_data): Likewise.
47502         (acos_upward_test_data): Likewise.
47503         (acosh_test_data): Likewise.
47504         (asin_test_data): Likewise.
47505         (asin_tonearest_test_data): Likewise.
47506         (asin_towardzero_test_data): Likewise.
47507         (asin_upward_test_data): Likewise.
47508         (asinh_test_data): Likewise.
47509         (atan_test_data): Likewise.
47510         (atanh_test_data): Likewise.
47511         (cbrt_test_data): Likewise.
47512         (cos_test_data): Likewise.
47513         (cos_tonearest_test_data): Likewise.
47514         (cos_towardzero_test_data): Likewise.
47515         (cos_downward_test_data): Likewise.
47516         (cos_upward_test_data): Likewise.
47517         (cosh_test_data): Likewise.
47518         (cosh_tonearest_test_data): Likewise.
47519         (cosh_towardzero_test_data): Likewise.
47520         (cosh_downward_test_data): Likewise.
47521         (cosh_upward_test_data): Likewise.
47522         * sysdeps/i386/fpu/libm-test-ulps: Update.
47523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47524
47525 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
47526
47527         [BZ #6787]
47528         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
47529         * math/w_exp10f.c (__exp10f): Likewise.
47530         * math/w_exp10l.c (__exp10l): Likewise.
47531         * math/libm-test.inc (exp10_test_data): Add more tests and expect
47532         errno settings in existing tests.
47533
47534         [BZ #14032]
47535         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
47536         precision control set to double precision.
47537         * sysdeps/i386/fpu/w_sqrt.c: New file.
47538         * math/auto-libm-test-in: Add more tests.
47539         * math/auto-libm-test-out: Update.
47540
47541         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
47542         (sqrt_test_tonearest): New function.
47543         (sqrt_towardzero_test_data): New variable.
47544         (sqrt_test_towardzero): New function.
47545         (sqrt_downward_test_data): New variable.
47546         (sqrt_test_downward): New function.
47547         (sqrt_upward_test_data): New variable.
47548         (sqrt_test_upward): New function.
47549         (main): Call the new functions.
47550
47551         * math/gen-auto-libm-tests.c: New file.
47552         * math/auto-libm-test-in: Likewise.
47553         * math/auto-libm-test-out: New generated file.
47554         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
47555         variables.
47556         (%beautify): Add generated representations of zero.
47557         (top level): Set $auto_input and call parse_auto_input.
47558         (beautify): Remove trailing "f" from hex float constants.
47559         (parse_args): Handle XFAIL_TEST.
47560         (convert_condition): New function.
47561         (or_value): Likewise.
47562         (or_cond_value): Likewise.
47563         (generate_testfile): Handle AUTO_TESTS_* lines.
47564         (parse_auto_input): New function.
47565         * math/libm-test.inc (XFAIL_TEST): New macro.
47566         (ERRNO_UNCHANGED): Update value.
47567         (ERRNO_EDOM): Likewise.
47568         (ERRNO_ERANGE): Likewise.
47569         (IGNORE_RESULT): Likewise.
47570         (TEST_COND_flt_32): New macro.
47571         (TEST_COND_dbl_64): Likewise.
47572         (TEST_COND_ldbl_96_intel): Likewise.
47573         (TEST_COND_ldbl_96_m68k): Likewise.
47574         (TEST_COND_ldbl_128): Likewise.
47575         (TEST_COND_ldbl_128ibm): Likewise.
47576         (TEST_COND_long32): Likewise.
47577         (TEST_COND_long64): Likewise.
47578         (TEST_COND_before_rounding): Likewise.
47579         (TEST_COND_after_rounding): Likewise.
47580         (enable_test): Handle XFAIL_TEST flag.
47581         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
47582         with finite results.
47583         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
47584         auto-libm-test-out.
47585
47586 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
47587             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47588
47589         [BZ #16214]
47590         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
47591         __tls_get_addr_internal instead of __tls_get_offset in order to
47592         avoid GOT pointer dependency.  Make rtld export
47593         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
47594         __tls_get_addr since we are a __tls_get_offset platform.
47595         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
47596         GOT pointer being set up before.
47597         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
47598
47599 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
47600
47601         * manual/math.texi (Errors in Math Functions): Document accuracy
47602         goals.
47603
47604         [BZ #15004]
47605         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
47606         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
47607         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
47608         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
47609         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
47610         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
47611         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
47612         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
47613         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
47614         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
47615         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
47616         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
47617         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
47618         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
47619         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
47620         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
47621
47622         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
47623         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
47624         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
47625         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
47626         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
47627         Likewise.
47628         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
47629         Likewise.
47630         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
47631         Likewise.
47632         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
47633         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
47634         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
47635         atomic-feupdateenv and flt-rounds.
47636         * sysdeps/powerpc/nofpu/Versions (libc): Add
47637         __atomic_feholdexcept, __atomic_feclearexcept,
47638         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
47639         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
47640         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
47641         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
47642         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
47643         here.
47644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
47645         Update.
47646
47647         * manual/arith.texi (FP Exceptions): Document that exceptions may
47648         not be raised when matherr is used.
47649         (Math Error Reporting): Document overflow in directed rounding
47650         modes.  Document that errno may not be set when finite values are
47651         returned on overflow.  Document intent to set errno on underflow
47652         only for underflow to zero.
47653
47654         [BZ #16271]
47655         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
47656         round-to-nearest then adjust result for other rounding modes.
47657         * include/fenv.h (fegetround): Use libm_hidden_proto.
47658         * math/fegetround.c (fegetround): Use libm_hidden_def.
47659         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
47660         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
47661         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47662         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
47663         Likewise.
47664         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
47665         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
47666         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
47667         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
47668
47669 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
47670
47671         [BZ #16077]
47672         * nss/Versions (libnss_files): Add
47673         _nss_files_gethostbyname3_r.
47674         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
47675         New function.
47676         (HOST_DB_LOOKUP): Remove macro.
47677         (_nss_files_gethostbyname_r): Implement function without the
47678         HOST_DB_LOOKUP macro.
47679         (_nss_files_gethostbyname2_r): Likewise.
47680
47681 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
47682
47683         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
47684
47685 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
47686
47687         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
47688         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
47689         warning.
47690
47691 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47692
47693         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
47694         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
47695         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47696         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
47697         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
47698         __fe_nomask_env_priv and attribute_hidden.
47699         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
47700         (libc_feupdateenv_test_ppc): Likewise.
47701         (libc_feresetround_ppc): Likewise.
47702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
47703         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
47704         compat_symbol macro.
47705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
47706         (__fe_nomask_env): Likewise.
47707         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
47708
47709 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47710
47711         * string/Makefile: Remove ifunc tests.
47712         * string/test-string.h: Define TEST_IFUNC.
47713         * string/test-bcopy-ifunc.c: Remove.
47714         * string/test-bzero-ifunc.c: Likewise.
47715         * string/test-memccpy-ifunc.c: Likewise.
47716         * string/test-memchr-ifunc.c: Likewise.
47717         * string/test-memcmp-ifunc.c: Likewise.
47718         * string/test-memcpy-ifunc.c: Likewise.
47719         * string/test-memmem-ifunc.c: Likewise.
47720         * string/test-memmove-ifunc.c: Likewise.
47721         * string/test-mempcpy-ifunc.c: Likewise.
47722         * string/test-memrchr-ifunc.c: Likewise.
47723         * string/test-memset-ifunc.c: Likewise.
47724         * string/test-rawmemchr-ifunc.c: Likewise.
47725         * string/test-stpcpy-ifunc.c: Likewise.
47726         * string/test-stpncpy-ifunc.c: Likewise.
47727         * string/test-strcasecmp-ifunc.c: Likewise.
47728         * string/test-strcasestr-ifunc.c: Likewise.
47729         * string/test-strcat-ifunc.c: Likewise.
47730         * string/test-strchr-ifunc.c: Likewise.
47731         * string/test-strchrnul-ifunc.c: Likewise.
47732         * string/test-strcmp-ifunc.c: Likewise.
47733         * string/test-strcpy-ifunc.c: Likewise.
47734         * string/test-strcspn-ifunc.c: Likewise.
47735         * string/test-strlen-ifunc.c: Likewise.
47736         * string/test-strncasecmp-ifunc.c: Likewise.
47737         * string/test-strncat-ifunc.c: Likewise.
47738         * string/test-strncmp-ifunc.c: Likewise.
47739         * string/test-strncpy-ifunc.c: Likewise.
47740         * string/test-strnlen-ifunc.c: Likewise.
47741         * string/test-strpbrk-ifunc.c: Likewise.
47742         * string/test-strrchr-ifunc.c: Likewise.
47743         * string/test-strspn-ifunc.c: Likewise.
47744         * string/test-strstr-ifunc.c: Likewise.
47745
47746 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47747
47748         * benchtests/Makefile: Remove ifunc tests.
47749         * benchtests/bench-string.h: Define TEST_IFUNC.
47750         * benchtests/bench-bcopy-ifunc.c: Remove.
47751         * benchtests/bench-bzero-ifunc.c: Likewise.
47752         * benchtests/bench-memccpy-ifunc.c: Likewise.
47753         * benchtests/bench-memchr-ifunc.c: Likewise.
47754         * benchtests/bench-memcmp-ifunc.c: Likewise.
47755         * benchtests/bench-memcpy-ifunc.c: Likewise.
47756         * benchtests/bench-memmem-ifunc.c: Likewise.
47757         * benchtests/bench-memmove-ifunc.c: Likewise.
47758         * benchtests/bench-mempcpy-ifunc.c: Likewise.
47759         * benchtests/bench-memrchr-ifunc.c: Likewise.
47760         * benchtests/bench-memset-ifunc.c: Likewise.
47761         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
47762         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
47763         * benchtests/bench-stpcpy-ifunc.c: Likewise.
47764         * benchtests/bench-stpncpy-ifunc.c: Likewise.
47765         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
47766         * benchtests/bench-strcasestr-ifunc.c: Likewise.
47767         * benchtests/bench-strcat-ifunc.c: Likewise.
47768         * benchtests/bench-strchr-ifunc.c: Likewise.
47769         * benchtests/bench-strchrnul-ifunc.c: Likewise.
47770         * benchtests/bench-strcmp-ifunc.c: Likewise.
47771         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
47772         * benchtests/bench-strcpy-ifunc.c: Likewise.
47773         * benchtests/bench-strcspn-ifunc.c: Likewise.
47774         * benchtests/bench-strlen-ifunc.c: Likewise.
47775         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
47776         * benchtests/bench-strncat-ifunc.c: Likewise.
47777         * benchtests/bench-strncmp-ifunc.c: Likewise.
47778         * benchtests/bench-strncpy-ifunc.c: Likewise.
47779         * benchtests/bench-strnlen-ifunc.c: Likewise.
47780         * benchtests/bench-strpbrk-ifunc.c: Likewise.
47781         * benchtests/bench-strrchr-ifunc.c: Likewise.
47782         * benchtests/bench-strsep-ifunc.c: Likewise.
47783         * benchtests/bench-strspn-ifunc.c: Likewise.
47784         * benchtests/bench-strstr-ifunc.c: Likewise.
47785
47786 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47787
47788         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
47789
47790 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
47791
47792         * resolv/netdb.h: Use __glibc_reserved instead __unused.
47793         * rt/aio.h: Likewise.
47794         * sysdeps/gnu/bits/utmp.h: Likewise.
47795         * sysdeps/gnu/bits/utmpx.h: Likewise.
47796         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
47797         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
47798         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
47799         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
47800         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
47801         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
47802         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
47803         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
47804         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
47805         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
47806         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
47807         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
47808         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
47809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
47810         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
47811         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
47812         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
47813         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
47814         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
47815         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
47816         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
47817         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
47818         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
47819         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
47820         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
47821         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47822         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
47823         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
47824         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
47825         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
47826         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
47827         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
47828         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
47829         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
47830         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
47831         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
47832         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
47833         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
47834         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
47835         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
47836         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
47837         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
47838
47839 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
47840
47841         [BZ #16245]
47842         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
47843         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
47844
47845 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
47846
47847         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
47848         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
47849         Likewise.
47850
47851 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47852
47853         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
47854         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
47855         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
47856         (__fesetround): Remove define.
47857         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
47858         rounding and exceptions handling.
47859         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
47860         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
47861         (__fe_nomask_env): Likewise.
47862         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
47863         __fegetround instead of fegetround.
47864         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
47865         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
47866
47867 2013-11-21  Roland McGrath  <roland@hack.frob.com>
47868
47869         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
47870         it's there.
47871
47872         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
47873
47874 2013-11-21  Meador Inge  <meadori@codesourcery.com>
47875
47876         [BZ #11157]
47877         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
47878         (encrypt_r): Likewise.
47879         * malloc/obstack.h (obstack_free): Likewise.
47880         * posix/unistd.h (encrypt): Likewise.
47881
47882 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
47883
47884         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
47885         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
47886         DL_CALL_DT_FINI() that call the functions directly.
47887         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
47888         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
47889         * elf/dl-fini.c: Likewise.
47890
47891 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
47892
47893         * malloc/hooks.c (memalign_check): Add alignment rounding.
47894         * malloc/malloc.c (_mid_memalign): New function.
47895         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
47896         Implement by calling _mid_memalign.
47897         * manual/probes.texi (Memory Allocation Probes): Remove
47898         memory_valloc_retry and memory_pvalloc_retry.
47899
47900 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
47901
47902         * locale/programs/locarchive.c (open_archive): Add const
47903         qualifier to ARCHIVEFNAME and copy default fname to
47904         DEFAULT_FNAME.
47905
47906         [BZ #15601]
47907         * libio/tst-widetext.input: Rename Oriya to Odia.
47908         * locale/iso-639.def: Likewise.
47909
47910         * manual/probes.texi (Mathematical Function Probes): Add
47911         documentation for sin, cos, asin and acos probes.
47912         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
47913         (__sin32): Add slowasin probe.
47914         (__cos32): Add slowacos probe.
47915         (__mpsin): Add slowsin probe.
47916         (__mpcos): Add slowcos probe.
47917
47918 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
47919
47920         [BZ #15483]
47921         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
47922         thread-local __sim_exceptions_thread and global
47923         __sim_exceptions_global.
47924         (__sim_disabled_exceptions): Change to thread-local
47925         __sim_disabled_exceptions_thread and global
47926         __sim_disabled_exceptions_global.
47927         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
47928         and global __sim_round_mode_global.
47929         (__simulate_exceptions): Use thread-local floating-point state and
47930         set global state from it as needed.
47931         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
47932         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
47933         __sim_round_mode_thread.
47934         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
47935         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
47936         and global __sim_exceptions_global.
47937         (__sim_disabled_exceptions): Change to thread-local
47938         __sim_disabled_exceptions_thread and global
47939         __sim_disabled_exceptions_global.
47940         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
47941         and global __sim_round_mode_global.
47942         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
47943         (SIM_SET_GLOBAL): Likewise.
47944         * sysdeps/powerpc/soft-fp/sfp-machine.h
47945         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
47946         __sim_round_mode_thread.
47947         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
47948         __sim_disabled_exceptions_thread.
47949         (__sim_exceptions): Change to __sim_exceptions_thread.
47950         (__sim_disabled_exceptions): Change to
47951         __sim_disabled_exceptions_thread.
47952         (__sim_round_mode): Change to __sim_round_mode_thread.
47953         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
47954         thread-local floating-point state and set global state from it as
47955         needed.
47956         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
47957         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
47958         (__sim_disabled_exceptions): Remove extern declaration.
47959         (feenableexcept): Use thread-local floating-point state and set
47960         global state from it as needed.
47961         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
47962         extern declaration.
47963         (__sim_disabled_exceptions): Likewise.
47964         (__sim_round_mode): Likewise.
47965         (__fegetenv): Use thread-local floating-point state.
47966         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
47967         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
47968         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
47969         floating-point state and set global state from it as needed.
47970         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
47971         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
47972         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
47973         Likewise.
47974         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
47975         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
47976         Likewise.
47977         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
47978         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
47979         Use __sim_round_mode_thread.
47980         * math/test-fenv-tls.c: New file.
47981         * math/Makefile (tests): Add test-fenv-tls.
47982         ($(objpfx)test-fenv-tls): Depend on
47983         $(common-objpfx)nptl/libpthread.so.
47984
47985 2013-11-19  Andreas Schwab  <schwab@suse.de>
47986
47987         * locale/programs/locale.c (show_info): Decode wordarray elements.
47988         * locale/categories.def (LC_MONETARY): Add element for
47989         _NL_MONETARY_CRNCYSTR.
47990         * locale/C-monetary.c (conversion_rate): New variable.
47991         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
47992         element.
47993
47994 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
47995
47996         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
47997         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
47998
47999 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
48000
48001         * elf/Makefile (tst-auxv): New test.
48002         * elf/tst-auxv.c: New
48003         * elf/rtld.c (dl_main): Adjust AT_EXECFN
48004
48005 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
48006
48007         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
48008         (hidden_proto): Caller changed.
48009         (hidden_tls_proto): New macro.
48010         (libc_hidden_tls_proto): Likewise.
48011         (rtld_hidden_tls_proto): Likewise.
48012         (libm_hidden_tls_proto): Likewise.
48013         (libresolv_hidden_tls_proto): Likewise.
48014         (librt_hidden_tls_proto): Likewise.
48015         (libdl_hidden_tls_proto): Likewise.
48016         (libnss_files_hidden_tls_proto): Likewise.
48017         (libnsl_hidden_tls_proto): Likewise.
48018         (libnss_nisplus_hidden_tls_proto): Likewise.
48019         (libutil_hidden_tls_proto): Likewise.
48020
48021 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
48022
48023         [BZ #10253]
48024         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
48025         (decompose_rpath): Defer expansion to fillin_rpath.
48026         (_dl_init_paths): Pass linkmap to fillin_rpath.
48027
48028 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
48029
48030         * benchtests/Makefile: Add strsep.
48031         * benchtests/bench-strsep.c: New file: strsep benchtest.
48032         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
48033
48034 2013-11-18  Andreas Schwab  <schwab@suse.de>
48035
48036         * locale/programs/locale.c (show_info) [case byte]: Check for
48037         '\377' instead of '\177'.
48038         * locale/C-monetary.c (not_available): Always use "\377".
48039         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
48040         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
48041         detect unavailable sign_posn locale elements.
48042         * locale/localeconv.c (__localeconv): For grouping and
48043         mon_grouping handle "\177" and "\377" like no grouping.
48044         (INT_ELEM): New macro.  Use it to set all numeric members.
48045         * locale/programs/ld-monetary.c (monetary_read)
48046         <tok_mon_grouping>: Normalize single -1 to the empty string.
48047         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
48048         Likewise.
48049
48050 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48051
48052         [BZ #16055]
48053         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
48054         when we match (nil).
48055         * stdio-common/tst-sscanf.c (struct test): Add testcase.
48056
48057 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
48058
48059         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
48060         (NO_TEST_INLINE): Update value.
48061         (ERRNO_UNCHANGED): Likewise.
48062         (ERRNO_EDOM): Likewise.
48063         (ERRNO_ERANGE): Likewise.
48064         (IGNORE_RESULT): Likewise.
48065         (check_float_internal): Check signs of NaN results if
48066         TEST_NAN_SIGN used.
48067         (check_complex): Pass TEST_NAN_SIGN flag through to second
48068         check_float_internal call.
48069         (copysign_test_data): Add tests with quiet NaNs as second
48070         argument.  Use TEST_NAN_SIGN.
48071         (fabs_test_data): Add test of negative quiet NaN argument.  Use
48072         TEST_NAN_SIGN.
48073         (signbit_test_data): Add tests of quiet NaN argument.
48074         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
48075
48076         * math/gen-libm-test.pl (show_exceptions): Take extra argument
48077         $ignore_result.
48078         (parse_args): Handle function results specified as IGNORE.
48079         * math/libm-test.inc (IGNORE_RESULT): New macro.
48080         (check_float_internal): Do not check numerical result if flag
48081         IGNORE_RESULT set.
48082         (check_complex): Pass through IGNORE_RESULT to second
48083         check_float_internal call.
48084         (check_int): Do not check numerical result if flag IGNORE_RESULT
48085         set.
48086         (check_long): Likewise.
48087         (check_bool): Likewise.
48088         (check_longlong): Likewise.
48089         (lrint_test_data): Add tests of infinite and NaN arguments.
48090         (lrint_tonearest_test_data): Likewise.
48091         (lrint_towardzero_test_data): Likewise.
48092         (lrint_downward_test_data): Likewise.
48093         (lrint_upward_test_data): Likewise.
48094         (llrint_test_data): Likewise.
48095         (llrint_tonearest_test_data): Likewise.
48096         (llrint_towardzero_test_data): Likewise.
48097         (llrint_downward_test_data): Likewise.
48098         (llrint_upward_test_data): Likewise.
48099         (lround_test_data): Likewise.
48100         (llround_test_data): Likewise.
48101
48102         * math/libm-test.inc (NO_TEST_INLINE): New macro.
48103         (ERRNO_UNCHANGED): Update value.
48104         (ERRNO_EDOM): Likewise.
48105         (ERRNO_ERANGE): Likewise.
48106         (NO_TEST_INLINE_FLOAT): New macro.
48107         (NO_TEST_INLINE_DOUBLE): Likewise.
48108         (enable_test): New function.
48109         (RUN_TEST_f_f): Check enable_test before running test.
48110         (RUN_TEST_2_f): Likewise.
48111         (RUN_TEST_fff_f): Likewise.
48112         (RUN_TEST_c_f): Likewise.
48113         (RUN_TEST_f_f1): Likewise.
48114         (RUN_TEST_fF_f1): Likewise.
48115         (RUN_TEST_fI_f1): Likewise.
48116         (RUN_TEST_ffI_f1): Likewise.
48117         (RUN_TEST_c_c): Likewise.
48118         (RUN_TEST_cc_c): Likewise.
48119         (RUN_TEST_f_i): Likewise.
48120         (RUN_TEST_f_i_tg): Likewise.
48121         (RUN_TEST_ff_i_tg): Likewise.
48122         (RUN_TEST_f_b): Likewise.
48123         (RUN_TEST_f_b_tg): Likewise.
48124         (RUN_TEST_f_l): Likewise.
48125         (RUN_TEST_f_L): Likewise.
48126         (RUN_TEST_fFF_11): Likewise.
48127         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
48128         conditionals.
48129         (cosh_test_data): Likewise.
48130         (exp_test_data): Likewise.
48131         (expm1_test_data): Likewise.
48132         (hypot_test_data): Likewise.
48133         (pow_test_data): Likewise.
48134         (sinh_test_data): Likewise.
48135         (tanh_test_data): Likewise.
48136         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
48137         flags argument.
48138
48139         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
48140         tests with quiet NaN input and output.
48141         (acosh_test_data): Likewise.
48142         (asin_test_data): Likewise.
48143         (asinh_test_data): Likewise.
48144         (atan_test_data): Likewise.
48145         (atanh_test_data): Likewise.
48146         (atan2_test_data): Likewise.
48147         (cbrt_test_data): Likewise.
48148         (cos_test_data): Likewise.
48149         (cosh_test_data): Likewise.
48150         (erf_test_data): Likewise.
48151         (erfc_test_data): Likewise.
48152         (exp_test_data): Likewise.
48153         (exp10_test_data): Likewise.
48154         (exp2_test_data): Likewise.
48155         (expm1_test_data): Likewise.
48156         (hypot_test_data): Likewise.
48157         (j0_test_data): Likewise.
48158         (j1_test_data): Likewise.
48159         (jn_test_data): Likewise.
48160         (lgamma_test_data): Likewise.
48161         (log_test_data): Likewise.
48162         (log10_test_data): Likewise.
48163         (log1p_test_data): Likewise.
48164         (log2_test_data): Likewise.
48165         (pow_test_data): Likewise.
48166         (scalb_test_data): Likewise.
48167         (sin_test_data): Likewise.
48168         (sincos_test_data): Likewise.
48169         (sinh_test_data): Likewise.
48170         (tan_test_data): Likewise.
48171         (tanh_test_data): Likewise.
48172         (tgamma_test_data): Likewise.
48173         (y0_test_data): Likewise.
48174         (y1_test_data): Likewise.
48175         (yn_test_data): Likewise.
48176
48177         [BZ #16167]
48178         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
48179         argument being NaN and avoid computations with second argument in
48180         that case.
48181         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
48182         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
48183         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
48184
48185 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
48186
48187         * locale/iso-639.def: Add Chitwani Tharu (the).
48188
48189 2013-11-14  Andreas Schwab  <schwab@suse.de>
48190
48191         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
48192         word instead of empty string.
48193
48194 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48195
48196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48197         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
48198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48199         (__fe_nomask_env): Likewise.
48200
48201 2013-11-13  Steve Ellcey  <sellcey@mips.com>
48202
48203         * benchtests/bench-timing.h: Include time.h.
48204
48205 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
48206
48207         [BZ #15997]
48208         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
48209         to 3.4.0 for x32.
48210         * sysdeps/unix/sysv/linux/configure: Regenerated.
48211
48212 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
48213
48214         [BZ #16151]
48215         * stdlib/strtod_l.c (round_and_return): Do not consider
48216         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
48217         exponent one less than half the least subnormal exponent.
48218         * stdlib/test-strtod-round-data: Add more tests.
48219         * stdlib/tst-strtod-round.c (tests): Regenerated.
48220
48221 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48222
48223         [BZ #14143]
48224         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
48225         (__fe_mask_env): Likewise.
48226         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
48227         libm_hidden_proto and add function prototype.
48228         (__fe_mask_env): Add function prototype.
48229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
48230         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
48231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
48232         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
48233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
48234         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
48235
48236 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48237
48238         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
48239         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
48240
48241 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
48242
48243         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
48244         of htab_find_slot().
48245
48246 2013-11-11  David S. Miller  <davem@davemloft.net>
48247
48248         [BZ #16150]
48249         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
48250         symbol in the non-vis3 case in static builds.
48251         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
48252         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
48253         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
48254         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
48255
48256 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
48257
48258         [BZ #387]
48259         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
48260         it is empty.
48261
48262 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48263
48264         * benchtests/Makefile: Add bench-strtod.
48265         * benchtests/bench-strtod.c: New file: strtod benchtest
48266
48267 2013-11-11  Andreas Schwab  <schwab@suse.de>
48268
48269         [BZ #16153]
48270         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
48271         terminating NUL in key length.
48272
48273 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48274
48275         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
48276         Add artificial ODP entry for vDSO symbol for PPC64.
48277         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
48278         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
48279
48280 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
48281
48282         [BZ #15374]
48283         * nss/getent.c (services_keys): Recognize services starting with digit.
48284
48285 2013-11-06  David S. Miller  <davem@davemloft.net>
48286
48287         [BZ #15985]
48288         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
48289         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
48290
48291 2013-11-06  Will Newton  <will.newton@linaro.org>
48292
48293         * manual/memory.texi (Malloc Examples): Remove register
48294         keyword from examples.
48295
48296 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
48297
48298         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
48299
48300 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
48301
48302         [BZ #6981]
48303         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
48304         depending on [__GCC_IEC_559 > 0].
48305         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
48306         depending on [__GCC_IEC_559_COMPLEX > 0].
48307
48308 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
48309
48310         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
48311         to iso-639.def.
48312
48313 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
48314
48315         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
48316
48317 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
48318
48319         [BZ #16112]
48320         * malloc/malloc (malloc_info): Do not handle first bin as
48321         special case.
48322
48323 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
48324
48325         * locale/iso-639.def: Add Central Nahuatl (nhn).
48326
48327 2013-11-01  Bruno Haible  <bruno@clisp.org>
48328
48329         [BZ #7003]
48330         * manual/math.texi (BSD Random): Specify range upper bound as
48331         in POSIX.
48332
48333 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
48334
48335         * locale/iso-639.def: Add Meadow Mari (mhr).
48336
48337 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
48338
48339         [BZ #14752], [BZ #15763]
48340         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
48341         Validate name.
48342         * rt/tst_shm.c: Add test for escaping directory.
48343
48344 2013-10-31  Andreas Schwab  <schwab@suse.de>
48345
48346         [BZ #15917]
48347         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
48348         followed by 'x' as part of digit sequence.
48349         * stdio-common/tst-sscanf.c (double_tests2): New tests.
48350
48351 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
48352
48353         [BZ #16037]
48354         * configure.ac: allow GNU Make 4.0 and greater.
48355         * configure: Regenerated.
48356
48357 2013-10-30  Will Newton  <will.newton@linaro.org>
48358
48359         [BZ #16038]
48360         * malloc/hooks.c (memalign_check): Limit alignment to the
48361         maximum representable power of two.
48362         * malloc/malloc.c (__libc_memalign): Likewise.
48363         * malloc/tst-memalign.c (do_test): Add test for very
48364         large alignment values.
48365         * malloc/tst-posix_memalign.c (do_test): Likewise.
48366
48367 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48368
48369         [BZ #11087]
48370         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
48371         (munmap_chunk): Likewise.
48372         (mremap_chunk): Likewise.
48373
48374 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
48375
48376         [BZ #15799]
48377         * stdlib/div.c (div): Remove obsolete code.
48378         * stdlib/ldiv.c (ldiv): Likewise.
48379         * stdlib/lldiv.c (lldiv): Likewise.
48380
48381 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48382
48383         [BZ #16071]
48384         * nss/nss_files/files-XXX.c (get_contents_ret): New
48385         enumerator.
48386         (get_contents): New function.
48387         (internal_getent): Use it.  Expand size of LINEBUFLEN.
48388
48389 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
48390
48391         * configure.in: Moved to ...
48392         * configure.ac: ... here. Change reference to configure.in
48393         to configure.ac.
48394         * sysdeps/arm/preconfigure.ac: ... here.
48395         configure.in to configure.ac.
48396         * sysdeps/gnu/configure.in: Moved to ...
48397         * sysdeps/gnu/configure.ac: ... here.
48398         * sysdeps/i386/configure.in: Moved to ...
48399         * sysdeps/i386/configure.ac: ... here.
48400         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
48401         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
48402         * sysdeps/mach/configure.in: Moved to ...
48403         * sysdeps/mach/configure.ac: ... here.
48404         * sysdeps/mach/hurd/configure.in: Moved to ...
48405         * sysdeps/mach/hurd/configure.ac: ... here.
48406         * sysdeps/powerpc/configure.in: Moved to ...
48407         * sysdeps/powerpc/configure.ac: ... here.
48408         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
48409         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
48410         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
48411         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
48412         * sysdeps/s390/s390-32/configure.in: Moved to ...
48413         * sysdeps/s390/s390-32/configure.ac: ... here.
48414         * sysdeps/s390/s390-64/configure.in: Moved to ...
48415         * sysdeps/s390/s390-64/configure.ac: ... here.
48416         * sysdeps/sh/configure.in: Moved to ...
48417         * sysdeps/sh/configure.ac: ... here.
48418         * sysdeps/sparc/configure.in: Moved to ...
48419         * sysdeps/sparc/configure.ac: ... here.
48420         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
48421         * sysdeps/unix/sysv/linux/configure.ac: ... here.
48422         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
48423         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
48424         * sysdeps/x86_64/configure.in: Moved to ...
48425         * sysdeps/x86_64/configure.ac: ... here.
48426         * sysdeps/x86_64/preconfigure.in: Moved to ...
48427         * sysdeps/x86_64/preconfigure.ac: ... here.
48428         * aclocal.m4: Change reference to configure.in to configure.ac.
48429         * config.h.in: Likewise.
48430         * manual/install.texi: Likewise.
48431         * manual/maint.texi: Likewise.
48432         * Makefile: Likewise.
48433         * malloc/Makefile: Likewise.
48434         * nscd/Makefile: Likewise.
48435         * Makeconfig: Change reference to configure.in and
48436         preconfigure.in to configure.ac and preconfigure.ac
48437         respectively.
48438         * INSTALL: Regenerated.
48439         * configure: Likewise.
48440         * sysdeps/gnu/configure: Likewise.
48441         * sysdeps/i386/configure: Likewise.
48442         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
48443         * sysdeps/mach/configure: Likewise.
48444         * sysdeps/mach/hurd/configure: Likewise.
48445         * sysdeps/powerpc/configure: Likewise.
48446         * sysdeps/powerpc/powerpc32/configure: Likewise.
48447         * sysdeps/powerpc/powerpc64/configure: Likewise.
48448         * sysdeps/s390/s390-32/configure: Likewise.
48449         * sysdeps/s390/s390-64/configure: Likewise.
48450         * sysdeps/sh/configure: Likewise.
48451         * sysdeps/sparc/configure: Likewise.
48452         * sysdeps/unix/sysv/linux/configure: Likewise.
48453         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
48454         * sysdeps/x86_64/configure: Likewise.
48455         * sysdeps/x86_64/preconfigure: Likewise.
48456
48457 2013-10-29  Andreas Schwab  <schwab@suse.de>
48458
48459         * stdio-common/Makefile (tst-swscanf-ENV): Define.
48460
48461 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
48462
48463         * benchtests/pow-inputs: Add new inputs.
48464
48465         * benchtests/exp-inputs: Add new inputs.
48466
48467         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
48468         conditional check for return value.
48469         (__cos32): Likewise.
48470
48471 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48472
48473         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
48474         to provide a boost for large inputs with word alignment.
48475         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
48476         implementation based on optimized PPC64 strcpy.
48477         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
48478         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
48479         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
48480         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
48481
48482 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48483
48484         [BZ #2801]
48485         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
48486
48487 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48488
48489         [BZ #14876]
48490         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
48491         * time/tst-strptime.c (day_tests): Add testcase.
48492
48493 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
48494
48495         [BZ #14029]
48496         * manual/pattern.texi: Acknowledge that fnmatch can fail.
48497
48498 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
48499
48500         [BZ #16074]
48501         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
48502         MAP_FAILED on error.
48503
48504 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48505
48506         [BZ #16072]
48507         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
48508         heap for large requests.
48509
48510 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
48511
48512         [BZ #9954]
48513         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
48514         result if the result has no associated interface.
48515         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
48516         interface for all 127.X.Y.Z addresses.
48517
48518 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
48519
48520         * locale/iso-639.def: Add Ligurian (lij)
48521
48522 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
48523
48524         [BZ #15825]
48525         * sunrpc/rpc_main.c: Document rpcgen -5.
48526
48527 2013-10-19  Michael Stahl  <mstahl@redhat.com>
48528
48529         * elf/rtld.c (do_preload): Print the reason why preloading failed.
48530
48531 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48532
48533         [BZ #10278]
48534         * posix/glob.c: Match only directories when trailing slash is present.
48535         * posix/tst-gnuglob.c (my_opendir): Do not open files.
48536         (main): Add testcase.
48537
48538 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
48539
48540         [BZ #15670]
48541         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
48542
48543 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
48544
48545         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
48546         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
48547         AUTH_DES and cindex for FIPS 140-2.
48548         (DES Encryption): Add cindex FIPS 46-3.
48549
48550         * locale/locarchive.h (struct locarhandle): Add fname.
48551         * locale/programs/localedef.c (main): Pass ARGV[remaining]
48552         if an optional argument was specified to --list-archive,
48553         otherwise NULL.
48554         * locale/programs/locarchive.c (show_archive_content): Take new
48555         argument fname and pass it via ah.fname to open_archive.
48556         * locale/programs/localedef.h: Update decl.
48557         (open_archive): If AH->fname is non-null, open that file
48558         rather than the default file name, and don't ignore ENOENT.
48559         (create_archive): Set AH.fname to NULL.
48560         (delete_locales_from_archive): Likewise.
48561         (add_locales_to_archive): Likewise.
48562         * locale/programs/locfile.c (write_all_categories): Likewise.
48563
48564 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
48565             Aldy Hernandez  <aldyh@redhat.com>
48566
48567         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
48568         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
48569         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
48570         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
48571         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
48572         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
48573         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
48574         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
48575         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
48576         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
48577         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
48578         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
48579         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
48580         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
48581         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
48582         Likewise.
48583         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
48584         Likewise.
48585         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
48586         Likewise.
48587         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
48588         Likewise.
48589         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
48590         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
48591         Likewise.
48592         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
48593         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
48594         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
48595         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
48596         Likewise.
48597         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
48598         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
48599         * sysdeps/powerpc/preconfigure: Likewise.
48600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
48601         Likewise.
48602         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
48603         Replace contents of file by #include of <fenv_libc.h>.
48604         * sysdeps/powerpc/soft-fp/sfp-machine.h
48605         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
48606         and <sys/prctl.h>.
48607         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
48608         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
48609         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
48610         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
48611         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
48612         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
48613         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
48614         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
48615         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
48616         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
48617         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
48618         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
48619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
48620         Allow copysignl PLT reference to be missing.
48621
48622 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
48623             Joseph Myers  <joseph@codesourcery.com
48624
48625         [BZ #15948]
48626         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
48627         single character.
48628         (add_to_tablewc): Assert sequence of wide characters is nonempty.
48629
48630 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
48631
48632         * elf/tst-tls-dlinfo.c: Don't include tls.h.
48633         * elf/tst-tls1.c: Likewise.
48634         * elf/tst-tls10.h: Likewise.
48635         * elf/tst-tls14.c: Likewise.
48636         * elf/tst-tls2.c: Likewise.
48637         * elf/tst-tls3.c: Likewise.
48638         * elf/tst-tls4.c: Likewise.
48639         * elf/tst-tls5.c: Likewise.
48640         * elf/tst-tls6.c: Likewise.
48641         * elf/tst-tls7.c: Likewise.
48642         * elf/tst-tls8.c: Likewise.
48643         * elf/tst-tls9.c: Likewise.
48644         * elf/tst-tlsmod1.c: Likewise.
48645         * elf/tst-tlsmod13.c: Likewise.
48646         * elf/tst-tlsmod13a.c: Likewise.
48647         * elf/tst-tlsmod14a.c: Likewise.
48648         * elf/tst-tlsmod16a.c: Likewise.
48649         * elf/tst-tlsmod16b.c: Likewise.
48650         * elf/tst-tlsmod2.c: Likewise.
48651         * elf/tst-tlsmod3.c: Likewise.
48652         * elf/tst-tlsmod4.c: Likewise.
48653         * elf/tst-tlsmod5.c: Likewise.
48654         * elf/tst-tlsmod6.c: Likewise.
48655
48656 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
48657
48658         [BZ #12486]
48659         * malloc/malloc.c: remove checks for statistics.
48660
48661 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48662
48663         [BZ #15277]
48664         * inet/inet_net.c (inet_network): Detect additional invalid strings.
48665         * inet/tst-network.c: Add testcase.
48666
48667 2013-10-17  Andreas Schwab  <schwab@suse.de>
48668
48669         [BZ #15218]
48670         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
48671         to determine canonical name.
48672
48673 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
48674
48675         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
48676         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
48677         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48678         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
48679         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48680         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
48681         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48682         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
48683         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
48684         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
48685         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
48686         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48687         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
48688         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
48689         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
48690         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
48691         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48692         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
48693         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
48694         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
48695         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48696         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48697         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
48698         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
48699         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
48700         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
48701         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
48702         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
48703         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
48704         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
48705         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
48706         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48707         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
48708         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
48709         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
48710         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
48711         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
48712         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
48713         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
48714         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48715         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
48716         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
48717         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
48718         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
48719         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
48720         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
48721         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
48722         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
48723         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
48724         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
48725         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
48726         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
48727         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
48728         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
48729         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
48730         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
48731         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48732         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
48733
48734 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
48735
48736         [BZ #16041]
48737         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
48738         make result into a quiet NaN.
48739
48740 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
48741
48742         * soft-fp/adddf3.c: Fix horizontal whitespace.
48743         * soft-fp/addsf3.c: Likewise.
48744         * soft-fp/addtf3.c: Likewise.
48745         * soft-fp/divdf3.c: Likewise.
48746         * soft-fp/divsf3.c: Likewise.
48747         * soft-fp/divtf3.c: Likewise.
48748         * soft-fp/double.h: Likewise.
48749         * soft-fp/eqdf2.c: Likewise.
48750         * soft-fp/eqsf2.c: Likewise.
48751         * soft-fp/eqtf2.c: Likewise.
48752         * soft-fp/extenddftf2.c: Likewise.
48753         * soft-fp/extended.h: Likewise.
48754         * soft-fp/extendsfdf2.c: Likewise.
48755         * soft-fp/extendsftf2.c: Likewise.
48756         * soft-fp/extendxftf2.c: Likewise.
48757         * soft-fp/fixdfdi.c: Likewise.
48758         * soft-fp/fixdfsi.c: Likewise.
48759         * soft-fp/fixdfti.c: Likewise.
48760         * soft-fp/fixsfdi.c: Likewise.
48761         * soft-fp/fixsfsi.c: Likewise.
48762         * soft-fp/fixsfti.c: Likewise.
48763         * soft-fp/fixtfdi.c: Likewise.
48764         * soft-fp/fixtfsi.c: Likewise.
48765         * soft-fp/fixtfti.c: Likewise.
48766         * soft-fp/fixunsdfdi.c: Likewise.
48767         * soft-fp/fixunsdfsi.c: Likewise.
48768         * soft-fp/fixunsdfti.c: Likewise.
48769         * soft-fp/fixunssfdi.c: Likewise.
48770         * soft-fp/fixunssfsi.c: Likewise.
48771         * soft-fp/fixunssfti.c: Likewise.
48772         * soft-fp/fixunstfdi.c: Likewise.
48773         * soft-fp/fixunstfsi.c: Likewise.
48774         * soft-fp/fixunstfti.c: Likewise.
48775         * soft-fp/floatdidf.c: Likewise.
48776         * soft-fp/floatdisf.c: Likewise.
48777         * soft-fp/floatditf.c: Likewise.
48778         * soft-fp/floatsidf.c: Likewise.
48779         * soft-fp/floatsisf.c: Likewise.
48780         * soft-fp/floatsitf.c: Likewise.
48781         * soft-fp/floattidf.c: Likewise.
48782         * soft-fp/floattisf.c: Likewise.
48783         * soft-fp/floattitf.c: Likewise.
48784         * soft-fp/floatundidf.c: Likewise.
48785         * soft-fp/floatundisf.c: Likewise.
48786         * soft-fp/floatunditf.c: Likewise.
48787         * soft-fp/floatunsidf.c: Likewise.
48788         * soft-fp/floatunsisf.c: Likewise.
48789         * soft-fp/floatunsitf.c: Likewise.
48790         * soft-fp/floatuntidf.c: Likewise.
48791         * soft-fp/floatuntisf.c: Likewise.
48792         * soft-fp/floatuntitf.c: Likewise.
48793         * soft-fp/fmadf4.c: Likewise.
48794         * soft-fp/fmasf4.c: Likewise.
48795         * soft-fp/fmatf4.c: Likewise.
48796         * soft-fp/gedf2.c: Likewise.
48797         * soft-fp/gesf2.c: Likewise.
48798         * soft-fp/getf2.c: Likewise.
48799         * soft-fp/ledf2.c: Likewise.
48800         * soft-fp/lesf2.c: Likewise.
48801         * soft-fp/letf2.c: Likewise.
48802         * soft-fp/muldf3.c: Likewise.
48803         * soft-fp/mulsf3.c: Likewise.
48804         * soft-fp/multf3.c: Likewise.
48805         * soft-fp/negdf2.c: Likewise.
48806         * soft-fp/negsf2.c: Likewise.
48807         * soft-fp/negtf2.c: Likewise.
48808         * soft-fp/op-1.h: Likewise.
48809         * soft-fp/op-2.h: Likewise.
48810         * soft-fp/op-4.h: Likewise.
48811         * soft-fp/op-8.h: Likewise.
48812         * soft-fp/op-common.h: Likewise.
48813         * soft-fp/quad.h: Likewise.
48814         * soft-fp/single.h: Likewise.
48815         * soft-fp/soft-fp.h: Likewise.
48816         * soft-fp/sqrtdf2.c: Likewise.
48817         * soft-fp/sqrtsf2.c: Likewise.
48818         * soft-fp/sqrttf2.c: Likewise.
48819         * soft-fp/subdf3.c: Likewise.
48820         * soft-fp/subsf3.c: Likewise.
48821         * soft-fp/subtf3.c: Likewise.
48822         * soft-fp/truncdfsf2.c: Likewise.
48823         * soft-fp/trunctfdf2.c: Likewise.
48824         * soft-fp/trunctfsf2.c: Likewise.
48825         * soft-fp/trunctfxf2.c: Likewise.
48826         * soft-fp/unorddf2.c: Likewise.
48827         * soft-fp/unordsf2.c: Likewise.
48828         * soft-fp/unordtf2.c: Likewise.
48829
48830 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
48831
48832         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
48833         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
48834
48835 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
48836
48837         * elf/dl-libc.c: Clear initfini list after freeing.
48838
48839 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
48840
48841         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
48842         * soft-fp/addsf3.c: Likewise.
48843         * soft-fp/addtf3.c: Likewise.
48844         * soft-fp/divdf3.c: Likewise.
48845         * soft-fp/divsf3.c: Likewise.
48846         * soft-fp/divtf3.c: Likewise.
48847         * soft-fp/double.h: Likewise.
48848         * soft-fp/eqdf2.c: Likewise.
48849         * soft-fp/eqsf2.c: Likewise.
48850         * soft-fp/eqtf2.c: Likewise.
48851         * soft-fp/extenddftf2.c: Likewise.
48852         * soft-fp/extended.h: Likewise.
48853         * soft-fp/extendsfdf2.c: Likewise.
48854         * soft-fp/extendsftf2.c: Likewise.
48855         * soft-fp/extendxftf2.c: Likewise.
48856         * soft-fp/fixdfdi.c: Likewise.
48857         * soft-fp/fixdfsi.c: Likewise.
48858         * soft-fp/fixdfti.c: Likewise.
48859         * soft-fp/fixsfdi.c: Likewise.
48860         * soft-fp/fixsfsi.c: Likewise.
48861         * soft-fp/fixsfti.c: Likewise.
48862         * soft-fp/fixtfdi.c: Likewise.
48863         * soft-fp/fixtfsi.c: Likewise.
48864         * soft-fp/fixtfti.c: Likewise.
48865         * soft-fp/fixunsdfdi.c: Likewise.
48866         * soft-fp/fixunsdfsi.c: Likewise.
48867         * soft-fp/fixunsdfti.c: Likewise.
48868         * soft-fp/fixunssfdi.c: Likewise.
48869         * soft-fp/fixunssfsi.c: Likewise.
48870         * soft-fp/fixunssfti.c: Likewise.
48871         * soft-fp/fixunstfdi.c: Likewise.
48872         * soft-fp/fixunstfsi.c: Likewise.
48873         * soft-fp/fixunstfti.c: Likewise.
48874         * soft-fp/floatdidf.c: Likewise.
48875         * soft-fp/floatdisf.c: Likewise.
48876         * soft-fp/floatditf.c: Likewise.
48877         * soft-fp/floatsidf.c: Likewise.
48878         * soft-fp/floatsisf.c: Likewise.
48879         * soft-fp/floatsitf.c: Likewise.
48880         * soft-fp/floattidf.c: Likewise.
48881         * soft-fp/floattisf.c: Likewise.
48882         * soft-fp/floattitf.c: Likewise.
48883         * soft-fp/floatundidf.c: Likewise.
48884         * soft-fp/floatundisf.c: Likewise.
48885         * soft-fp/floatunsidf.c: Likewise.
48886         * soft-fp/floatunsisf.c: Likewise.
48887         * soft-fp/floatuntidf.c: Likewise.
48888         * soft-fp/floatuntisf.c: Likewise.
48889         * soft-fp/floatuntitf.c: Likewise.
48890         * soft-fp/fmadf4.c: Likewise.
48891         * soft-fp/fmasf4.c: Likewise.
48892         * soft-fp/fmatf4.c: Likewise.
48893         * soft-fp/gedf2.c: Likewise.
48894         * soft-fp/gesf2.c: Likewise.
48895         * soft-fp/getf2.c: Likewise.
48896         * soft-fp/ledf2.c: Likewise.
48897         * soft-fp/lesf2.c: Likewise.
48898         * soft-fp/letf2.c: Likewise.
48899         * soft-fp/muldf3.c: Likewise.
48900         * soft-fp/mulsf3.c: Likewise.
48901         * soft-fp/multf3.c: Likewise.
48902         * soft-fp/negdf2.c: Likewise.
48903         * soft-fp/negsf2.c: Likewise.
48904         * soft-fp/negtf2.c: Likewise.
48905         * soft-fp/op-1.h: Likewise.
48906         * soft-fp/op-2.h: Likewise.
48907         * soft-fp/op-4.h: Likewise.
48908         * soft-fp/op-8.h: Likewise.
48909         * soft-fp/op-common.h: Likewise.
48910         * soft-fp/quad.h: Likewise.
48911         * soft-fp/single.h: Likewise.
48912         * soft-fp/soft-fp.h: Likewise.
48913         * soft-fp/sqrtdf2.c: Likewise.
48914         * soft-fp/sqrtsf2.c: Likewise.
48915         * soft-fp/sqrttf2.c: Likewise.
48916         * soft-fp/subdf3.c: Likewise.
48917         * soft-fp/subsf3.c: Likewise.
48918         * soft-fp/subtf3.c: Likewise.
48919         * soft-fp/truncdfsf2.c: Likewise.
48920         * soft-fp/trunctfdf2.c: Likewise.
48921         * soft-fp/trunctfsf2.c: Likewise.
48922         * soft-fp/trunctfxf2.c: Likewise.
48923         * soft-fp/unorddf2.c: Likewise.
48924         * soft-fp/unordsf2.c: Likewise.
48925         * soft-fp/unordtf2.c: Likewise.
48926
48927 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
48928
48929         [BZ #15672]
48930         * misc/error.c (error_tail): Fix possible buffer overflow.
48931
48932 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
48933
48934         [BZ #13028]
48935         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
48936         address.
48937
48938 2013-10-14  P. J. McDermott  <pj@pehjota.net>
48939
48940         [BZ #832]
48941         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
48942         testing pipefail option.
48943
48944 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
48945
48946         * soft-fp/double.h: Indent preprocessor directives inside #if.
48947         * soft-fp/extended.h: Likewise.
48948         * soft-fp/op-2.h: Likewise.
48949         * soft-fp/op-4.h: Likewise.
48950         * soft-fp/op-common.h: Likewise.
48951         * soft-fp/quad.h: Likewise.
48952         * soft-fp/single.h: Likewise.
48953         * soft-fp/soft-fp.h: Likewise.
48954
48955 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
48956
48957         * iconv/iconv_prog.c: Fix typos.
48958         * stdio-common/psiginfo-data.h: Likewise.
48959
48960 2013-10-12   Reuben Thomas <rrt@sc3d.org>
48961
48962         [BZ #15764]
48963         * locale/setlocale.c: Fix typo.
48964
48965 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
48966
48967         [BZ #16036]
48968         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
48969         signaling NaN arguments.
48970         * soft-fp/unordsf2.c (__unordsf2): Likewise.
48971         * soft-fp/unordtf2.c (__unordtf2): Likewise.
48972
48973         [BZ #14910]
48974         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
48975         unordered operands.
48976         * soft-fp/gesf2.c (__gesf2): Likewise.
48977         * soft-fp/getf2.c (__getf2): Likewise.
48978         * soft-fp/ledf2.c (__ledf2): Likewise.
48979         * soft-fp/lesf2.c (__lesf2): Likewise.
48980         * soft-fp/letf2.c (__letf2): Likewise.
48981
48982         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
48983         * soft-fp/eqsf2.c (__eqsf2): Likewise.
48984         * soft-fp/eqtf2.c (__eqtf2): Likewise.
48985         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
48986         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
48987         * soft-fp/fixdfti.c (__fixdfti): Likewise.
48988         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
48989         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
48990         * soft-fp/fixsfti.c (__fixsfti): Likewise.
48991         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
48992         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
48993         * soft-fp/fixtfti.c (__fixtfti): Likewise.
48994         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
48995         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
48996         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
48997         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
48998         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
48999         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
49000         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
49001         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
49002         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
49003         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
49004         * soft-fp/floatdisf.c (__floatdisf): Likewise.
49005         * soft-fp/floatsisf.c (__floatsisf): Likewise.
49006         * soft-fp/floattidf.c (__floattidf): Likewise.
49007         * soft-fp/floattisf.c (__floattisf): Likewise.
49008         * soft-fp/floattitf.c (__floattitf): Likewise.
49009         * soft-fp/floatundidf.c (__floatundidf): Likewise.
49010         * soft-fp/floatundisf.c (__floatundisf): Likewise.
49011         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
49012         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
49013         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
49014         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
49015         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
49016         * soft-fp/gesf2.c (__gesf2): Likewise.
49017         * soft-fp/getf2.c (__getf2): Likewise.
49018         * soft-fp/ledf2.c (__ledf2): Likewise.
49019         * soft-fp/lesf2.c (__lesf2): Likewise.
49020         * soft-fp/letf2.c (__letf2): Likewise.
49021
49022         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
49023         Undefine and redefine.
49024         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
49025         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
49026         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
49027         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
49028         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49029         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
49030         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49031         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
49032         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49033         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
49034         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49035         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
49036         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49037         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
49038         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
49039
49040         [BZ #16032]
49041         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
49042         without decrementing exponent if mantissa >= that for the
49043         denominator, not >.
49044         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
49045         denominator, not >.  Decrement exponent in < case instead of
49046         incrementing in >= case.
49047         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
49048         without decrementing exponent if mantissa >= that for the
49049         denominator, not >.
49050
49051         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
49052         computing saturated result for unsigned overflow.
49053
49054 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49055             Jeff Law  <law@redhat.com>
49056
49057         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
49058         (atan2Mp): Add systemtap probe marker.
49059         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
49060         (__ieee754_log): Add systemtap probe marker.
49061         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
49062         (atanMp): Add systemtap probe marker.
49063         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
49064         (tanMp): Add systemtap probe marker.
49065         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
49066         (__slowexp): Add systemtap probe marker.
49067         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
49068         (__slowpow): Add systemtap probe marker.
49069         * manual/probes.texi: Document probes.
49070
49071 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
49072
49073         [BZ #15362]
49074         * libio/fileops.c (_IO_new_file_write): Return count of bytes
49075         written.
49076         (_IO_new_file_xsputn): Don't return EOF if nothing has been
49077         written.
49078         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
49079         written to buffer but not flushed.
49080         * libio/iofwrite_u.c:  Likewise.
49081         * libio/iopadn.c:  Return bytes returned even if EOF was
49082         encountered.
49083         * libio/iowpadn.c:  Likewise.
49084         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
49085         if _IO_padn does not write the whole buffer.
49086         [!COMPILE_WPRINTF] (PAD): Likewise.
49087
49088 2013-10-10  David S. Miller  <davem@davemloft.net>
49089
49090         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
49091         directory block.
49092
49093 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49094
49095         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
49096         instead of FSF address.
49097         * soft-fp/fixdfti.c: Likewise.
49098         * soft-fp/fixsfti.c: Likewise.
49099         * soft-fp/fixtfti.c: Likewise.
49100         * soft-fp/fixunsdfti.c: Likewise.
49101         * soft-fp/fixunssfti.c: Likewise.
49102         * soft-fp/fixunstfti.c: Likewise.
49103         * soft-fp/floattidf.c: Likewise.
49104         * soft-fp/floattisf.c: Likewise.
49105         * soft-fp/floattitf.c: Likewise.
49106         * soft-fp/floatuntidf.c: Likewise.
49107         * soft-fp/floatuntisf.c: Likewise.
49108         * soft-fp/floatuntitf.c: Likewise.
49109         * soft-fp/trunctfxf2.c: Likewise.
49110
49111         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
49112         * soft-fp/fixdfti.c: Likewise.
49113         * soft-fp/fixsfti.c: Likewise.
49114         * soft-fp/fixtfti.c: Likewise.
49115         * soft-fp/fixunsdfti.c: Likewise.
49116         * soft-fp/fixunssfti.c: Likewise.
49117         * soft-fp/fixunstfti.c: Likewise.
49118         * soft-fp/floattidf.c: Likewise.
49119         * soft-fp/floattisf.c: Likewise.
49120         * soft-fp/floattitf.c: Likewise.
49121         * soft-fp/floatuntidf.c: Likewise.
49122         * soft-fp/floatuntisf.c: Likewise.
49123         * soft-fp/floatuntitf.c: Likewise.
49124         * soft-fp/trunctfxf2.c: Likewise.
49125
49126 2013-10-10  David S. Miller  <davem@davemloft.net>
49127
49128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49129
49130 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
49131
49132         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
49133         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
49134         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
49135         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
49136         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
49137         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
49138         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
49139
49140         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
49141         for NaNs before doing comparisons on argument.
49142         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
49143         Likewise.
49144
49145 2013-10-10  Will Newton  <will.newton@linaro.org>
49146
49147         * malloc/hooks.c (memalign_check): Ensure the value of bytes
49148         passed to _int_memalign does not overflow.
49149
49150 2013-10-10  Torvald Riegel  <triegel@redhat.com>
49151
49152         * scripts/bench.pl: Add include-sources directive.
49153         * benchtests/README: Update documentation.
49154
49155 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
49156
49157         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
49158         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
49159         instead of FP_INIT_ROUNDMODE.
49160         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
49161         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
49162
49163         [BZ #16034]
49164         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
49165         copy class of input value.
49166         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
49167         not handle exceptions.
49168         * soft-fp/negsf2.c (__negsf2): Likewise.
49169         * soft-fp/negtf2.c (__negtf2): Likewise.
49170         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
49171
49172 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
49173
49174         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
49175         semicolon.  From Linux kernel.
49176
49177 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
49178
49179         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
49180
49181 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
49182
49183         [BZ #156]
49184         * manual/socket.texi: Added statement about buffer
49185         for gethostbyname2_r.
49186
49187 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
49188
49189         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
49190         Use .p2align directive instead, throughout.
49191         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
49192         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
49193         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
49194         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
49195         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
49196         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
49197         * sysdeps/x86_64/strchr.S: Likewise.
49198         * sysdeps/x86_64/strrchr.S: Likewise.
49199
49200 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49201
49202         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
49203
49204         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
49205
49206         * sysdeps/generic/math_private.h (__mpsin1): Remove
49207         declaration.
49208         (__mpcos1): Likewise.
49209         (__mpsin): New argument __range_reduce.
49210         (__mpcos): Likewise.
49211         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
49212         (slow): Use __mpsin and __mpcos.
49213         (slow1): Likewise.
49214         (slow2): Likewise.
49215         (sloww): Likewise.
49216         (sloww1): Likewise.
49217         (sloww2): Likewise.
49218         (bsloww): Likewise.
49219         (bsloww1): Likewise.
49220         (bsloww2): Likewise.
49221         (cslow2): Likewise.
49222         (csloww): Likewise.
49223         (csloww1): Likewise.
49224         (csloww2): Likewise.
49225         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
49226         range_reduce.  Merge in __mpsin1.
49227         (__mpcos): Likewise.
49228         (__mpsin1): Remove.
49229         (__mpcos1): Likewise.
49230
49231 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
49232
49233         * locale/loadlocale.c (_nl_intern_locale_data): Use
49234         LOCFILE_ALIGNED_P.
49235         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
49236         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
49237         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
49238         obstack data is appropriately aligned.
49239         (obstack_int32_grow_fast): Likewise.
49240         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
49241         * locale/programs/locfile.c (add_locale_uint32): Likewise.
49242         (add_locale_uint32_array): Likewise.
49243
49244 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49245
49246         * benchtests/Makefile: Remove ARGLIST and RET variables.
49247         ($(objpfx)bench-%.c): Pass only function name to the script.
49248         * benchtests/README: Update documentation.
49249         * benchtests/acos-inputs: Add new directives.
49250         * benchtests/acosh-inputs: Likewise.
49251         * benchtests/asin-inputs: Likewise.
49252         * benchtests/asinh-inputs: Likewise.
49253         * benchtests/atan-inputs: Likewise.
49254         * benchtests/atanh-inputs: Likewise.
49255         * benchtests/cos-inputs: Likewise.
49256         * benchtests/cosh-inputs: Likewise.
49257         * benchtests/exp-inputs: Likewise.
49258         * benchtests/log-inputs: Likewise.
49259         * benchtests/pow-inputs: Likewise.
49260         * benchtests/rint-inputs: Likewise.
49261         * benchtests/sin-inputs: Likewise.
49262         * benchtests/sinh-inputs: Likewise.
49263         * benchtests/tan-inputs: Likewise.
49264         * benchtests/tanh-inputs: Likewise.
49265         * scripts/bench.pl: Add support for new directives.
49266
49267 2013-10-07  Alan Modra  <amodra@gmail.com>
49268
49269         * README: Fix careless merge.
49270
49271 2013-10-05  Alan Modra  <amodra@gmail.com>
49272
49273         * NEWS: Mention powerpc64le support and bugs fixed.
49274         * README: Both big-endian and little-endian powerpc64 supported.
49275
49276 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49277
49278         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
49279         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
49280         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
49281         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
49282
49283 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
49284
49285         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
49286         match prototype.
49287
49288 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
49289
49290         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
49291         Move -mhard-float appending from
49292         ports/sysdeps/powerpc/powerpc32/Makefile.
49293         [$(with-fp) = yes] (ASFLAGS): Likewise.
49294         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
49295         * sysdeps/powerpc/nofpu: Move directory from
49296         ports/sysdeps/powerpc/nofpu.
49297         * sysdeps/powerpc/soft-fp: Move directory from
49298         ports/sysdeps/powerpc/soft-fp.
49299         * sysdeps/powerpc/powerpc32/405: Move directory from
49300         ports/sysdeps/powerpc/powerpc32/405.
49301         * sysdeps/powerpc/powerpc32/440: Move directory from
49302         ports/sysdeps/powerpc/powerpc32/440.
49303         * sysdeps/powerpc/powerpc32/464: Move directory from
49304         ports/sysdeps/powerpc/powerpc32/464.
49305         * sysdeps/powerpc/powerpc32/476: Move directory from
49306         ports/sysdeps/powerpc/powerpc32/476.
49307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
49308         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
49309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
49310         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
49311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
49312         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
49313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
49314         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
49315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
49316         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
49317         * README: Update for powerpc-*-linux-gnu software floating point
49318         support in libc.
49319
49320         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
49321         case to powerpc/powerpc32*.
49322         * sysdeps/unix/sysv/linux/configure: Regenerated.
49323
49324         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
49325         (_FPU_MASK_OM): Define as 0x04.
49326         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
49327         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
49328         0x00c10080.
49329         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
49330         0x0000003c.
49331         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
49332
49333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
49334         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49335         getcontext_e500.
49336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
49337         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
49338         setcontext_e500.
49339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
49340         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
49341         and setcontext_e500.
49342
49343 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
49344
49345         * locale/iso-3166.def: Update iso-1366.def and related occurrences
49346
49347 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
49348
49349         * manual/threads.texi (Default Thread Attributes): Fix typo.
49350
49351 2013-10-04  Will Newton  <will.newton@linaro.org>
49352
49353         * malloc/Makefile: Add tst-memalign.
49354         * malloc/tst-memalign.c: New file.
49355
49356         * malloc/tst-posix_memalign.c: Add comments.
49357         (do_test): Add comments and call free on all potentially
49358         allocated pointers. Add space after cast.
49359
49360         * malloc/tst-pvalloc.c: Add comments.
49361         (do_test): Add comments and call free on all potentially
49362         allocated pointers. Remove duplicate check for NULL pointer.
49363         Add space after cast.
49364
49365         * malloc/tst-valloc.c: Add comments.
49366         (do_test): Add comments and call free on all potentially
49367         allocated pointers. Remove duplicate check for NULL pointer.
49368         Add space after cast.
49369
49370 2013-10-04  Alan Modra  <amodra@gmail.com>
49371
49372         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49373         Use stdint types in rather than __attribute__((mode())).
49374         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49375
49376 2013-10-04  Alan Modra  <amodra@gmail.com>
49377
49378         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
49379         Correct handling of unaligned relocs for little-endian.
49380         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
49381
49382 2013-10-04  Alan Modra  <amodra@gmail.com>
49383
49384         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
49385         * configure: Regenerate.
49386         * nptl/shlib-versions: Powerpc*le starts at 2.18.
49387         * shlib-versions: Likewise.
49388
49389 2013-10-04  Alan Modra  <amodra@gmail.com>
49390
49391         * string/tester.c (test_memrchr): Increment reported test cycle.
49392
49393 2013-10-04  Alan Modra  <amodra@gmail.com>
49394
49395         * string/test-memcpy.c (do_one_test): When reporting errors, print
49396         string address and don't overrun end of string.
49397
49398 2013-10-04  Alan Modra  <amodra@gmail.com>
49399
49400         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
49401         insrdi.  Make better use of reg selection to speed exit slightly.
49402         Schedule entry path a little better.  Remove useless "are we done"
49403         checks on entry to main loop.  Handle wrapping around zero address.
49404         Correct main loop count.  Handle single left-over word from main
49405         loop inline rather than by using loop_small.  Remove extra word
49406         case in loop_small caused by wrong loop count.  Add little-endian
49407         support.
49408         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
49409         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
49410         cache hint.
49411         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
49412         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
49413         support.  Avoid rlwimi.
49414         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
49415
49416 2013-10-04  Alan Modra  <amodra@gmail.com>
49417
49418         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
49419         insrdi.  Formatting.
49420         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
49421         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
49422         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
49423         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
49424         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
49425         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
49426
49427 2013-10-04  Alan Modra  <amodra@gmail.com>
49428
49429         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
49430         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
49431         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
49432         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
49433         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
49434         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
49435         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
49436         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49437         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
49438         use of regs.  Use power7 mtocrf.  Tidy function tails.
49439
49440 2013-10-04  Alan Modra  <amodra@gmail.com>
49441
49442         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
49443         Formatting.  Consistently use rXXX register defines or rN defines.
49444         Use early exit labels that avoid restoring unused non-volatile regs.
49445         Make cr field use more consistent with rWORDn compares.  Rename
49446         regs used as shift registers for unaligned loop, using rN defines
49447         for short lifetime/multiple use regs.
49448         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
49449         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
49450         addi 1,1,64 to pop stack frame.  Simplify return value code.
49451         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
49452
49453 2013-10-04  Alan Modra  <amodra@gmail.com>
49454
49455         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
49456         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
49457         rather than rlwimi.
49458         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
49459         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
49460         little-endian support.  Correct typos.
49461         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
49462         rather than rlwimi.
49463         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
49464         in loop and entry code to keep "and." results.
49465         (strchr): Add little-endian support.  Comment.  Move cntlzd
49466         earlier in tail.
49467         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
49468
49469 2013-10-04  Alan Modra  <amodra@gmail.com>
49470
49471         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
49472         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
49473         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
49474         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
49475
49476 2013-10-04  Alan Modra  <amodra@gmail.com>
49477
49478         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
49479         (rTMP): Define as r11.
49480         (strcmp): Add little-endian support.  Optimise tail.
49481         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
49482         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
49483         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
49484         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
49485         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
49486         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49487         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
49488
49489 2013-10-04  Alan Modra  <amodra@gmail.com>
49490
49491         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
49492         little-endian support.  Remove unnecessary "are we done" tests.
49493         Handle "s" wrapping around zero and extremely large "size".
49494         Correct main loop count.  Handle single left-over word from main
49495         loop inline rather than by using small_loop.  Correct comments.
49496         Delete "zero" tail, use "end_max" instead.
49497         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
49498
49499 2013-10-04  Alan Modra  <amodra@gmail.com>
49500
49501         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
49502         support.  Don't branch over align.
49503         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
49504         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
49505         support.  Rearrange tmp reg use to suit.  Comment.
49506         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
49507
49508 2013-10-04  Alan Modra  <amodra@gmail.com>
49509
49510         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
49511
49512 2013-10-04  Alan Modra  <amodra@gmail.com>
49513
49514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
49515         conditional form of branch and link when obtaining pc.
49516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
49517
49518 2013-10-04  Alan Modra  <amodra@gmail.com>
49519
49520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
49521         HIWORD/LOWORD.
49522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
49523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
49524
49525 2013-10-04  Alan Modra  <amodra@gmail.com>
49526
49527         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
49528         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
49529         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
49530         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
49531         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
49532         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
49533         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
49534         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
49535         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
49536         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
49537
49538 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49539             Alistair Popple <alistair@ozlabs.au.ibm.com>
49540             Alan Modra <amodra@gmail.com>
49541
49542         [BZ #15723]
49543         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
49544         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
49545         _dl_hwcap access for little-endian.
49546         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
49547         destroy vmx regs when saving unaligned.
49548         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
49549         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
49550         destroy vmx regs when saving unaligned.
49551
49552 2013-10-04  Alan Modra  <amodra@gmail.com>
49553
49554         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
49555         Don't use a union to pack hi/low value.
49556
49557 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49558
49559         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
49560         for little-endian.
49561         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
49562         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
49563         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49564         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
49565         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
49566
49567 2013-10-04  Alan Modra  <amodra@gmail.com>
49568
49569         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
49570         constants to usual value for .cst8 section, and remove redundant
49571         high address load.
49572         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
49573         constant for 0x1p52.  Load little-endian words of double from
49574         correct stack offsets.
49575
49576 2013-10-04  Alan Modra  <amodra@gmail.com>
49577
49578         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
49579         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
49580         words of double from correct stack offsets.
49581         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
49582         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
49583         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
49584         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
49585         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
49586         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
49587         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
49588         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
49589         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
49590         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
49591         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
49592         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
49593         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
49594         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
49595         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
49596         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
49597         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
49598
49599 2013-10-04  Alan Modra  <amodra@gmail.com>
49600
49601         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
49602         64-bit int/double union.
49603         (_FPU_SETCW): Likewise.
49604         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
49605         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
49606
49607 2013-10-04  Alan Modra  <amodra@gmail.com>
49608
49609         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
49610         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
49611
49612 2013-10-04  Alan Modra  <amodra@gmail.com>
49613
49614         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
49615         use vector int constants.
49616         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
49617
49618 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49619
49620         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
49621         array with long long.
49622         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
49623         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
49624         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
49625         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
49626         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
49627         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
49628         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
49629         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
49630         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
49631         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
49632         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
49633         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
49634         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
49635
49636 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
49637
49638         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
49639         (__signbit): Likewise.  Correct for little-endian.
49640         (__signbitl): Call __signbit.
49641         (lrint): Correct for little-endian.
49642         (lrintf): Call lrint.
49643
49644 2013-10-04  Alan Modra  <amodra@gmail.com>
49645
49646         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
49647         union 32-bit int array member with 64-bit int array.
49648         (t515, tm256): Double rather than long double.
49649         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
49650
49651 2013-10-04  Alan Modra  <amodra@gmail.com>
49652
49653         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
49654         Delete.
49655         (IEEE854_LONG_DOUBLE_BIAS): Delete.
49656         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
49657         version of math_ldbl.h.
49658
49659 2013-10-04  Alan Modra  <amodra@gmail.com>
49660
49661         [BZ #15734], [BZ #15735]
49662         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
49663         all uses of ieee875 long double macros and unions.  Simplify test
49664         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
49665         ldbl_extract_mantissa value for ix,iy exponents.  Properly
49666         normalize after ldbl_extract_mantissa, and don't add hidden bit
49667         already handled.  Don't treat low word of ieee854 mantissa like
49668         low word of IBM long double and mask off bit when testing for
49669         zero.
49670         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
49671         all uses of ieee875 long double macros and unions.  Simplify tests
49672         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
49673         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
49674         two1022, instead use their values.  Recognise that tests for large
49675         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
49676         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
49677         Rewrite all uses of ieee875 long double macros and unions.  Simplify
49678         test for 0.0L and nan.  Correct negation.
49679         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
49680         ieee875 long double macros and unions.  Correct output for large
49681         magnitude x.  Correct absolute value calculation.
49682         (__erfcl): Likewise.
49683         * math/libm-test.inc: Add tests for errors discovered in IBM long
49684         double versions of fmodl, remainderl, erfl and erfcl.
49685
49686 2013-10-04  Alan Modra  <amodra@gmail.com>
49687
49688         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
49689         all uses of ieee854 long double macros and unions.  Simplify tests
49690         for long doubles that are fully specified by the high double.
49691         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
49692         Likewise.
49693         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
49694         Remove dead code too.
49695         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
49696         (__ieee754_ynl): Likewise.
49697         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
49698         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
49699         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
49700         Remove dead code too.
49701         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
49702         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
49703         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
49704         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
49705         Simplify.
49706         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
49707         Simplify.
49708         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
49709         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
49710         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
49711         Comment on variable precision.
49712         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
49713         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
49714         Likewise.
49715         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
49716         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
49717         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
49718         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
49719         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
49720
49721 2013-10-04  Alan Modra  <amodra@gmail.com>
49722
49723         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
49724         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
49725         all uses of ieee854 long double macros and unions.
49726         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
49727         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
49728         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
49729         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
49730         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
49731         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
49732         Likewise.
49733         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
49734         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
49735         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
49736         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
49737         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
49738         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
49739         Simplify sign and nan test too.
49740         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
49741         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
49742         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
49743         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
49744         Likewise.
49745         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
49746         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
49747         Likewise.
49748         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
49749         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
49750         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
49751         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
49752         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
49753         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
49754
49755 2013-10-04  Alan Modra  <amodra@gmail.com>
49756
49757         * stdio-common/printf_size.c (__printf_size): Don't use
49758         union ieee854_long_double in fpnum union.
49759         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
49760         signbit macro to retrieve sign from long double.
49761         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
49762         retrieve sign from long double.
49763         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
49764         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
49765         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
49766         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
49767         * math/test-misc.c (main): Don't use union ieee854_long_double.
49768
49769 2013-10-04  Alan Modra  <amodra@gmail.com>
49770
49771         [BZ #15680]
49772         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
49773         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
49774         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
49775         calculation.  Remove unnecessary test for denormal exponent.
49776         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
49777         Correct handling of denormals.  Avoid undefined shift behaviour.
49778         Correct normalisation of low mantissa when low double is denormal.
49779         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
49780         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
49781         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
49782         Correct normalisation of low mantissa.  Test for overflow of high
49783         mantissa and normalise.
49784         (ldbl_nearbyint): Use more readable constant for two52.
49785         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
49786         (__mpn_construct_long_double): Fix test for overflow of high
49787         mantissa and correct normalisation.  Avoid undefined shift.
49788
49789 2013-10-04  Alan Modra  <amodra@gmail.com>
49790
49791         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
49792         (union ibm_extended_long_double): Define as an array of ieee754_double.
49793         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
49794         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
49795         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
49796         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
49797         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
49798         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
49799         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
49800         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
49801         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
49802         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
49803         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
49804
49805 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
49806
49807         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
49808         page size instead of calling getpagesize.
49809
49810         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
49811         (LOCFILE_ALIGN_MASK): Likewise.
49812         (LOCFILE_ALIGN_UP): Likewise.
49813         (LOCFILE_ALIGNED_P): Likewise.
49814         * locale/programs/ld-collate.c (collate_output): Use the new
49815         macros instead of __alignof__ (int32_t).
49816         * locale/weight.h (findidx): Likewise.
49817
49818 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
49819
49820         [BZ #431]
49821         * manual/string.texi: Fix strncat and wcsncat.
49822
49823 2013-10-03  Brooks Moses  <bmoses@google.com>
49824
49825         [BZ #15915]
49826         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
49827         * Makerules: ...here, and adjust associated comments.
49828
49829 2013-10-02  Will Newton  <will.newton@linaro.org>
49830
49831         * malloc/Makefile: Add tst-pvalloc.
49832         * malloc/tst-pvalloc.c: New file.
49833
49834 2013-10-02  Will Newton  <will.newton@linaro.org>
49835
49836         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
49837         improve test coverage.
49838
49839 2013-10-02  Will Newton  <will.newton@linaro.org>
49840
49841         * malloc/Makefile: Add tst-posix_memalign.
49842         * malloc/tst-posix_memalign.c: New file.
49843
49844 2013-10-01  Eric Blake  <eblake@redhat.com>
49845
49846         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
49847         Use __THROWNL rather than __THROW on static functions.
49848
49849 2013-09-30  Petr Machata  <pmachata@redhat.com>
49850
49851         * elf/elf.h (R_AARCH64_ABS16): New macro.
49852         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
49853         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
49854         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
49855         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
49856         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
49857         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
49858         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
49859         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
49860         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
49861         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
49862         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
49863         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
49864         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
49865         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
49866         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
49867         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
49868         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
49869         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
49870         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
49871         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
49872         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
49873         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
49874         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
49875         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
49876         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
49877         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
49878         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
49879         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
49880         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
49881         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
49882         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
49883         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
49884         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
49885         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
49886         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
49887         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
49888         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
49889         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
49890         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
49891         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
49892         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
49893         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
49894         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
49895         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
49896         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
49897         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
49898         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
49899         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
49900         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
49901         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
49902         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
49903         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
49904         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
49905         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
49906         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
49907         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
49908         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
49909         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
49910         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
49911         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
49912         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
49913         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
49914         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
49915         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
49916         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
49917         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
49918         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
49919         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
49920         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
49921         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
49922         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
49923         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
49924         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
49925         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
49926         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
49927         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
49928         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
49929         (R_AARCH64_TLSDESC_LDR): Likewise.
49930         (R_AARCH64_TLSDESC_ADD): Likewise.
49931         (R_AARCH64_TLSDESC_CALL): Likewise.
49932
49933 2013-09-30  Andreas Schwab  <schwab@suse.de>
49934
49935         [BZ #15048]
49936         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
49937         the nss database lookup.
49938         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49939         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
49940
49941 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
49942
49943         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
49944
49945 2013-09-28  P. J. McDermott  <pj@pehjota.net>
49946
49947         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
49948         ${Bash-specific parameter/pattern/string} parameter expansion.
49949         * sysdeps/unix/make-syscalls.sh: Likewise.
49950
49951 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
49952
49953         * sysdeps/sh/stackguard-macros.h: New file.
49954
49955 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
49956
49957         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
49958         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
49959         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
49960         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
49961         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
49962         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
49963
49964 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49965
49966         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
49967         Fix thread ID register.
49968
49969 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
49970
49971         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
49972         [POSIX || UNIX98]: Require rather than permitting all symbols from
49973         <time.h>.
49974         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
49975         element of struct sched_param.
49976         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
49977         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
49978         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
49979         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
49980         constant.
49981
49982 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
49983
49984         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
49985         argument calculation.
49986
49987 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
49988
49989         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
49990         Expect macro.
49991         [POSIX] (pthread_attr_t): Do not require type.
49992         [POSIX] (pthread_cond_t): Likewise.
49993         [POSIX] (pthread_condattr_t): Likewise.
49994         [POSIX] (pthread_key_t): Likewise.
49995         [POSIX] (pthread_mutex_t): Likewise.
49996         [POSIX] (pthread_mutexattr_t): Likewise.
49997         [POSIX] (pthread_once_t): Likewise.
49998         [POSIX] (pthread_t): Likewise.
49999         [POSIX-based standards] (pthread_atfork): Expect function.
50000
50001 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
50002             Richard Sandiford  <richard@codesourcery.com>
50003
50004         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
50005         (swap_endianness_p): New extern variable.
50006         (set_big_endian): New inline function.
50007         (maybe_swap_uint32): Likewise.
50008         (maybe_swap_uint32_array): Likewise.
50009         (maybe_swap_uint32_obstack): Likewise.
50010         * locale/programs/locfile.c: Include <stdbool.h>.
50011         (swap_endianness_p): New variable.
50012         (add_locale_uint32): Call maybe_swap_uint32.
50013         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
50014         (write_locale_data): Call maybe_swap_uint32_array.
50015         * locale/programs/ld-collate.c (obstack_int32_grow): Call
50016         maybe_swap_uint32.
50017         (obstack_int32_grow_fast): Likewise.
50018         (output_weightwc): Call maybe_swap_uint32_obstack.
50019         (collate_output): Likewise.
50020         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
50021         (OPT_LITTLE_ENDIAN): Likewise.
50022         (options): Add --little-endian and --big-endian options.
50023         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
50024         * locale/programs/locarchive.c: Include "locfile.h".
50025         (GET): New macro.
50026         (SET): Likewise.
50027         (INC): Likewise.
50028         (create_archive): Use the new macros to access fields of
50029         structures directly mapped from or written to locale archives.
50030         (oldlocrecentcmp): Likewise.
50031         (enlarge_archive): Likewise.
50032         (insert_name): Likewise.
50033         (add_alias): Likewise.
50034         (add_locale): Likewise.
50035         (delete_locales_from_archive): Likewise.
50036         (show_archive_content): Likewise.
50037         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
50038         locale data.
50039
50040 2013-09-24  Roland McGrath  <roland@hack.frob.com>
50041
50042         * manual/freemanuals.texi: Updated from (newly) canonical copy at
50043         http://www.gnu.org/doc/freemanuals.texi.
50044         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
50045
50046 2013-09-24  Will Newton  <will.newton@linaro.org>
50047
50048         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
50049         macro.
50050
50051 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
50052
50053         * locale/hashval.h (compute_hashval): Interpret bytes of key as
50054         unsigned char.
50055
50056 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
50057
50058         * manual/threads.texi (POSIX Threads): Fix a typo.
50059
50060 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
50061
50062         [BZ #14547]
50063         * string/tst-strcoll-overflow.c: New test case.
50064         * string/Makefile (xtests): Add tst-strcoll-overflow.
50065         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
50066         cache if string sizes may cause integer overflow.
50067
50068         [BZ #14547]
50069         * string/strcoll_l.c (coll_seq): New members rule, idx,
50070         save_idx and back_us.
50071         (get_next_seq_nocache): New function.
50072         (do_compare_nocache): New function.
50073         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
50074         when malloc fails.
50075
50076 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
50077
50078         [BZ #15754]
50079         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
50080         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
50081         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
50082
50083         [BZ #15754]
50084         * elf/Makefile (tests): Add tst-ptrguard1.
50085         (tests-static): Add tst-ptrguard1-static.
50086         (tst-ptrguard1-ARGS): Define.
50087         (tst-ptrguard1-static-ARGS): Define.
50088         * elf/tst-ptrguard1.c: New file.
50089         * elf/tst-ptrguard1-static.c: New file.
50090         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
50091         * sysdeps/i386/stackguard-macros.h: Likewise.
50092         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
50093         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
50094         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
50095         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
50096         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
50097         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
50098
50099 2013-09-23  Hector Marco  <hecmargi@upv.es>
50100             Ismael Ripoll  <iripoll@disca.upv.es>
50101             Carlos O'Donell  <carlos@redhat.com>
50102
50103         [BZ #15754]
50104         * sysdeps/generic/stackguard-macros.h: Define
50105         __pointer_chk_guard_local and POINTER_CHK_GUARD.
50106         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
50107         Define __pointer_chk_guard_local.
50108         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
50109         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
50110
50111 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
50112
50113         [BZ #15859]
50114         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
50115
50116 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
50117
50118         * include/string.h (__ffs): Declare as hidden.
50119         * string/ffs.c (__ffs): Define as hidden.
50120         * sysdeps/i386/ffs.c (__ffs): Likewise.
50121         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
50122         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
50123         * sysdeps/s390/ffs.c (__ffs): Likewise.
50124         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
50125
50126 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
50127
50128         * NEWS: Mention malloc probes.
50129
50130         * malloc/arena.c (new_heap): New memory_heap_new probe.
50131         (grow_heap): New memory_heap_more probe.
50132         (shrink_heap): New memory_heap_less probe.
50133         (heap_trim): New memory_heap_free probe.
50134         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
50135         (systrim): New memory_sbrk_less probe.
50136         * manual/probes.texi: Document them.
50137
50138         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
50139         * manual/probes.texi: Document it.
50140
50141         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
50142         (__libc_realloc): Add memory_realloc_retry probe.
50143         (__libc_memalign): Add memory_memalign_retry probe.
50144         (__libc_valloc): Add memory_valloc_retry probe.
50145         (__libc_pvalloc): Add memory_pvalloc_retry probe.
50146         (__libc_calloc): Add memory_calloc_retry probe.
50147         * manual/probes.texi: Document them.
50148
50149         * malloc/arena.c (get_free_list): Add probe
50150         memory_arena_reuse_free_list.
50151         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
50152         and memory_arena_reuse.
50153         (arena_get2) [!PER_THREAD]: Likewise.
50154         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
50155         memory_arena_reuse_realloc.
50156         * manual/probes.texi: Document them.
50157
50158         * malloc/malloc.c (__libc_free): Add
50159         memory_mallopt_free_dyn_thresholds probe.
50160         (__libc_mallopt): Add multiple memory_mallopt probes.
50161         * manual/probes.texi: Document them.
50162
50163         * malloc/malloc.c: Include stap-probe.h.
50164         (__libc_mallopt): Add memory_mallopt probe.
50165         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
50166         * manual/probes.texi: New.
50167         * manual/Makefile (chapters): Add probes.
50168         * manual/threads.texi: Set next node.
50169
50170 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
50171
50172         [BZ #15963, #13985]
50173         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
50174         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
50175         Add `Chinese' to `nan' entry name.
50176
50177 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50178
50179         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
50180         (POLYNOMIAL): Likewise.
50181         (TAYLOR_SINCOS): Likewise.
50182         (TAYLOR_SLOW): Likewise.
50183         (__sin): Use TAYLOR_SINCOS.
50184         (__cos): Likewise.
50185         (slow): Use TAYLOR_SLOW.
50186         (sloww): Likewise.
50187         (bsloww): Likewise.
50188         (csloww): Likewise.
50189
50190 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50191
50192         * stdlib/strtod_l.c: Fix buffer overrun.
50193
50194 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50195
50196         * benchtests/Makefile (bench): Add sincos.
50197         * benchtests/bench-sincos.c: New file.
50198
50199         * math/libm-test.inc (cos_test_data): New test inputs.
50200         (sin_test_data): Likewise.
50201
50202         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
50203         macro.
50204         (__sin): Use it.
50205         (__cos): Likewise.
50206         (slow1): Likewise.
50207         (slow2): Likewise.
50208         (sloww1): Likewise.
50209         (sloww2): Likewise.
50210         (bsloww1): Likewise.
50211         (bsloww2): Likewise.
50212         (cslow2): Likewise.
50213         (csloww1): Likewise.
50214         (csloww2): Likewise.
50215
50216         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
50217         function.
50218         (__sin): Use it.
50219         (__cos): Likewise.
50220
50221         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
50222         gotos.
50223         (__cos): Likewise.
50224
50225 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
50226
50227         * config.h.in (HAVE_MIPS_NAN2008): New macro.
50228         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
50229         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
50230         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
50231         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
50232         * elf/cache.c (print_entry): Handle the new cache flags.
50233
50234 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50235             Aldy Hernandez  <aldyh@redhat.com>
50236
50237         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
50238         Change condition to [_SOFT_FLOAT].
50239         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
50240         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
50241         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
50242         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
50243         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
50244         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
50245         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
50246         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
50247         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
50248         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
50249         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
50250         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
50251         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
50252         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
50253         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
50254         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
50255         declaration.
50256
50257 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
50258
50259         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
50260         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50261         (__longjmp): Use LOAD_GP to load saved GPRs.
50262         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
50263         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
50264         (__sigsetjmp): Use SAVE_GP to save GPRs.
50265
50266         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
50267         Do not append -msoft-float.
50268         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
50269
50270 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50271
50272         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
50273
50274 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
50275
50276         [BZ #15966]
50277         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
50278         (_FPU_GETCW): Use initial "__" on variable and field names but not
50279         on macro parameter name.
50280         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
50281         parentheses around reference to macro parameter.
50282
50283 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
50284
50285         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
50286         prototype.
50287         (ctype_startup): Use uint32_t in cast and sizeof for
50288         ctype->charnames.
50289
50290 2013-09-11  Jia Liu  <proljc@gmail.com>
50291
50292         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
50293         __daddr_t_defined.
50294         [__FreeBSD__]: Likewise.
50295
50296 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
50297
50298         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
50299         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
50300         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
50301         (strchr): Remove __strchr_sse42 ifunc selection.
50302         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
50303         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
50304
50305 2013-09-11  Will Newton  <will.newton@linaro.org>
50306
50307         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
50308         parameter to RES. Remove hardcoded 1000 value.
50309         * benchtests/bench-skeleton.c (main): Pass RES parameter
50310         to TIMING_INIT and multiply result by 1000.
50311
50312 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50313
50314         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50315
50316 2013-09-11  Andreas Schwab  <schwab@suse.de>
50317
50318         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
50319         if not defined.
50320         (O_TMPFILE) [__USE_GNU]: Define.
50321         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
50322         Define.
50323
50324 2013-09-11  Will Newton  <will.newton@linaro.org>
50325
50326         [BZ #15857]
50327         * malloc/malloc.c (__libc_memalign): Check the value of bytes
50328         does not overflow.
50329
50330 2013-09-11  Will Newton  <will.newton@linaro.org>
50331
50332         [BZ #15856]
50333         * malloc/malloc.c (__libc_valloc): Check the value of bytes
50334         does not overflow.
50335
50336 2013-09-11  Will Newton  <will.newton@linaro.org>
50337
50338         [BZ #15855]
50339         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
50340         does not overflow.
50341
50342 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
50343
50344         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
50345         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
50346         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
50347         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
50348         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
50349
50350 2013-09-10  Allan McRae  <allan@archlinux.org>
50351
50352         [BZ #15748]
50353         * manual/arith.texi (Parsing of Floats): Clarify
50354         cross-reference.
50355
50356         [BZ #15849]
50357         * manual/install.texi (Running make install): Mention
50358         --enable-pt-chown.
50359         * INSTALL: Regenerated.
50360
50361 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
50362
50363         * csu/init-first.c (_init): Remove the !SHARED condition around
50364         FPU control word initialization.
50365         * elf/dl-support.c (_dl_fpu_control): New variable.
50366         (_dl_aux_init) <AT_FPUCW>: Initialize it.
50367         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
50368         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
50369         * math/test-fpucw-static.c: New file.
50370         * math/test-fpucw-ieee.c: New file.
50371         * math/test-fpucw-ieee-static.c: New file.
50372         * math/Makefile (tests): Add `test-fpucw-ieee' and
50373         `$(tests-static)'.
50374         (tests-static): New variable.
50375         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
50376         dependency to...
50377         [($(build-shared),yes)]
50378         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
50379         ... this.
50380         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
50381         New dependency.
50382
50383 2013-09-09  Allan McRae  <allan@archlinux.org>
50384
50385         [BZ #15939]
50386         * manual/string.texi (Collation Functions): Fix typo in
50387         strcoll example.
50388         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
50389
50390         [BZ #15893]
50391         * stdlib/isomac.c (get_null_defines): Fix memory leak.
50392
50393         [BZ #15892]
50394         * libio/memstream.c (open_memstream): Fix memory leak.
50395         * libio/wmemstream.c (open_wmemstream): Likewise.
50396
50397         [BZ #15895]
50398         * nscd/netgroupcache.c: Fix nesting of ifdefs.
50399
50400 2013-09-09  Will Newton  <will.newton@linaro.org>
50401
50402         * malloc/Makefile: Add tst-realloc to tests.
50403         * malloc/tst-realloc.c: New file.
50404
50405 2013-09-09  Allan McRae  <allan@archlinux.org>
50406
50407         [BZ #15844]
50408         * COPYING: Update from GNU website to fix FSF address.
50409         * COPYING.LIB: Likewise.
50410
50411 2013-09-06  David S. Miller  <davem@davemloft.net>
50412
50413         * po/zh_TW.po: Update Chinese (traditional) translation from
50414         translation project.
50415
50416 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
50417             Joseph Myers  <joseph@codesourcery.com>
50418
50419         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
50420         "localeinfo.h".
50421         (obstack_chunk_alloc): New macro.
50422         (obstack_chunk_free): Likewise.
50423         (record_offset): New function.
50424         (init_locale_data): Likewise.
50425         (align_locale_data): Likewise.
50426         (add_locale_empty): Likewise.
50427         (add_locale_raw_data): Likewise.
50428         (add_locale_raw_obstack): Likewise.
50429         (add_locale_string): Likewise.
50430         (add_locale_wstring): Likewise.
50431         (add_locale_uint32): Likewise.
50432         (add_locale_uint32_array): Likewise.
50433         (add_locale_char): Likewise.
50434         (start_locale_structure): Likewise.
50435         (end_locale_structure): Likewise.
50436         (start_locale_prelude): Likewise.
50437         (end_locale_prelude): Likewise.
50438         (write_locale_data): Take locale_file structure rather than an
50439         iovec.
50440         * locale/programs/locfile.h: Include "obstack.h".
50441         (struct locale_file): Change to store locale file contents instead
50442         of header.
50443         (init_locale_data): New prototype.
50444         (align_locale_data): Likewise.
50445         (add_locale_empty): Likewise.
50446         (add_locale_raw_data): Likewise.
50447         (add_locale_raw_obstack): Likewise.
50448         (add_locale_string): Likewise.
50449         (add_locale_wstring): Likewise.
50450         (add_locale_uint32): Likewise.
50451         (add_locale_uint32_array): Likewise.
50452         (add_locale_char): Likewise.
50453         (start_locale_structure): Likewise.
50454         (end_locale_structure): Likewise.
50455         (start_locale_prelude): Likewise.
50456         (end_locale_prelude): Likewise.
50457         (write_locale_data): Update prototype.
50458         * locale/programs/3level.h (struct TABLE): Remove result field.
50459         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
50460         Use new locale_file interface.
50461         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
50462         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
50463         * locale/programs/ld-address.c (address_output): Use new
50464         locale_file interface.
50465         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
50466         NO_ADD_LOCALE.
50467         (collate_finish): Don't call collseq_table_finalize.
50468         (collate_output): Use new locale_file interface.
50469         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
50470         in file.
50471         (NO_FINALIZE): Change to NO_ADD_LOCALE.
50472         (TABLE): Move defines earlier in file.
50473         (ELEMENT): Likewise.
50474         (DEFAULT): Likewise.
50475         (wctrans_table_add): Move macro and inline function earlier in
50476         file.
50477         (struct wctype_table): Move type earlier in file.
50478         (add_locale_wctype_table): New static prototype.
50479         (struct locale_ctype_t): Use logical types instead of struct iovec
50480         pointers for members.
50481         (ctype_output): Use new locale_file interface.
50482         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
50483         new locale_file interface.
50484         (allocate_arrays): Update for use of new locale_file interface.
50485         * locale/programs/ld-identification.c (identification_output): Use
50486         new locale_file interface.
50487         * locale/programs/ld-measurement.c (measurement_output): Likewise.
50488         * locale/programs/ld-messages.c (messages_output): Likewise.
50489         * locale/programs/ld-monetary.c (monetary_output): Likewise.
50490         * locale/programs/ld-name.c (name_output): Likewise.
50491         * locale/programs/ld-numeric.c (numeric_output): Likewise.
50492         * locale/programs/ld-paper.c (paper_output): Likewise.
50493         * locale/programs/ld-telephone.c (telephone_output): Likewise.
50494         * locale/programs/ld-time.c (time_output): Likewise.
50495
50496 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50497
50498         * benchtests/Makefile: Add memrchr benchmark.
50499         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
50500         benchmark as memrchr.
50501         * benchtests/bench-memrchr-ifunc.c: New file.
50502         * benchtests/bench-memrchr.c: New file.
50503
50504 2013-09-06   Will Newton  <will.newton@linaro.org>
50505
50506         * benchtests/Makefile (string-bench): Add memcpy.
50507
50508 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
50509             Cong Wang  <amwang@redhat.com>
50510
50511         [BZ #15850]
50512         * sysdeps/unix/sysv/linux/bits/in.h
50513         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
50514         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
50515         before __USE_KERNEL_IPV6_DEFS uses.
50516         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
50517         IPPROTO_BEETPH.
50518         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
50519         sockaddr_in6, or ipv6_mreq.
50520
50521 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50522
50523         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
50524         memory access for final bytes in some large inputs.
50525         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
50526
50527 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50528
50529         * string/test-memrchr.c: New file.
50530         * string/test-memrchr-ifunc.c: New file.
50531         * string/Makefile: Add new memrchr testcase.
50532
50533 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
50534
50535         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
50536         fanotify_init returns EPERM.
50537
50538 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50539
50540         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
50541         errors.
50542         (top level): Treat second token from macro or constant entries for
50543         allowed headers as allowed.
50544         * include/complex.h: Condition internal declarations on
50545         [!_ISOMAC].
50546         * include/fenv.h: Condition include of <stdbool.h> and internal
50547         declarations on [!_ISOMAC].
50548
50549 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
50550
50551         [BZ #15923]
50552         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
50553
50554 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
50555
50556         * configure.in (--enable-versioning): Remove configure option.
50557         (libc_cv_asm_symver_directive): Remove configure test.
50558         (libc_cv_ld_version_script_option): Likewise.
50559         (VERSIONING): Remove variable and AC_SUBST.
50560         (DO_VERSIONING): Remove AC_DEFINE.
50561         * configure: Regenerated.
50562         * config.h.in (DO_VERSIONING): Remove macro.
50563         * Makerules [$(versioning) = yes]: Change conditionals to
50564         [$(build-shared) = yes].
50565         * config.make.in (versioning): Remove variable.
50566         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
50567         [$(build-shared) = yes].
50568         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
50569         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
50570         * elf/Makefile [$(versioning) = yes]: Change conditionals to
50571         [$(build-shared) = yes].
50572         * extra-lib.mk [$(versioning) = yes]: Likewise.
50573         * hurd/Makefile [$(versioning) = yes]: Likewise.
50574         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
50575         [SHARED].
50576         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
50577         [SHARED].
50578         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50579         [SHARED && !NO_HIDDEN].
50580         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
50581         [SHARED].
50582         [SHARED && DO_VERSIONING]: Likewise..
50583         * libio/Makefile [$(versioning) = yes]: Change conditionals to
50584         [$(build-shared) = yes].
50585         * manual/install.texi (--disable-versioning): Remove
50586         documentation.
50587         * INSTALL: Regenerated.
50588         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
50589         to [SHARED].
50590         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
50591         [$(build-shared) = yes].
50592         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
50593         * sysdeps/i386/i686/multiarch/strstr-c.c
50594         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
50595         [SHARED && !NO_HIDDEN].
50596         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
50597         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
50598         * sysdeps/powerpc/powerpc32/dl-machine.c
50599         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
50600         * sysdeps/powerpc/powerpc32/sysdep.h
50601         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
50602         to [SHARED && PIC && !NO_HIDDEN].
50603         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
50604         conditional to [SHARED].
50605
50606 2013-09-04   Will Newton  <will.newton@linaro.org>
50607
50608         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
50609         * benchtests/bench-string.h: Include bench-timing.h instead
50610         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
50611         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
50612         call to HP_TIMING_DIFF_INIT.
50613         * benchtests/bench-memccpy.c: Use bench-timing.h macros
50614         instead of hp-timing.h macros.
50615         * benchtests/bench-memchr.c: Likewise.
50616         * benchtests/bench-memcmp.c: Likewise.
50617         * benchtests/bench-memcpy.c: Likewise.
50618         * benchtests/bench-memmem.c: Likewise.
50619         * benchtests/bench-memmove.c: Likewise.
50620         * benchtests/bench-memset.c: Likewise.
50621         * benchtests/bench-rawmemchr.c: Likewise.
50622         * benchtests/bench-strcasecmp.c: Likewise.
50623         * benchtests/bench-strcasestr.c: Likewise.
50624         * benchtests/bench-strcat.c: Likewise.
50625         * benchtests/bench-strchr.c: Likewise.
50626         * benchtests/bench-strcmp.c: Likewise.
50627         * benchtests/bench-strcpy.c: Likewise.
50628         * benchtests/bench-strcpy_chk.c: Likewise.
50629         * benchtests/bench-strlen.c: Likewise.
50630         * benchtests/bench-strncasecmp.c: Likewise.
50631         * benchtests/bench-strncat.c: Likewise.
50632         * benchtests/bench-strncmp.c: Likewise.
50633         * benchtests/bench-strncpy.c: Likewise.
50634         * benchtests/bench-strnlen.c: Likewise.
50635         * benchtests/bench-strpbrk.c: Likewise.
50636         * benchtests/bench-strrchr.c: Likewise.
50637         * benchtests/bench-strspn.c: Likewise.
50638         * benchtests/bench-strstr.c: Likewise.
50639
50640 2013-09-04  Will Newton  <will.newton@linaro.org>
50641
50642         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
50643
50644 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
50645
50646         [BZ #15427]
50647         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
50648         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
50649         * math/libm-test.inc (lgamma_test_data): Add more tests.
50650         * sysdeps/i386/fpu/libm-test-ulps: Update.
50651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50652
50653 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
50654
50655         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
50656         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50657         Add ifunc.
50658         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50659         Add strcmp-sse2-unaligned
50660         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
50661
50662 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50663
50664         * Versions.def (libc): Add GLIBC_2.19.
50665
50666 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
50667
50668         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
50669         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
50670
50671 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
50672
50673         [BZ #14155]
50674         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
50675         intermediate calculations in recurrence.
50676         (__ieee754_ynf): Likewise.
50677         * math/libm-test.inc (jn_test_data): Do not allow spurious
50678         underflow exception.  Add more tests.
50679         (yn_test_data): Add more tests.
50680         * sysdeps/i386/fpu/libm-test-ulps: Update.
50681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50682
50683 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
50684
50685         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
50686
50687 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50688
50689         * csu/init-first.c: Fix then/than typos.
50690         * locale/programs/ld-collate.c: Likewise.
50691         * locale/programs/linereader.h: Likewise.
50692         * manual/charset.texi: Likewise.
50693         * manual/filesys.texi: Likewise.
50694         * manual/stdio.texi: Likewise.
50695         * manual/string.texi: Likewise.
50696         * stdlib/fmtmsg.c: Likewise.
50697         * sysdeps/i386/stpncpy.S: Likewise.
50698         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
50699         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
50700         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
50701         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
50702
50703 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
50704
50705         * elf/dl-open.c: Fix typos.
50706         * iconvdata/gbbig5.c: Likewise.
50707         * iconvdata/iso-2022-jp.c: Likewise.
50708         * iconv/gconv_int.h: Likewise.
50709         * iconv/loop.c: Likewise.
50710         * nis/rpcsvc/nis.h: Likewise.
50711         * resolv/ns_name.c: Likewise.
50712         * stdio-common/vfscanf.c: Likewise.
50713         * streams/stropts.h: Likewise.
50714         * sunrpc/rpc_thread.c: Likewise.
50715         * sysdeps/i386/strpbrk.S: Likewise.
50716         * sysdeps/ieee754/k_standard.c: Likewise.
50717         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
50718         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
50719         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
50720         * sysdeps/mach/hurd/profil.c: Likewise.
50721         * sysdeps/s390/dl-procinfo.h: Likewise.
50722         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
50723         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
50724         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
50725         * sysdeps/x86_64/dl-trampoline.S: Likewise.
50726         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
50727
50728 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
50729
50730         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
50731         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
50732
50733 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
50734
50735         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
50736         aix specific files.
50737         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
50738         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
50739         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
50740         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
50741         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
50742         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
50743         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
50744         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
50745
50746 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50747             Roland McGrath  <roland@hack.frob.com>
50748
50749         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
50750         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
50751
50752 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
50753
50754         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
50755         __executable_start symbol instead of _start.
50756
50757 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
50758
50759         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
50760         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
50761         Move macros to...
50762         * sysdeps/gnu/ldsodefs.h: ... this new file.
50763
50764         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
50765         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
50766         instead of ELFOSABI_LINUX.
50767
50768         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
50769         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
50770         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
50771         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
50772         Likewise.
50773         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
50774         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
50775         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
50776         Likewise.
50777         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
50778         (ibm_extended_long_double): Add ieee_nan member.
50779         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
50780         (do_test): New function.
50781
50782         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
50783         TEST_TRUNC.
50784         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
50785         functions, renamed from truncdfsf_test, trunctfsf_test,
50786         trunctfdf_test.
50787         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
50788         functions.
50789         (do_test): Run all these.
50790
50791 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
50792
50793         * argp/argp-help.c: Fix typos.
50794         * argp/argp-parse.c: Likewise.
50795         * debug/backtracesyms.c: Likewise.
50796         * elf/elf.h: Likewise.
50797         * malloc/malloc.c: Likewise.
50798         * nis/nis_print.c: Likewise.
50799         * resolv/res_comp.c: Likewise.
50800         * stdlib/stdlib.h: Likewise.
50801         * sunrpc/clnt_tcp.c: Likewise.
50802         * sunrpc/clnt_udp.c: Likewise.
50803         * sunrpc/clnt_unix.c: Likewise.
50804         * sysdeps/unix/bsd/ptsname.c: Likewise.
50805         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
50806         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
50807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
50808         Likewise.
50809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
50810         Likewise.
50811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
50812         Likewise.
50813         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
50814
50815 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50816
50817         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
50818         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
50819
50820 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
50821
50822         [BZ #15897]
50823         * dlfcn/Makefile (tests): Add bug-dl-leaf.
50824         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
50825         ($(objpfx)bug-dl-leaf): New rule.
50826         ($(objpfx)bug-dl-leaf.so): Likewise.
50827         ($(objpfx)bug-dl-leaf.out): Likewise.
50828         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
50829         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
50830         * dlfcn/bug-dl-leaf.c: New test.
50831         * dlfcn/bug-dl-leaf-lib.c: Likewise.
50832         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
50833         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
50834         (dlclose): Likewise.
50835         (dlmopen): Likewise.
50836
50837 2013-08-27  Roland McGrath  <roland@hack.frob.com>
50838
50839         * include/netdb.h [!_ISOMAC]:
50840         Don't include <tls.h>.
50841         (h_errno, __libc_h_errno): Move declaration and macros out of
50842         [_LIBC_REENTRANT].
50843
50844         * include/resolv.h [_RESOLV_H_]:
50845         Don't include <tls.h>.
50846         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
50847         * resolv/res_libc.c: Don't include <tls.h>.
50848         (_res): Use __attribute__ ((nocommon)) in place of
50849         __attribute__ ((section (".bss"))).
50850
50851         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
50852         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
50853
50854         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
50855
50856         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
50857         only under [SIOCGIFCONF && SIOCGIFNETMASK].
50858
50859         * resolv/res_mkquery.c: Include <sys/time.h>.
50860
50861         * inet/ifreq.c: Moved to ...
50862         * sysdeps/unix/ifreq.c: ... here.
50863         * inet/ifreq.c: New file, true stub version.
50864
50865         * socket/sa_len.c: New file.
50866         * socket/Makefile (aux): Add it.
50867         * sysdeps/unix/sysv/linux/Makefile
50868         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
50869         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
50870         and #include <socket/sa_len.c>.
50871         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
50872         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
50873
50874         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
50875         * bits/socket.h: ... here.
50876
50877         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
50878         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
50879         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
50880
50881 2013-08-27  Andreas Schwab  <schwab@suse.de>
50882
50883         [BZ #15736]
50884         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
50885         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
50886         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
50887         * string/test-strcasecmp.c (test_main): Run tests in several
50888         locales.
50889         * string/test-strncasecmp.c (test_main): Likewise.
50890
50891         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
50892         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
50893         to __strcasecmp_nonascii and __strncasecmp_nonascii.
50894         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
50895         (__strncasecmp_ssse3) [PIC]: Likewise.
50896
50897 2013-08-26  Roland McGrath  <roland@hack.frob.com>
50898
50899         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
50900
50901         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
50902         instead of explicitly declaring xdecrypt.
50903         * nis/nss_nis/nis-publickey.c: Likewise.
50904
50905 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50906
50907         [BZ #15890]
50908         * nscd/aicache.c: Include res_hconf.h.
50909         (addhstaiX): Initialize res_hconf.
50910
50911 2013-08-26  Andreas Schwab  <schwab@suse.de>
50912
50913         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
50914         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
50915
50916 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50917
50918         * nscd/aicache.c (addhstaiX): Fix indentation.
50919
50920 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
50921
50922         * configure.ac: Quote $build_pt_chown test.
50923         * configure: Regenerated.
50924
50925 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
50926
50927         [BZ #15532]
50928         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
50929         * math/s_cexpf.c (__cexpf): Likewise.
50930         * math/s_cexpl.c (__cexpl): Likewise.
50931         * math/libm-test.inc (cexp_test_data): Correct expected return
50932         value for NaN + i0.  Add another test.
50933
50934 2013-08-22  David S. Miller  <davem@davemloft.net>
50935
50936         * po/ca.po: Update Catalan translation from translation project.
50937         * po/uk.po: Add Ukrainian translations from translation project.
50938
50939 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
50940
50941         [BZ #15797]
50942         * math/s_fdim.c (__fdim): Check for infinite arguments if result
50943         is infinite, not alongside NaN test.
50944         * math/s_fdimf.c (__fdimf): Likewise.
50945         * math/s_fdiml.c (__fdiml): Likewise.
50946         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
50947         errno is unchanged.
50948
50949 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
50950
50951         * argp/argp-help.c: Fix typos.
50952         * crypt/speeds.c: Likewise.
50953         * csu/check_fds.c: Likewise.
50954         * elf/dl-load.c: Likewise.
50955         * elf/dl-open.c: Likewise.
50956         * elf/reldep3.c: Likewise.
50957         * elf/reldep.c: Likewise.
50958         * elf/sprof.c: Likewise.
50959         * iconv/iconv_charmap.c: Likewise.
50960         * iconv/skeleton.c: Likewise.
50961         * iconv/strtab.c: Likewise.
50962         * io/lockf64.c: Likewise.
50963         * libio/libioP.h: Likewise.
50964         * resolv/gai_notify.c: Likewise.
50965         * resolv/ns_name.c: Likewise.
50966         * resolv/ns_samedomain.c: Likewise.
50967         * resolv/res_send.c: Likewise.
50968         * stdlib/random.c: Likewise.
50969         * sunrpc/rpc/xdr.h: Likewise.
50970         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
50971         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
50972         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
50973         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
50974         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
50975         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
50976         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
50977         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
50978         * sysdeps/mach/hurd/check_fds.c: Likewise.
50979         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
50980         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
50981         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
50982         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
50983         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
50984         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
50985         * sysdeps/pthread/aio_notify.c: Likewise.
50986         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
50987         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
50988         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
50989         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
50990         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
50991
50992 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50993
50994         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
50995         version if bit_Slow_SSE4_2 is set.
50996         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
50997         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
50998
50999 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51000
51001         [BZ #15867]
51002         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
51003         trampoline stack frame information.
51004         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
51005         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
51006         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
51007         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
51008         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
51009         * sysdeps/unix/sysv/linux/powerpc/init-first.c
51010         (_libc_vdso_platform_setup): Initialize the signal trampolines.
51011         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
51012         sa_flags value.
51013         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
51014         interrupting a syscall and set with option SA_SIGINFO.
51015
51016 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51017
51018         [BZ #15531]
51019         * math/s_cproj.c (__cproj): Only return an infinity if one part of
51020         argument is infinite.
51021         * math/s_cprojf.c (__cprojf): Likewise.
51022         * math/s_cprojl.c (__cprojl): Likewise.
51023         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
51024         * math/libm-test.inc (cproj_test_data): Add more tests.
51025
51026         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
51027
51028         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
51029         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
51030         size.  Use __ffs to determine corresponding shift.
51031
51032 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
51033             Roland McGrath  <roland@hack.frob.com>
51034
51035         * Makefile (INSTALL): Remove trailing blank lines from output of
51036         makeinfo.
51037
51038 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51039
51040         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
51041         Align 32 bit compat elf_greg to 8 bytes.
51042
51043 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
51044
51045         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
51046
51047 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51048
51049         * string/strcoll_l.c (coll_seq): New structure.
51050         (get_next_seq_cached): New function.
51051         (get_next_seq): New function.
51052         (do_compare): New function.
51053         (STRCOLL): Use GNU style definition.  Simplify implementation
51054         by using get_next_seq, get_next_seq_cached and do_compare.
51055
51056 2013-08-16  Florian Weimer  <fweimer@redhat.com>
51057
51058         [BZ #14699]
51059         CVE-2013-4237
51060         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
51061         member.
51062         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
51063         member.
51064         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
51065         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
51066         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
51067         conditional.
51068         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
51069         GETDENTS_64BIT_ALIGNED.
51070         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
51071         * manual/filesys.texi (Reading/Closing Directory): Document
51072         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
51073         strongly.
51074         * manual/conf.texi (Limits for Files): Add portability note to
51075         NAME_MAX, PATH_MAX.
51076         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
51077
51078 2013-08-13  Andreas Schwab  <schwab@suse.de>
51079
51080         [BZ #15749]
51081         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
51082         of fabs.
51083         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
51084         LDBL_MAX_EXP >= 16384]: Add tests for it.
51085
51086 2013-08-12  David S. Miller  <davem@davemloft.net>
51087
51088         * version.h (RELEASE): Set to "development".
51089         (VERSION): Set to "2.18.90".
51090         * NEWS: Add 2.19 section.
51091
51092 2013-08-03  David S. Miller  <davem@davemloft.net>
51093
51094         * po/ko.po: Update Korean translation from translation project.
51095
51096 2013-08-01  David S. Miller  <davem@davemloft.net>
51097
51098         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
51099         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
51100         Bilka.
51101
51102 2013-07-30  David S. Miller  <davem@davemloft.net>
51103
51104         * po/fr.po: Update French translation from translation project.
51105
51106 2013-07-28  David S. Miller  <davem@davemloft.net>
51107
51108         * po/cs.po: Update Czech translation from translation project.
51109
51110         * po/sv.po: Update Swedish translation from translation project.
51111
51112 2013-07-27  David S. Miller  <davem@davemloft.net>
51113
51114         * po/eo.po: Update Esperanto translation from translation project.
51115
51116         * po/vi.po: Update Vietnamese translation from translation project.
51117
51118         * po/de.po: Update German translation from translation project.
51119
51120 2013-07-26  David S. Miller  <davem@davemloft.net>
51121
51122         * po/bg.po: Update Bulgarian translation from translation project.
51123
51124         * po/nl.po: Update Dutch translation from translation project.
51125         * po/pl.po: Update Polish translation from translation project.
51126         * po/ru.po: Update Russian translation from translation project.
51127
51128 2013-07-24  David S. Miller  <davem@davemloft.net>
51129
51130         * po/libc.pot: Update.
51131
51132 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51133
51134         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
51135         variable page size.
51136         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
51137         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
51138         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
51139
51140 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51141
51142         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
51143
51144 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51145             Andreas Schwab  <schwab@suse.de>
51146             Roland McGrath  <roland@hack.frob.com>
51147             Joseph Myers  <joseph@codesourcery.com>
51148             Carlos O'Donell  <carlos@redhat.com>
51149
51150         [BZ #15755]
51151         * config.h.in: Define HAVE_PT_CHOWN.
51152         * config.make.in (build-pt-chown): New variable.
51153         * configure.in (--enable-pt_chown): New configure option.
51154         * configure: Regenerate.
51155         * login/Makefile: Include Makeconfig.  Build pt_chown only if
51156         build-pt-chown is enabled.
51157         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
51158         pt_chown to fix pty ownership.
51159         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
51160         CLOSE_ALL_FDS.
51161         * manual/install.texi (Configuring and compiling): Mention
51162         --enable-pt_chown. Add @findex for grantpt.
51163         * INSTALL: Regenerate.
51164
51165 2013-07-20  David S. Miller  <davem@davemloft.net>
51166
51167         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
51168         difference between 32-bit and 64-bit.
51169
51170 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
51171
51172         [BZ #15711]
51173         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
51174         Avoid system header dependency with -ffreestanding.
51175         ($(objpfx)bits/syscall%d): Likewise.
51176
51177 2013-07-13  David S. Miller  <davem@davemloft.net>
51178
51179         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
51180         underflows from atanl/atan2l due to bug 15319.
51181         (casinh_test_data): Likewise.
51182
51183 2013-07-07  David S. Miller  <davem@davemloft.net>
51184
51185         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
51186
51187 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
51188
51189         * sysdeps/i386/fpu/libm-test-ulps: Update.
51190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51191
51192 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
51193
51194         * configure.in (--enable-lock-elision): Fix message text.
51195         * INSTALL: Regenerate.
51196         * configure: Regenerate.
51197
51198 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51199
51200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
51201
51202 2013-07-03  Andreas Jaeger  <aj@suse.de>
51203
51204         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
51205         define.
51206         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
51207         (ptrace_peeksiginfo_args): Add.
51208         (__ptrace_peeksiginfo_flags): Add.
51209         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
51210         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
51211         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
51212
51213 2013-07-03  Allan McRae  <allan@archlinux.org>
51214
51215         * sysdeps/i386/fpu/libm-test-ulps: Update.
51216
51217 2013-07-02  David S. Miller  <davem@davemloft.net>
51218
51219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51220
51221 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
51222
51223         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51224
51225 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51226
51227         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
51228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51229
51230 2013-07-02  Andi Kleen <ak@linux.intel.com>
51231
51232         * config.h.in (ENABLE_LOCK_ELISION): Add.
51233         * configure.in (--enable-lock-elision): Add option.
51234         * manual/install.texi: Document --enable lock elision.
51235         * configure: Regenerate
51236         * INSTALL: Regenerate.
51237
51238 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
51239
51240         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
51241         SSE4.2 strcasecmp for libc.a.
51242         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
51243
51244 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
51245
51246         [BZ #13304]
51247         * soft-fp/op-common.h (_FP_FMA): New macro.
51248         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
51249         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
51250         (_FP_MUL_MEAT_1_imm): ... here.
51251         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
51252         (_FP_MUL_MEAT_1_wide): ... here.
51253         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
51254         (_FP_MUL_MEAT_1_hard): ... here.
51255         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
51256         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
51257         (_FP_MUL_MEAT_2_wide): ... here.
51258         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
51259         (_FP_MUL_MEAT_2_wide_3mul): ... here.
51260         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
51261         (_FP_MUL_MEAT_2_gmp): ... here.
51262         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
51263         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
51264         (_FP_MUL_MEAT_4_wide): ... here.
51265         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
51266         (_FP_MUL_MEAT_4_gmp): ... here.
51267         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
51268         (_FP_WFRACBITS_DW_S): Likewise.
51269         (_FP_WFRACXBITS_DW_S): Likewise.
51270         (_FP_HIGHBIT_DW_S): Likewise.
51271         (FP_FMA_S): Likewise.
51272         (_FP_FRAC_HIGH_DW_S): Likewise.
51273         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
51274         (_FP_WFRACBITS_DW_D): Likewise.
51275         (_FP_WFRACXBITS_DW_D): Likewise.
51276         (_FP_HIGHBIT_DW_D): Likewise.
51277         (FP_FMA_D): Likewise.
51278         (_FP_FRAC_HIGH_DW_D): Likewise.
51279         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
51280         (_FP_WFRACBITS_DW_E): Likewise.
51281         (_FP_WFRACXBITS_DW_E): Likewise.
51282         (_FP_HIGHBIT_DW_E): Likewise.
51283         (FP_FMA_E): Likewise.
51284         (_FP_FRAC_HIGH_DW_E): Likewise.
51285         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
51286         (_FP_WFRACBITS_DW_Q): Likewise.
51287         (_FP_WFRACXBITS_DW_Q): Likewise.
51288         (_FP_HIGHBIT_DW_Q): Likewise.
51289         (FP_FMA_Q): Likewise.
51290         (_FP_FRAC_HIGH_DW_Q): Likewise.
51291         * soft-fp/fmasf4.c: New file.
51292         * soft-fp/fmadf4.c: Likewise.
51293         * soft-fp/fmatf4.c: Likewise.
51294
51295 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51296
51297         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
51298         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
51299         Silvermont.
51300         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
51301         macro.
51302         (index_Slow_SSE4_2): Likewise.
51303         (index_Prefer_PMINUB_for_stringop): Likewise.
51304         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
51305         bit_Slow_SSE4_2 is set.
51306         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
51307         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
51308
51309 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51310
51311         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
51312         rtld_global._dl_hwcap2.
51313         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
51314         POWER8.
51315         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
51316         POWER8 feature descriptions defined in _dl_hwcap2.
51317         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
51318         string handling for POWER8 feature bits.
51319         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
51320         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
51321         _dl_powerpc_cap_flags.
51322         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
51323         * sysdeps/powerpc/rtld-global-offsets.sym
51324         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
51325         _dl_hwcap2 in the rtld_global_ro structure.
51326
51327 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51328
51329         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
51330         hardware capabilities in support of AT_HWCAP2.
51331         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
51332         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
51333         GLRO(dl_hwcap2).
51334         (_dl_show_auxv): Add support for calling _dl_procinfo to display
51335         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
51336         explicitly the unknown a_type display mechanism is used.
51337         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
51338         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
51339         struct member.
51340         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
51341         to macro prototype for AT_HWCAP2 support.
51342         * sysdeps/i386/dl-procinfo.h: Likewise.
51343         * sysdeps/s390/dl-procinfo.h: Likewise.
51344         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
51345         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
51346         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
51347         return -1 for unknown a_type display fallback.
51348         * sysdeps/sparc/dl-procinfo.h: Likewise.
51349         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
51350         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
51351
51352 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
51353
51354         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
51355         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
51356
51357 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
51358
51359         [BZ #12492]
51360         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
51361         mprotect making __stack_prot writable.
51362
51363 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
51364             Joseph Myers  <joseph@codesourcery.com>
51365
51366         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
51367         as being properly aligned.
51368
51369 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
51370
51371         * dlfcn/modstatic5.c: New file.
51372         * dlfcn/tststatic5.c: New file.
51373         * dlfcn/Makefile (tests): Add tststatic5.
51374         (tests-static): Likewise.
51375         (modules-names): Add modstatic5.
51376         (tststatic5-ENV): New variable.
51377         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
51378
51379         [BZ #15022]
51380         * elf/dl-support.c (_dl_main_map): New variable.
51381         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
51382         (_dl_nns, _dl_load_adds): Set to 1.
51383         (_dl_initial_searchlist): Refer to _dl_main_map.
51384         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
51385         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
51386         call to _dl_get_origin.
51387         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
51388         around call_map.
51389         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
51390         * dlfcn/modstatic3.c: New file.
51391         * dlfcn/tststatic3.c: New file.
51392         * dlfcn/tststatic4.c: New file.
51393         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
51394         (tests-static): Likewise.
51395         (modules-names): Add modstatic3.
51396         (tststatic3-ENV, tststatic4-ENV): New variables.
51397         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
51398         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
51399
51400 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
51401
51402         * configure.in (CC): Require GCC version 4.4 or later.
51403         * configure: Regenerated.
51404         * manual/install.texi (Tools for Compilation): Update GCC version
51405         requirement.
51406         * INSTALL: Regenerated.
51407
51408 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51409
51410         [BZ #15674]
51411         * string/test-memcmp.c (check2): New.
51412         (main): Call check2.
51413
51414         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
51415
51416 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
51417
51418         [BZ #15022]
51419         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
51420         over to...
51421         (dl_open_worker) [!SHARED]: ... here.
51422
51423 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51424
51425         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
51426
51427 2013-06-25  Richard Henderson  <rth@redhat.com>
51428
51429         * locale/programs/locarchive.c: Include <libc-internal.h>
51430
51431 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
51432
51433         * manual/texinfo.tex: Update to version 2013-06-21.17, with
51434         trailing whitespace removed.
51435
51436 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51437
51438         [BZ #10283]
51439         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
51440         * locale/programs/locarchive.c: Include libc-mmap.h.
51441         (prepare_address_space): Take two new outputs (the mmap base and len).
51442         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
51443         values.
51444         (create_archive): Declare new mmap base and len values for
51445         prepare_address_space, and store the result in ah.
51446         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
51447         (enlarge_archive): If ah->mmap_base is not NULL, use that and
51448         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51449         Declare new mmap base and len values for
51450         prepare_address_space, and store the result in new_ah.
51451         (open_archive): Declare new mmap base and len values for
51452         prepare_address_space, and store the result in ah.
51453         (close_archive): If ah->mmap_base is not NULL, use that and
51454         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
51455         * sysdeps/generic/libc-mmap.h: New file.
51456
51457 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
51458
51459         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
51460         (ALIGN_UP): Likewise.
51461         (PTR_ALIGN_DOWN): Likewise.
51462         (PTR_ALIGN_UP): Likewise.
51463
51464 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51465
51466         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
51467         entry mapped to PPC_PLATFORM_POWER8.
51468         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
51469         POWER8.
51470         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
51471         (_dl_string_platform): Add case for exporting platform position for
51472         POWER8.
51473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
51474         search path to sysdeps/powerpc/powerpc32/power8 directory.
51475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
51476         search path to sysdeps/powerpc/powerpc64/power8 directory.
51477         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
51478         power7 directories.
51479         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
51480         power7 directories.
51481
51482 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
51483
51484         * INSTALL: Regenerate.
51485
51486         * nscd/connections.c (nscd_init): Fix comment.
51487
51488 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
51489
51490         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
51491
51492         [BZ #15667]
51493         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
51494         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
51495
51496 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51497
51498         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
51499         DL_DST_REQ_STATIC.
51500         (DL_DST_REQ_STATIC): Remove macro.
51501
51502 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
51503
51504         [BZ #7006]
51505         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
51506         with a shift of 0 bits.
51507
51508 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
51509
51510         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
51511         $(tststatic-ENV).
51512
51513 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
51514
51515         [BZ #15655]
51516         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
51517
51518 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51519
51520         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
51521         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
51522         accepts -fno-tree-loop-distribute-patterns.
51523         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
51524         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
51525         recursive call.
51526         * string/memset.c (memset): Likewise.
51527         * string/test-memmove.c (simple_memmove): Disable loop transformation
51528         to library calls.
51529         * string/test-memset.c (simple_memset): Likewise.
51530         * benchtests/bench-memmove.c (simple_memmove): Likewise.
51531         * benchtests/bench-memset.c (simple_memset): Likewise.
51532         * configure: Regenerated.
51533
51534 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
51535
51536         * math/test-misc.c (main): Ignore fesetround failure when failures
51537         of subsequent rounding tests would be ignored.
51538
51539         [BZ #15654]
51540         * math/fedisblxcpt.c (fedisableexcept): Return 0.
51541         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
51542         * math/fegetenv.c (__fegetenv): Return 0.
51543         * math/fegetexcept.c (fegetexcept): Return 0.
51544         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
51545         FE_TONEAREST.
51546         * math/feholdexcpt.c (feholdexcept): Return 0.
51547         * math/fesetenv.c (__fesetenv): Return 0.
51548         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
51549         argument FE_TONEAREST.
51550         * math/feupdateenv.c (__feupdateenv): Return 0.
51551         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
51552
51553 2013-06-18  Roland McGrath  <roland@hack.frob.com>
51554
51555         * elf/rtld-Rules (rtld-compile-command.S): New variable.
51556         (rtld-compile-command.s, rtld-compile-command.c): New variables.
51557         ($(objpfx)rtld-%.os rules): Use them.
51558
51559 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51560
51561         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
51562         fields.
51563
51564 2013-06-17  Roland McGrath  <roland@hack.frob.com>
51565
51566         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
51567         length of target pattern, then descending length of dependency pattern.
51568         * configure.in (AWK): Require gawk 3.1.2 or newer.
51569         * manual/install.texi (Tools for Compilation): Say that we do.
51570         * configure: Regenerated.
51571
51572         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
51573         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
51574         * scripts/sysd-rules.awk: ... this new script.
51575         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
51576         than a glob-style pattern.
51577
51578 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
51579
51580         * math/test-misc.c (main): Do not treat incorrectly rounded
51581         conversions as failure unless ROUNDING_TESTS passes.
51582
51583 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
51584
51585         [BZ #15631]
51586         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
51587         restore exception state around main square root computation, then
51588         check for inexactness explicitly.
51589
51590         * math/libm-test.inc (fma_test_data): Add another test.
51591
51592 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51593
51594         * manual/threads.texi (Non-POSIX Extensions): New document
51595         node.  Document pthread_getattr_default_np and
51596         pthread_setattr_default_np.
51597
51598         * Versions.def (libpthread): Add GLIBC_2.18.
51599         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
51600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
51601         Likewise.
51602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
51603         Likewise.
51604         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
51605         Likewise.
51606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
51607         Likewise.
51608         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
51609         Likewise.
51610         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
51611         Likewise.
51612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
51613         Likewise.
51614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
51615         Likewise.
51616         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
51617         Likewise.
51618
51619 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
51620
51621         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51622         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
51623
51624 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51625             H.J. Lu  <hjl.tools@gmail.com>
51626
51627         [BZ #15627]
51628         * sysdeps/x86_64/rtld-memset.c: Remove file.
51629         * sysdeps/x86_64/rtld-memset.S: New file.
51630
51631 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
51632
51633         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
51634         (test_in_one_mode): Take arguments for whether the rounding mode
51635         is supported for each floating-point type.
51636         (do_test): Pass new arguments to test_in_one_mode using
51637         ROUNDING_TESTS.
51638
51639 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51640
51641         * posix/tst-waitid.c (do_test): Distinguish different instances of
51642         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
51643         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
51644         before entering the kernel for waitpid.
51645
51646 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51647
51648         * NEWS: Fix note on clock function precision.  Text by Roland
51649         McGrath.
51650
51651 2013-06-13  Roland McGrath  <roland@hack.frob.com>
51652
51653         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
51654         it into place only when and if the sanity check passes.
51655
51656 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
51657
51658         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
51659         output for whether conversion result is exact.  Take argument
51660         indicating whether type is IBM long double.
51661         (round_for_all): Change need_exact field to ibm_ld.
51662         * stdlib/tst-strtod-round.c (struct exactness): New type.
51663         (struct test): Change bool ld_ok field to struct exactness exact.
51664         (TEST): Update all definitions for change to field.
51665         (tests): Regenerate array contents.
51666         (test_in_one_mode): Take pointer to new field instead of old ld_ok
51667         field value.  Check for IBM long double here.
51668         (do_test): Update calls to test_in_one_mode.
51669
51670 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51671
51672         [BZ #12515]
51673         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
51674         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
51675
51676 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
51677
51678         [BZ #15605]
51679         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
51680         generated by the compiler on loop optimizations.
51681         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
51682         general definitions.
51683
51684 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
51685
51686         * math/bug-nextafter.c: Include <math-tests.h>.
51687         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51688         the relevant type.
51689         * math/bug-nexttoward.c: Include <math-tests.h>.
51690         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51691         the relevant type.
51692         * math/test-misc.c: Include <math-tests.h>.
51693         (main): Only test for exceptions if EXCEPTION_TESTS is true for
51694         the relevant type.
51695
51696 2013-06-12  Andreas Jaeger  <aj@suse.de>
51697
51698         * po/ia.po: Update Interlingua translation from translation
51699         project.
51700
51701 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
51702
51703         * include/fenv.h: Include stdbool.h.
51704         (struct rm_ctx): New structure.
51705         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
51706         Define macro.
51707         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
51708         (SET_RESTORE_ROUNDF): Likewise.
51709         (SET_RESTORE_ROUNDL): Likewise.
51710         (SET_RESTORE_ROUND_NOEX): Likewise.
51711         (SET_RESTORE_ROUND_NOEXF): Likewise.
51712         (SET_RESTORE_ROUND_NOEXL): Likewise.
51713         (SET_RESTORE_ROUND_53BIT): Likewise.
51714         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
51715         (libc_feresetround_noexf_ctx): Likewise.
51716         (libc_feresetround_noexl_ctx): Likewise.
51717         (libc_feholdsetround_53bit_ctx): Likewise.
51718         (libc_feresetround_53bit_ctx): Likewise.
51719         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
51720         (libc_feholdexcept_setround_sse_ctx): New function.
51721         (libc_fesetenv_sse_ctx): Likewise.
51722         (libc_feupdateenv_sse_ctx): Likewise.
51723         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
51724         (libc_feholdexcept_setround_387_ctx): Likewise.
51725         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
51726         (libc_feholdsetround_387_prec_ctx): Likewise.
51727         (libc_feholdsetround_387_ctx): Likewise.
51728         (libc_feholdsetround_387_53bit_ctx): Likewise.
51729         (libc_feholdsetround_sse_ctx): Likewise.
51730         (libc_feresetround_sse_ctx): Likewise.
51731         (libc_feresetround_387_ctx): Likewise.
51732         (libc_feupdateenv_387_ctx): Likewise.
51733         (libc_feholdexcept_setroundf_ctx): Define macro.
51734         (libc_fesetenvf_ctx): Likewise.
51735         (libc_feupdateenvf_ctx): Likewise.
51736         (libc_feholdsetroundf_ctx): Likewise.
51737         (libc_feresetroundf_ctx): Likewise.
51738         (libc_feholdexcept_setround_ctx): Likewise.
51739         (libc_fesetenv_ctx): Likewise.
51740         (libc_feupdateenv_ctx): Likewise.
51741         (libc_feholdsetround_ctx): Likewise.
51742         (libc_feresetround_ctx): Likewise.
51743         (libc_feholdexcept_setroundl_ctx): Likewise.
51744         (libc_feupdateenvl_ctx): Likewise.
51745         (libc_feholdsetroundl_ctx): Likewise.
51746         (libc_feresetroundl_ctx): Likewise.
51747         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
51748         (libc_feresetround_53bit_ctx): Likewise.
51749
51750 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51751
51752         * locale/iso-639.def: Convert to UTF-8.
51753
51754 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
51755
51756         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
51757         (EXCEPTION_TESTS_double): Likewise.
51758         (EXCEPTION_TESTS_long_double): Likewise.
51759         (EXCEPTION_TESTS): Likewise.
51760         * math/libm-test.inc (test_exceptions): Only test exceptions if
51761         EXCEPTION_TESTS (FLOAT).
51762
51763 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51764
51765         * benchtests/Makefile (string-bench): Add strcpy_chk and
51766         stpcpy_chk.
51767         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
51768         * benchtests/bench-stpcpy_chk.c: New file.
51769         * benchtests/bench-strcpy_chk-ifunc.c: New file.
51770         * benchtests/bench-strcpy_chk.c: New file.
51771         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
51772         code.
51773         (do_test): Likewise.
51774
51775 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
51776
51777         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
51778         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
51779         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
51780         with tabs where appropriate.
51781         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
51782         dl-procinfo.h.
51783         [PPC_PLATFORM_PPC440]: Likewise.
51784         [PPC_PLATFORM_PPC464]: Likewise.
51785         [PPC_PLATFORM_PPC476]: Likewise.
51786         (_dl_string_platform): Add support for detecting ppc405, ppc440,
51787         ppc464, and ppc476 platform strings merging from ports/
51788         dl-procinfo.h.
51789
51790 2013-06-11  Andreas Schwab  <schwab@suse.de>
51791
51792         [BZ #14991]
51793         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
51794         (from_ucs4_idx): Regenerate.
51795         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
51796         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
51797         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
51798         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
51799         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
51800         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
51801         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
51802         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
51803         from FROM_LOOP and TO_LOOP specific macros.
51804         (BODY): Handle combining characters.
51805         * iconvdata/BIG5HKSCS.irreversible: Update.
51806         * iconvdata/BIG5HKSCS.precomposed: New file.
51807         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
51808         characters.
51809         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
51810
51811 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51812
51813         * include/sys/time.h: Fix indentation and add copyright header.
51814
51815         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
51816         (do_test): Likewise.
51817         * string/test-memchr.c (do_one_test): Likewise.
51818         (do_test): Likewise.
51819         * string/test-memcmp.c (do_one_test): Likewise.
51820         (do_test): Likewise.
51821         * string/test-memcpy.c (do_one_test): Likewise.
51822         (do_test): Likewise.
51823         * string/test-memmem.c (do_one_test): Likewise.
51824         (do_test): Likewise.
51825         (do_random_tests): Likewise.
51826         * string/test-memmove.c (do_one_test): Likewise.
51827         (do_test): Likewise.
51828         * string/test-memset.c (do_one_test): Likewise.
51829         (do_test): Likewise.
51830         * string/test-rawmemchr.c (do_one_test): Likewise.
51831         (do_test): Likewise.
51832         * string/test-strcasecmp.c (do_one_test): Likewise.
51833         (do_test): Likewise.
51834         * string/test-strcasestr.c (do_one_test): Likewise.
51835         (do_test): Likewise.
51836         * string/test-strcat.c (do_one_test): Likewise.
51837         (do_test): Likewise.
51838         * string/test-strchr.c (do_one_test): Likewise.
51839         (do_test): Likewise.
51840         * string/test-strcmp.c (do_one_test): Likewise.
51841         (do_test): Likewise.
51842         * string/test-strcpy.c (do_one_test): Likewise.
51843         (do_test): Likewise.
51844         * string/test-string.h: Likewise.
51845         (test_init): Likewise.
51846         * string/test-strlen.c (do_one_test): Likewise.
51847         (do_test): Likewise.
51848         * string/test-strncasecmp.c (do_one_test): Likewise.
51849         (do_test): Likewise.
51850         * string/test-strncat.c (do_one_test): Likewise.
51851         (do_test): Likewise.
51852         * string/test-strncmp.c (do_one_test): Likewise.
51853         (do_test_limit): Likewise.
51854         (do_test): Likewise.
51855         * string/test-strncpy.c (do_one_test): Likewise.
51856         (do_test): Likewise.
51857         * string/test-strnlen.c (do_one_test): Likewise.
51858         (do_test): Likewise.
51859         * string/test-strpbrk.c (do_one_test): Likewise.
51860         (do_test): Likewise.
51861         * string/test-strrchr.c (do_one_test): Likewise.
51862         (do_test): Likewise.
51863         * string/test-strspn.c (do_one_test): Likewise.
51864         (do_test): Likewise.
51865         * string/test-strstr.c (do_one_test): Likewise.
51866         (do_test): Likewise.
51867
51868         * benchtests/Makefile (string-bench): Add string benchmarks.
51869         * benchtests/bench-bcopy-ifunc.c: New file.
51870         * benchtests/bench-bcopy.c: New file.
51871         * benchtests/bench-bzero-ifunc.c: New file.
51872         * benchtests/bench-bzero.c: New file.
51873         * benchtests/bench-memccpy-ifunc.c: New file.
51874         * benchtests/bench-memccpy.c: New file.
51875         * benchtests/bench-memchr-ifunc.c: New file.
51876         * benchtests/bench-memchr.c: New file.
51877         * benchtests/bench-memcmp-ifunc.c: New file.
51878         * benchtests/bench-memcmp.c: New file.
51879         * benchtests/bench-memmem-ifunc.c: New file.
51880         * benchtests/bench-memmem.c: New file.
51881         * benchtests/bench-memmove-ifunc.c: New file.
51882         * benchtests/bench-memmove.c: New file.
51883         * benchtests/bench-mempcpy-ifunc.c: New file.
51884         * benchtests/bench-mempcpy.c: New file.
51885         * benchtests/bench-memset-ifunc.c: New file.
51886         * benchtests/bench-memset.c: New file.
51887         * benchtests/bench-rawmemchr-ifunc.c: New file.
51888         * benchtests/bench-rawmemchr.c: New file.
51889         * benchtests/bench-stpcpy-ifunc.c: New file.
51890         * benchtests/bench-stpcpy.c: New file.
51891         * benchtests/bench-stpncpy-ifunc.c: New file.
51892         * benchtests/bench-stpncpy.c: New file.
51893         * benchtests/bench-strcasecmp-ifunc.c: New file.
51894         * benchtests/bench-strcasecmp.c: New file.
51895         * benchtests/bench-strcasestr-ifunc.c: New file.
51896         * benchtests/bench-strcasestr.c: New file.
51897         * benchtests/bench-strcat-ifunc.c: New file.
51898         * benchtests/bench-strcat.c: New file.
51899         * benchtests/bench-strchr-ifunc.c: New file.
51900         * benchtests/bench-strchr.c: New file.
51901         * benchtests/bench-strchrnul-ifunc.c: New file.
51902         * benchtests/bench-strchrnul.c: New file.
51903         * benchtests/bench-strcmp-ifunc.c: New file.
51904         * benchtests/bench-strcmp.c: New file.
51905         * benchtests/bench-strcpy-ifunc.c: New file.
51906         * benchtests/bench-strcpy.c: New file.
51907         * benchtests/bench-strcspn-ifunc.c: New file.
51908         * benchtests/bench-strcspn.c: New file.
51909         * benchtests/bench-strlen-ifunc.c: New file.
51910         * benchtests/bench-strlen.c: New file.
51911         * benchtests/bench-strncasecmp-ifunc.c: New file.
51912         * benchtests/bench-strncasecmp.c: New file.
51913         * benchtests/bench-strncat-ifunc.c: New file.
51914         * benchtests/bench-strncat.c: New file.
51915         * benchtests/bench-strncmp-ifunc.c: New file.
51916         * benchtests/bench-strncmp.c: New file.
51917         * benchtests/bench-strncpy-ifunc.c: New file.
51918         * benchtests/bench-strncpy.c: New file.
51919         * benchtests/bench-strnlen-ifunc.c: New file.
51920         * benchtests/bench-strnlen.c: New file.
51921         * benchtests/bench-strpbrk-ifunc.c: New file.
51922         * benchtests/bench-strpbrk.c: New file.
51923         * benchtests/bench-strrchr-ifunc.c: New file.
51924         * benchtests/bench-strrchr.c: New file.
51925         * benchtests/bench-strspn-ifunc.c: New file.
51926         * benchtests/bench-strspn.c: New file.
51927         * benchtests/bench-strstr-ifunc.c: New file.
51928         * benchtests/bench-strstr.c: New file.
51929
51930         * benchtests/Makefile: Disable parallel execution of targets.
51931         (string-bench): Add memcpy.
51932         (benchset): New variable to store a list of benchmark sets.
51933         (bench-func): Renamed from bench.
51934         (bench-set): New target.
51935         (bench): Depend on bench-func and bench-set.
51936         * benchtests/README: Add section on benchmark sets.
51937         * benchtests/bench-memcpy-ifunc.c: New file.
51938         * benchtests/bench-memcpy.c: New file.
51939         * benchtests/bench-string.h: New file.
51940
51941 2013-06-11  Andreas Schwab  <schwab@suse.de>
51942
51943         [BZ #15577]
51944         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
51945         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
51946         values in the triple.
51947         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
51948         terminator in the group key.
51949
51950 2013-06-11  Andreas Jaeger  <aj@suse.de>
51951
51952         * po/zh_TW.po: Update Chinese (traditional) translation from
51953         translation project.
51954
51955 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
51956
51957         * include/time.h (__clock_gettime): Add libc_hidden_proto.
51958         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
51959         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
51960         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
51961         (clock_getcpuclockid): Likewise.
51962         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
51963         Add weak_alias and libc_hidden_def.
51964         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
51965         * rt/clock_gettime.c (clock_gettime): Rename to
51966         __clock_gettime.  Add weak_alias and libc_hidden_def.
51967         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
51968         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
51969         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
51970         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
51971         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
51972         Likewise.
51973         * rt/clock_settime.c (clock_settime): Rename to
51974         __clock_settime.  Add weak_alias and libc_hidden_def.
51975         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
51976
51977 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
51978
51979         * mach/err_boot.sub: Remove trailing whitespace.
51980         * mach/err_ipc.sub: Likewise.
51981         * mach/err_mach.sub: Likewise.
51982
51983         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
51984         (ROUNDING_TESTS_double): Likewise.
51985         (ROUNDING_TESTS_long_double): Likewise.
51986         (ROUNDING_TESTS): Likewise.
51987         * math/libm-test.inc: Include <math-tests.h>.
51988         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
51989         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
51990         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
51991         (IF_ROUND_INIT_FE_UPWARD): Likewise.
51992
51993 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
51994
51995         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
51996         of assigning.
51997
51998 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
51999
52000         * sysdeps/gnu/errlist.awk: Do not generate space at end of
52001         otherwise empty TRANS lines.
52002         * sysdeps/gnu/errlist.c: Regenerated.
52003
52004         * catgets/gencat.c (error_print): Use (void) in function
52005         definition.
52006         * crypt/crypt_util.c (__init_des): Likewise.
52007         * crypt/speeds.c (Stop): Likewise.
52008         (main): Likewise.
52009         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
52010         * inet/ruserpass.c (token): Likewise.
52011         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
52012         * intl/localealias.c (extend_alias_table): Likewise.
52013         * intl/plural-exp.c (init_germanic_plural): Likewise.
52014         * libio/fcloseall.c (__fcloseall): Likewise.
52015         * libio/genops.c (_IO_flush_all): Likewise.
52016         (_IO_flush_all_linebuffered): Likewise.
52017         (_IO_cleanup): Likewise.
52018         (_IO_iter_begin): Likewise.
52019         (_IO_iter_end): Likewise.
52020         (_IO_list_lock): Likewise.
52021         (_IO_list_unlock): Likewise.
52022         (_IO_list_resetlock): Likewise.
52023         * libio/getchar.c (getchar): Likewise.
52024         * libio/getchar_u.c (getchar_unlocked): Likewise.
52025         * libio/getwchar.c (getwchar): Likewise.
52026         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
52027         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
52028         * login/getpt.c (__getpt): Likewise.
52029         * login/tst-utmp.c (main): Likewise.
52030         * malloc/hooks.c (__malloc_check_init): Likewise.
52031         * malloc/malloc.c (__malloc_stats): Likewise.
52032         * malloc/mtrace.c (tr_break): Likewise.
52033         (mtrace): Likewise.
52034         (muntrace): Likewise.
52035         * misc/fstab.c (endfsent): Likewise.
52036         * misc/getclktck.c (__getclktck): Likewise.
52037         * misc/getdtsz.c (__getdtablesize): Likewise.
52038         * misc/gethostid.c (gethostid): Likewise.
52039         * misc/getpagesize.c (__getpagesize): Likewise.
52040         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
52041         (__get_nprocs): Likewise.
52042         (__get_phys_pages): Likewise.
52043         (__get_avphys_pages): Likewise.
52044         * misc/getttyent.c (getttyent): Likewise.
52045         (setttyent): Likewise.
52046         (endttyent): Likewise.
52047         * misc/getusershell.c (getusershell): Likewise.
52048         (endusershell): Likewise.
52049         (setusershell): Likewise.
52050         (initshells): Likewise.
52051         * misc/hsearch.c (__hdestroy): Likewise.
52052         * misc/sync.c (sync): Likewise.
52053         * misc/syslog.c (closelog_internal): Likewise.
52054         (closelog): Likewise.
52055         * misc/ttyslot.c (ttyslot): Likewise.
52056         * misc/vhangup.c (vhangup): Likewise.
52057         * posix/fork.c (__fork): Likewise.
52058         * posix/getegid.c (__getegid): Likewise.
52059         * posix/geteuid.c (__geteuid): Likewise.
52060         * posix/getgid.c (__getgid): Likewise.
52061         * posix/getpid.c (__getpid): Likewise.
52062         * posix/getppid.c (__getppid): Likewise.
52063         * posix/getuid.c (__getuid): Likewise.
52064         * posix/pause.c (pause): Likewise.
52065         * posix/setpgrp.c (setpgrp): Likewise.
52066         * posix/setsid.c (__setsid): Likewise.
52067         * posix/test-vfork.c (noop): Likewise.
52068         * resolv/gethnamaddr.c (_endhtent): Likewise.
52069         (_gethtent): Likewise.
52070         (ht_endhostent): Likewise.
52071         (gethostent): Likewise.
52072         (dns_service): Likewise.
52073         * stdlib/drand48.c (drand48): Likewise.
52074         * stdlib/lrand48.c (lrand48): Likewise.
52075         * stdlib/mrand48.c (mrand48): Likewise.
52076         * stdlib/rand.c (rand): Likewise.
52077         * stdlib/random.c (__random): Likewise.
52078         * stdlib/setenv.c (clearenv): Likewise.
52079         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
52080         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
52081         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
52082         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
52083         (__get_nprocs): Likewise.
52084         (__get_phys_pages): Likewise.
52085         (__get_avphys_pages): Likewise.
52086         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
52087         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
52088         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
52089         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
52090         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
52091         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
52092         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
52093         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
52094         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
52095         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
52096         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
52097         * sysdeps/mach/hurd/sync.c (sync): Likewise.
52098         * sysdeps/posix/clock.c (clock): Likewise.
52099         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
52100         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
52101         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
52102         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
52103         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
52104         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
52105         (__get_nprocs_conf): Likewise.
52106         (__get_phys_pages): Likewise.
52107         (__get_avphys_pages): Likewise.
52108         * time/clock.c (clock): Likewise.
52109         * time/tzset.c (__tzname_max): Likewise.
52110
52111 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
52112
52113         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
52114         (__bswap_32): Do not use "register".
52115         * crypt/crypt.c (_ufc_doit_r): Likewise.
52116         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
52117         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
52118         * gmon/gmon.c (__monstartup): Likewise.
52119         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
52120         * hurd/hurdmalloc.c (more_memory): Likewise.
52121         (malloc): Likewise.
52122         (free): Likewise.
52123         (realloc): Likewise.
52124         (malloc_fork_prepare): Likewise.
52125         (malloc_fork_parent): Likewise.
52126         (malloc_fork_child): Likewise.
52127         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
52128         (_svcauth_des): Likewise.
52129         * inet/inet_lnaof.c (inet_lnaof): Likewise.
52130         * inet/inet_net.c (inet_network): Likewise.
52131         * inet/inet_netof.c (inet_netof): Likewise.
52132         * inet/rcmd.c (__validuser2_sa): Likewise.
52133         * io/fts.c (fts_open): Likewise.
52134         (fts_load): Likewise.
52135         (fts_close): Likewise.
52136         (fts_read): Likewise.
52137         (fts_children): Likewise.
52138         (fts_build): Likewise.
52139         (fts_stat): Likewise.
52140         (fts_sort): Likewise.
52141         (fts_alloc): Likewise.
52142         (fts_lfree): Likewise.
52143         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
52144         (_IO_file_xsgetn): Likewise.
52145         (_IO_file_xsgetn_mmap): Likewise.
52146         * libio/iofopncook.c (_IO_cookie_read): Likewise.
52147         (_IO_cookie_write): Likewise.
52148         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
52149         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
52150         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
52151         * malloc/obstack.c (_obstack_begin): Likewise.
52152         (_obstack_begin_1): Likewise.
52153         (_obstack_newchunk): Likewise.
52154         (_obstack_allocated_p): Likewise.
52155         (obstack_free): Likewise.
52156         (_obstack_memory_used): Likewise.
52157         * misc/getttyent.c (getttynam): Likewise.
52158         (getttyent): Likewise.
52159         (skip): Likewise.
52160         (value): Likewise.
52161         * misc/getusershell.c (initshells): Likewise.
52162         * misc/syslog.c (__vsyslog_chk): Likewise.
52163         * misc/ttyslot.c (ttyslot): Likewise.
52164         * nis/nis_hash.c (__nis_hash): Likewise.
52165         * posix/fnmatch_loop.c (FCT): Likewise.
52166         * posix/getconf.c (print_all): Likewise.
52167         (main): Likewise.
52168         * posix/getopt.c (exchange): Likewise.
52169         * posix/glob.c (globfree): Likewise.
52170         (prefix_array): Likewise.
52171         (__glob_pattern_type): Likewise.
52172         * resolv/arpa/nameser.h (NS_GET16): Likewise.
52173         (NS_GET32): Likewise.
52174         (NS_PUT16): Likewise.
52175         (NS_PUT32): Likewise.
52176         * resolv/gethnamaddr.c (getanswer): Likewise.
52177         (gethostbyname2): Likewise.
52178         (gethostbyaddr): Likewise.
52179         (_gethtent): Likewise.
52180         (_gethtbyname2): Likewise.
52181         (_gethtbyaddr): Likewise.
52182         * resolv/ns_print.c (dst_s_get_int16): Likewise.
52183         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
52184         * resolv/res_init.c (__res_vinit): Likewise.
52185         (net_mask): Likewise.
52186         * resolv/res_mkquery.c (outchar): Likewise.
52187         (PRINT): Likewise.
52188         * stdio-common/printf_fp.c (outchar): Likewise.
52189         (PRINT): Likewise.
52190         * stdio-common/printf_fphex.c (outchar): Likewise.
52191         (PRINT): Likewise.
52192         * stdio-common/printf_size.c (outchar): Likewise.
52193         (PRINT): Likewise.
52194         * stdio-common/test_rdwr.c (main): Likewise.
52195         * stdio-common/tfformat.c (matches): Likewise.
52196         * stdio-common/vfprintf.c (outchar): Likewise.
52197         (printf_unknown): Likewise.
52198         (buffered_vfprintf): Likewise.
52199         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52200         * stdio-common/xbug.c (AppendToBuffer): Likewise.
52201         (ReadFile): Likewise.
52202         * stdlib/qsort.c (SWAP): Likewise.
52203         (_quicksort): Likewise.
52204         * stdlib/setenv.c (__add_to_environ): Likewise.
52205         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52206         * stdlib/strtol_l.c (__strtol_l): Likewise.
52207         * stdlib/tst-strtod.c (main): Likewise.
52208         * stdlib/tst-strtol.c (main): Likewise.
52209         * stdlib/tst-strtoll.c (main): Likewise.
52210         * string/bits/string2.h (__strcmp_cc): Likewise.
52211         (__strcmp_cg): Likewise.
52212         (__strcspn_c1): Likewise.
52213         (__strcspn_c2): Likewise.
52214         (__strcspn_c3): Likewise.
52215         (__strspn_c1): Likewise.
52216         (__strspn_c2): Likewise.
52217         (__strspn_c3): Likewise.
52218         (__strsep_1c): Likewise.
52219         (__strsep_2c): Likewise.
52220         (__strsep_3c): Likewise.
52221         * string/memccpy.c (__memccpy): Likewise.
52222         * string/stpcpy.c (__stpcpy): Likewise.
52223         * string/strcmp.c (strcmp): Likewise.
52224         * string/strrchr.c (strrchr): Likewise.
52225         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
52226         Likewise.
52227         * sysdeps/mach/hurd/getcwd.c
52228         (_hurd_canonicalize_directory_name_internal): Likewise.
52229         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
52230         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
52231         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
52232         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
52233         Likewise, in both definitions.
52234         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
52235         definitions.
52236         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
52237         64] (__bswap_64): Likewise.
52238         * time/test_time.c (main): Likewise.
52239         * time/tzfile.c (__tzfile_read): Likewise.
52240         (__tzfile_compute): Likewise.
52241         * time/tzset.c (__tzset_parse_tz): Likewise.
52242         (tzset_internal): Likewise.
52243         (compute_change): Likewise.
52244         * wcsmbs/wcscat.c (__wcscat): Likewise.
52245         * wcsmbs/wcschr.c (wcschr): Likewise.
52246         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
52247         * wcsmbs/wcscspn.c (wcscspn): Likewise.
52248         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
52249         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
52250         * wcsmbs/wcsspn.c (wcsspn): Likewise.
52251         * wcsmbs/wcsstr.c (wcsstr): Likewise.
52252         * wcsmbs/wmemchr.c (wmemchr): Likewise.
52253         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
52254         * wcsmbs/wmemset.c (wmemset): Likewise.
52255
52256 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
52257
52258         * scripts/config.guess: Update to version 2013-05-16.
52259         * scripts/config.sub: Update to version 2013-04-24.
52260         * scripts/install-sh: Update to version 2011-11-20.07.
52261         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
52262         * scripts/move-if-change: Update to version 2012-01-06 07:23.
52263
52264 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
52265
52266         * debug/fgetws_u_chk.c: Fix leading whitespaces.
52267         * elf/sln.c: Likewise.
52268         * hurd/hurd/ioctl.h: Likewise.
52269         * hurd/hurdmalloc.c: Likewise.
52270         * hurd/xattr.c: Likewise.
52271         * include/shlib-compat.h: Likewise.
52272         * inet/ruserpass.c: Likewise.
52273         * libio/iofgets_u.c: Likewise.
52274         * libio/iofgetws_u.c: Likewise.
52275         * locale/programs/ld-identification.c: Likewise.
52276         * locale/programs/ld-time.c: Likewise.
52277         * mach/msg-destroy.c: Likewise.
52278         * nss/nss_files/files-netgrp.c: Likewise.
52279         * resolv/res_data.c: Likewise.
52280         * soft-fp/op-1.h: Likewise.
52281         * soft-fp/op-2.h: Likewise.
52282         * soft-fp/op-4.h: Likewise.
52283         * soft-fp/op-common.h: Likewise.
52284         * stdio-common/printf_fphex.c: Likewise.
52285         * stdlib/strtod_l.c: Likewise.
52286         * sunrpc/rpc/clnt.h: Likewise.
52287         * sysdeps/generic/framestate.c: Likewise.
52288         * sysdeps/i386/bsd-_setjmp.S: Likewise.
52289         * sysdeps/i386/bsd-setjmp.S: Likewise.
52290         * sysdeps/i386/__longjmp.S: Likewise.
52291         * sysdeps/i386/setjmp.S: Likewise.
52292         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
52293         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
52294         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52295         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
52296         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
52297         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
52298         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
52299         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
52300         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
52301         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
52302         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
52303         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
52304         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
52305         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
52306         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
52307         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
52308         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
52309         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
52310         * sysdeps/ieee754/support.c: Likewise.
52311         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52312         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
52313         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
52314         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
52315         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
52316         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
52317         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
52318         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
52319         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
52320         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
52321         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
52322         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
52323         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
52324         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
52325         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
52326         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
52327         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
52328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
52329
52330 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
52331
52332         * posix/transbug.c: Remove executable mode.
52333
52334 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
52335
52336         * crypt/speeds.c: Remove trailing whitespace.
52337         * dlfcn/default.c: Likewise.
52338         * elf/ifuncdep2.c: Likewise.
52339         * elf/ifuncmain1.c: Likewise.
52340         * elf/ifuncmain1vis.c: Likewise.
52341         * elf/testobj.h: Likewise.
52342         * elf/tst-stackguard1.c: Likewise.
52343         * gmon/sys/gmon.h: Likewise.
52344         * hurd/hurdmsg.c: Likewise.
52345         * hurd/new-fd.c: Likewise.
52346         * hurd/ports-get.c: Likewise.
52347         * iconvdata/ibm1008_420.c: Likewise.
52348         * inet/tst-getni1.c: Likewise.
52349         * inet/tst-getni2.c: Likewise.
52350         * libio/ioungetc.c: Likewise.
52351         * libio/wfiledoalloc.c: Likewise.
52352         * manual/libm-err-tab.pl: Likewise.
52353         * math/w_dremf.c: Likewise.
52354         * misc/ftruncate.c: Likewise.
52355         * posix/bug-glob2.c: Likewise.
52356         * posix/tst-pcre.c: Likewise.
52357         * posix/wait4.c: Likewise.
52358         * resolv/README: Likewise.
52359         * resolv/res_debug.h: Likewise.
52360         * resolv/tst-inet_ntop.c: Likewise.
52361         * setjmp/bug269-setjmp.c: Likewise.
52362         * soft-fp/extended.h: Likewise.
52363         * soft-fp/op-1.h: Likewise.
52364         * soft-fp/op-2.h: Likewise.
52365         * soft-fp/op-4.h: Likewise.
52366         * soft-fp/op-8.h: Likewise.
52367         * soft-fp/testit.c: Likewise.
52368         * stdio-common/bug16.c: Likewise.
52369         * stdlib/random.c: Likewise.
52370         * sunrpc/rpcsvc/rquota.x: Likewise.
52371         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
52372         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
52373         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
52374         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
52375         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
52376         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
52377         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
52378         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
52379         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
52380         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
52381         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
52382         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
52383         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
52384         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
52385         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
52386         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
52387         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
52388         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
52389         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
52390         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
52391         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
52392         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
52393         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
52394         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
52395         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
52396         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
52397         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
52398         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
52399         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
52400         * sysdeps/ieee754/s_lib_version.c: Likewise.
52401         * sysdeps/mach/hurd/check_fds.c: Likewise.
52402         * sysdeps/mach/hurd/getsockname.c: Likewise.
52403         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
52404         * sysdeps/mach/hurd/recvfrom.c: Likewise.
52405         * sysdeps/powerpc/bits/link.h: Likewise.
52406         * sysdeps/powerpc/dl-procinfo.c: Likewise.
52407         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
52408         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
52409         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
52410         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52411         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
52412         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
52413         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52414         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
52415         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
52416         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
52417         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
52418         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
52419         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
52420         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
52421         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
52422         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
52423         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
52424         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
52425         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52426         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52427         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
52428         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52429         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
52430         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
52431         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
52432         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
52433         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52434         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52435         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
52436         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
52437         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
52438         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52439         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
52440         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
52441         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52442         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
52443         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
52444         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
52445         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
52446         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
52447         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
52448         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
52449         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
52450         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
52451         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
52452         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
52453         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
52454         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
52455         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
52456         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
52457         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
52458         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52459         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52460         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
52461         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
52462         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
52463         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52464         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
52465         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
52466         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
52467         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
52468         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
52469         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52470         * sysdeps/powerpc/sysdep.h: Likewise.
52471         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
52472         * sysdeps/s390/s390-64/sub_n.S: Likewise.
52473         * sysdeps/sh/dl-trampoline.S: Likewise.
52474         * sysdeps/sh/memset.S: Likewise.
52475         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
52476         * sysdeps/sh/strlen.S: Likewise.
52477         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
52478         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
52479         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
52480         * sysdeps/sparc/sparc32/rem.S: Likewise.
52481         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
52482         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
52483         * sysdeps/sparc/sparc32/strchr.S: Likewise.
52484         * sysdeps/sparc/sparc32/udiv.S: Likewise.
52485         * sysdeps/sparc/sparc32/urem.S: Likewise.
52486         * sysdeps/sparc/sparc64/add_n.S: Likewise.
52487         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
52488         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
52489         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
52490         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
52491         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
52492         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
52493         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
52494         * sysdeps/unix/bsd/times.c: Likewise.
52495         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
52496         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
52497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
52498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
52499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
52500         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
52501         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
52502         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
52503         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
52504         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
52505         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
52506         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
52507         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
52508         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
52509         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
52510         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
52511         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
52512         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
52513         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
52514         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
52515         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
52516         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
52517         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
52518         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
52519         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
52520         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
52521         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
52522         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
52523         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
52524         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
52525         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
52526         * sysdeps/x86_64/strcspn.S: Likewise.
52527
52528 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52529
52530         * locale/C-translit.h: Revert #include <stdint.h> because this is a
52531         generated file.  Regenerate properly from gen-translit.pl.
52532         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
52533         locale/C-translit.h.
52534
52535 2013-06-05  Andreas Schwab  <schwab@suse.de>
52536
52537         [BZ #15100]
52538         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
52539         week as 6 instead of -1.
52540         * time/tst-strptime.c (day_tests): Add test case.
52541
52542 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52543
52544         * sysdeps/generic/math_private.h
52545         (libc_feholdexcept_setround_53bit): Replace with
52546         libc_feholdsetround_53bit.
52547         (libc_feupdateenv_53bit): Replace with
52548         libc_feresetround_53bit.
52549         (SET_RESTORE_ROUND_53BIT): Adjust.
52550
52551 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
52552
52553         * string/test-strchrnul.c: Add copyright header.
52554
52555         * posix/tst-getaddrinfo4.c: Increase test timeout.
52556
52557 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
52558
52559         [BZ #15536]
52560         * math/libm-test.inc (MAX_EXP): Remove
52561         (MIN_EXP): Define.
52562         (ulp): Use MIN_EXP - MANT_DIG.
52563         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
52564
52565 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
52566
52567         * po/be.po: Revert last change.
52568         * po/zh_CN.po: Likewise.
52569         * po/header.pot: Likewise.
52570
52571 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
52572
52573         * Makefile ($(common-objpfx)linkobj/libc.so): Define
52574         link-libc-deps to empty as target-specific variable.
52575         * Makerules (link-libc-args): New variable.
52576         (libc-for-link): Likewise.
52577         (link-libc-deps): Likewise.
52578         (lib%.so): Depend on $(link-libc-deps).  Link with
52579         $(link-libc-args).
52580         (build-module): Link with $(link-libc-args).
52581         (build-module-asneeded): Likewise.
52582         (build-module-helper-objlist): Filter out $(link-libc-deps) from
52583         list of objects.
52584         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
52585         target-specific variable.
52586         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
52587         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
52588         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
52589         libc.
52590         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
52591         libc and ld.so.
52592         ($(objpfx)libpcprofile.so): Likewise.
52593         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
52594         libc_nonshared.a.
52595         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
52596         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
52597         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
52598         $(link-libc-deps).
52599         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
52600         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
52601         * login/Makefile ($(objpfx)libutil.so): Likewise.
52602         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
52603         * math/Makefile ($(objpfx)libm.so): Likewise.
52604         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
52605         $(objpfx)libnsl.so): Define libc-for-link as target-specific
52606         variable instead of depending directly on libc.
52607         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
52608         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
52609         $(link-libc-deps).
52610         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
52611         libc.
52612         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
52613         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
52614         ($(objpfx)libanl.so): Likewise.
52615         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
52616         ld.so.
52617         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
52618         $(link-libc-deps).
52619         * sysdeps/i386/fpu/Makefile: Remove file.
52620         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
52621         ($(objpfx)libm.so): Remove dependency on ld.so.
52622
52623 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
52624
52625         [BZ # 15553]
52626         * nis/yp_xdr.c (XDRMAXNAME): Define.
52627         (XDRMAXRECORD): Define.
52628         (xdr_domainname): Use XDRMAXNAME.
52629         (xdr_mapname): Likewise.
52630         (xdr_peername): Likewise.
52631         (xdr_keydat): Use XDRMAXRECORD.
52632         (xdr_valdat): Likewise.
52633
52634 2013-05-30  Jeff Law  <law@redhat.com>
52635
52636         [BZ #14256]
52637         * manual/errno.texi (ESTALE): Update to account for more than
52638         just NFS file systems.
52639         * sysdeps/gnu/errlist.c: Regenerated.
52640
52641 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
52642
52643         [BZ #15465]
52644         * elf/Makefile (tests): Add tst-null-argv.
52645         (modules-names):  Add tst-null-argv-lib.
52646         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
52647         (tst-null-argv-ENV): Set environment for tst-null-argv.
52648         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
52649         (RTLD_PROGNAME): New macro.
52650         * elf/tst-null-argv.c: New test case.
52651         * elf/tst-null-argv-lib.c: Library for test case.
52652         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
52653         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
52654         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
52655         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
52656         * elf/dl-init.c (call_init): Likewise.
52657         (_dl_init): Likewise.
52658         * elf/dl-load.c (print_search_path): Likewise.
52659         (_dl_map_object): Likewise.
52660         * elf/dl-lookup.c (do_lookup_x): Likewise.
52661         (add_dependency): Likewise.
52662         (_dl_lookup_symbol_x): Likewise.
52663         (_dl_debug_bindings): Likewise.
52664         * elf/dl-open.c (_dl_show_scope): Likewise.
52665         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
52666         * elf/dl-version.c (match_symbol): Likewise.
52667         (_dl_check_map_versions): Likewise.
52668         * elf/rtld.c (dl_main): Likewise.
52669         (print_unresolved): Use RTLD_PROGNAME.
52670         (print_missing_version): Likewise.
52671         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
52672         (elf_machine_rela): Likewise.
52673         * sysdeps/powerpc/powerpc32/dl-machine.c
52674         (__process_machine_rela): Likewise.
52675         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
52676         Likewise.
52677         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
52678         Likewise.
52679         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
52680         Likewise.
52681         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52682         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
52683         Likewise.
52684         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
52685         Likewise.
52686         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
52687
52688 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
52689
52690         * po/be.po: Add descriptive title.
52691         * po/zh_CN.po: Likewise.
52692         * po/header.pot: Likewise.
52693
52694 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
52695
52696         * locale/programs/locarchive.c (create_archive): Inlucde fname in
52697         error message.
52698         (enlarge_archive): Likewise.
52699
52700 2013-05-28  Ben North  <ben@redfrontdoor.org>
52701
52702         * manual/arith.texi (frexp): It is the magnitude of the return
52703         value which lies in [0.5, 1), not the return value itself.
52704
52705 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52706
52707         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52708
52709 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
52710
52711         * stdio-common/bug26.c (main): Correct fscanf template.
52712
52713         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
52714         declare _dl_skip_args.
52715
52716         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
52717         Don't declare.
52718
52719         * manual/platform.texi: Add missing @end deftypefun.
52720
52721 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52722
52723         [BZ #15529]
52724         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
52725         bit of mantissa of 2^16382.
52726         * math/libm-test.inc (hypot_test_data): Add more tests.
52727
52728         * math/libm-test.inc: Add drem and pow10 to list of tested
52729         functions.
52730         (pow10_test): New function.
52731         (drem_test): Likewise.
52732         (drem_test_tonearest): Likewise.
52733         (drem_test_towardzero): Likewise.
52734         (drem_test_downward): Likewise.
52735         (drem_test_upward): Likewise.
52736         (main): Call the new functions.
52737
52738         * math/libm-test.inc (finite_test_data): Remove.
52739         (finite_test): Run tests from isfinite_test_data.
52740         (gamma_test_data): Remove.
52741         (gamma_test): Run tests from lgamma_test_data.
52742         * sysdeps/i386/fpu/libm-test-ulps: Update.
52743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52744
52745 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52746
52747         * manual/platform.texi: Add PowerPC PPR function set documentation.
52748         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
52749         implementation.
52750
52751 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
52752
52753         * math/libm-test.inc (MAX_EXP): Define.
52754         (ULPDIFF): Define.
52755         (ulp): New function.
52756         (check_float_internal): Use ULPDIFF.
52757         (cpow_test): Disable failing test.
52758         (check_ulp): Test ulp() implemetnation.
52759         (main): Call check_ulp before starting tests.
52760
52761 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
52762
52763         * math/gen-libm-test.pl (generate_testfile): Do not handle
52764         START_DATA and END_DATA.
52765         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
52766         END_DATA.
52767         (acos_tonearest_test_data): Likewise.
52768         (acos_towardzero_test_data): Likewise.
52769         (acos_downward_test_data): Likewise.
52770         (acos_upward_test_data): Likewise.
52771         (acosh_test_data): Likewise.
52772         (asin_test_data): Likewise.
52773         (asin_tonearest_test_data): Likewise.
52774         (asin_towardzero_test_data): Likewise.
52775         (asin_downward_test_data): Likewise.
52776         (asin_upward_test_data): Likewise.
52777         (asinh_test_data): Likewise.
52778         (atan_test_data): Likewise.
52779         (atanh_test_data): Likewise.
52780         (atan2_test_data): Likewise.
52781         (cabs_test_data): Likewise.
52782         (cacos_test_data): Likewise.
52783         (cacosh_test_data): Likewise.
52784         (carg_test_data): Likewise.
52785         (casin_test_data): Likewise.
52786         (casinh_test_data): Likewise.
52787         (catan_test_data): Likewise.
52788         (catanh_test_data): Likewise.
52789         (cbrt_test_data): Likewise.
52790         (ccos_test_data): Likewise.
52791         (ccosh_test_data): Likewise.
52792         (ceil_test_data): Likewise.
52793         (cexp_test_data): Likewise.
52794         (cimag_test_data): Likewise.
52795         (clog_test_data): Likewise.
52796         (clog10_test_data): Likewise.
52797         (conj_test_data): Likewise.
52798         (copysign_test_data): Likewise.
52799         (cos_test_data): Likewise.
52800         (cos_tonearest_test_data): Likewise.
52801         (cos_towardzero_test_data): Likewise.
52802         (cos_downward_test_data): Likewise.
52803         (cos_upward_test_data): Likewise.
52804         (cosh_test_data): Likewise.
52805         (cosh_tonearest_test_data): Likewise.
52806         (cosh_towardzero_test_data): Likewise.
52807         (cosh_downward_test_data): Likewise.
52808         (cosh_upward_test_data): Likewise.
52809         (cpow_test_data): Likewise.
52810         (cproj_test_data): Likewise.
52811         (creal_test_data): Likewise.
52812         (csin_test_data): Likewise.
52813         (csinh_test_data): Likewise.
52814         (csqrt_test_data): Likewise.
52815         (ctan_test_data): Likewise.
52816         (ctan_tonearest_test_data): Likewise.
52817         (ctan_towardzero_test_data): Likewise.
52818         (ctan_downward_test_data): Likewise.
52819         (ctan_upward_test_data): Likewise.
52820         (ctanh_test_data): Likewise.
52821         (ctanh_tonearest_test_data): Likewise.
52822         (ctanh_towardzero_test_data): Likewise.
52823         (ctanh_downward_test_data): Likewise.
52824         (ctanh_upward_test_data): Likewise.
52825         (erf_test_data): Likewise.
52826         (erfc_test_data): Likewise.
52827         (exp_test_data): Likewise.
52828         (exp_tonearest_test_data): Likewise.
52829         (exp_towardzero_test_data): Likewise.
52830         (exp_downward_test_data): Likewise.
52831         (exp_upward_test_data): Likewise.
52832         (exp10_test_data): Likewise.
52833         (exp2_test_data): Likewise.
52834         (expm1_test_data): Likewise.
52835         (fabs_test_data): Likewise.
52836         (fdim_test_data): Likewise.
52837         (finite_test_data): Likewise.
52838         (floor_test_data): Likewise.
52839         (fma_test_data): Likewise.
52840         (fma_towardzero_test_data): Likewise.
52841         (fma_downward_test_data): Likewise.
52842         (fma_upward_test_data): Likewise.
52843         (fmax_test_data): Likewise.
52844         (fmin_test_data): Likewise.
52845         (fmod_test_data): Likewise.
52846         (fpclassify_test_data): Likewise.
52847         (frexp_test_data): Likewise.
52848         (gamma_test_data): Likewise.
52849         (hypot_test_data): Likewise.
52850         (ilogb_test_data): Likewise.
52851         (isfinite_test_data): Likewise.
52852         (isgreater_test_data): Likewise.
52853         (isgreaterequal_test_data): Likewise.
52854         (isinf_test_data): Likewise.
52855         (isless_test_data): Likewise.
52856         (islessequal_test_data): Likewise.
52857         (islessgreater_test_data): Likewise.
52858         (isnan_test_data): Likewise.
52859         (isnormal_test_data): Likewise.
52860         (issignaling_test_data): Likewise.
52861         (isunordered_test_data): Likewise.
52862         (j0_test_data): Likewise.
52863         (j1_test_data): Likewise.
52864         (jn_test_data): Likewise.
52865         (ldexp_test_data): Likewise.
52866         (lgamma_test_data): Likewise.
52867         (lrint_test_data): Likewise.
52868         (lrint_tonearest_test_data): Likewise.
52869         (lrint_towardzero_test_data): Likewise.
52870         (lrint_downward_test_data): Likewise.
52871         (lrint_upward_test_data): Likewise.
52872         (llrint_test_data): Likewise.
52873         (llrint_tonearest_test_data): Likewise.
52874         (llrint_towardzero_test_data): Likewise.
52875         (llrint_downward_test_data): Likewise.
52876         (llrint_upward_test_data): Likewise.
52877         (log_test_data): Likewise.
52878         (log10_test_data): Likewise.
52879         (log1p_test_data): Likewise.
52880         (log2_test_data): Likewise.
52881         (logb_test_data): Likewise.
52882         (logb_downward_test_data): Likewise.
52883         (lround_test_data): Likewise.
52884         (llround_test_data): Likewise.
52885         (modf_test_data): Likewise.
52886         (nearbyint_test_data): Likewise.
52887         (nextafter_test_data): Likewise.
52888         (nexttoward_test_data): Likewise.
52889         (pow_test_data): Likewise.
52890         (pow_tonearest_test_data): Likewise.
52891         (pow_towardzero_test_data): Likewise.
52892         (pow_downward_test_data): Likewise.
52893         (pow_upward_test_data): Likewise.
52894         (remainder_test_data): Likewise.
52895         (remainder_tonearest_test_data): Likewise.
52896         (remainder_towardzero_test_data): Likewise.
52897         (remainder_downward_test_data): Likewise.
52898         (remainder_upward_test_data): Likewise.
52899         (remquo_test_data): Likewise.
52900         (rint_test_data): Likewise.
52901         (rint_tonearest_test_data): Likewise.
52902         (rint_towardzero_test_data): Likewise.
52903         (rint_downward_test_data): Likewise.
52904         (rint_upward_test_data): Likewise.
52905         (round_test_data): Likewise.
52906         (scalb_test_data): Likewise.
52907         (scalbn_test_data): Likewise.
52908         (scalbln_test_data): Likewise.
52909         (signbit_test_data): Likewise.
52910         (sin_test_data): Likewise.
52911         (sin_tonearest_test_data): Likewise.
52912         (sin_towardzero_test_data): Likewise.
52913         (sin_downward_test_data): Likewise.
52914         (sin_upward_test_data): Likewise.
52915         (sincos_test_data): Likewise.
52916         (sinh_test_data): Likewise.
52917         (sinh_tonearest_test_data): Likewise.
52918         (sinh_towardzero_test_data): Likewise.
52919         (sinh_downward_test_data): Likewise.
52920         (sinh_upward_test_data): Likewise.
52921         (sqrt_test_data): Likewise.
52922         (tan_test_data): Likewise.
52923         (tan_tonearest_test_data): Likewise.
52924         (tan_towardzero_test_data): Likewise.
52925         (tan_downward_test_data): Likewise.
52926         (tan_upward_test_data): Likewise.
52927         (tanh_test_data): Likewise.
52928         (tgamma_test_data): Likewise.
52929         (trunc_test_data): Likewise.
52930         (y0_test_data): Likewise.
52931         (y1_test_data): Likewise.
52932         (yn_test_data): Likewise.
52933         (significand_test_data): Likewise.
52934
52935         * math/gen-libm-test.pl (@functions): Remove variable.
52936         (generate_testfile): Don't handle START and END lines.
52937         * math/libm-test.inc (START): New macro.
52938         (END): Likewise.
52939         (END_COMPLEX): Likewise.
52940         (acos_test): Use END macro without arguments.
52941         (acos_test_tonearest): Likewise.
52942         (acos_test_towardzero): Likewise.
52943         (acos_test_downward): Likewise.
52944         (acos_test_upward): Likewise.
52945         (acosh_test): Likewise.
52946         (asin_test): Likewise.
52947         (asin_test_tonearest): Likewise.
52948         (asin_test_towardzero): Likewise.
52949         (asin_test_downward): Likewise.
52950         (asin_test_upward): Likewise.
52951         (asinh_test): Likewise.
52952         (atan_test): Likewise.
52953         (atanh_test): Likewise.
52954         (atan2_test): Likewise.
52955         (cabs_test): Likewise.
52956         (cacos_test): Use END_COMPLEX macro without arguments.
52957         (cacosh_test): Likewise.
52958         (carg_test): Use END macro without arguments.
52959         (casin_test): Use END_COMPLEX macro without arguments.
52960         (casinh_test): Likewise.
52961         (catan_test): Likewise.
52962         (catanh_test): Likewise.
52963         (cbrt_test): Use END macro without arguments.
52964         (ccos_test): Use END_COMPLEX macro without arguments.
52965         (ccosh_test): Likewise.
52966         (ceil_test): Use END macro without arguments.
52967         (cexp_test): Use END_COMPLEX macro without arguments.
52968         (cimag_test): Use END macro without arguments.
52969         (clog_test): Use END_COMPLEX macro without arguments.
52970         (clog10_test): Likewise.
52971         (conj_test): Likewise.
52972         (copysign_test): Use END macro without arguments.
52973         (cos_test): Likewise.
52974         (cos_test_tonearest): Likewise.
52975         (cos_test_towardzero): Likewise.
52976         (cos_test_downward): Likewise.
52977         (cos_test_upward): Likewise.
52978         (cosh_test): Likewise.
52979         (cosh_test_tonearest): Likewise.
52980         (cosh_test_towardzero): Likewise.
52981         (cosh_test_downward): Likewise.
52982         (cosh_test_upward): Likewise.
52983         (cpow_test): Use END_COMPLEX macro without arguments.
52984         (cproj_test): Likewise.
52985         (creal_test): Use END macro without arguments.
52986         (csin_test): Use END_COMPLEX macro without arguments.
52987         (csinh_test): Likewise.
52988         (csqrt_test): Likewise.
52989         (ctan_test): Likewise.
52990         (ctan_test_tonearest): Likewise.
52991         (ctan_test_towardzero): Likewise.
52992         (ctan_test_downward): Likewise.
52993         (ctan_test_upward): Likewise.
52994         (ctanh_test): Likewise.
52995         (ctanh_test_tonearest): Likewise.
52996         (ctanh_test_towardzero): Likewise.
52997         (ctanh_test_downward): Likewise.
52998         (ctanh_test_upward): Likewise.
52999         (erf_test): Use END macro without arguments.
53000         (erfc_test): Likewise.
53001         (exp_test): Likewise.
53002         (exp_test_tonearest): Likewise.
53003         (exp_test_towardzero): Likewise.
53004         (exp_test_downward): Likewise.
53005         (exp_test_upward): Likewise.
53006         (exp10_test): Likewise.
53007         (exp2_test): Likewise.
53008         (expm1_test): Likewise.
53009         (fabs_test): Likewise.
53010         (fdim_test): Likewise.
53011         (finite_test): Likewise.
53012         (floor_test): Likewise.
53013         (fma_test): Likewise.
53014         (fma_test_towardzero): Likewise.
53015         (fma_test_downward): Likewise.
53016         (fma_test_upward): Likewise.
53017         (fmax_test): Likewise.
53018         (fmin_test): Likewise.
53019         (fmod_test): Likewise.
53020         (fpclassify_test): Likewise.
53021         (frexp_test): Likewise.
53022         (gamma_test): Likewise.
53023         (hypot_test): Likewise.
53024         (ilogb_test): Likewise.
53025         (isfinite_test): Likewise.
53026         (isgreater_test): Likewise.
53027         (isgreaterequal_test): Likewise.
53028         (isinf_test): Likewise.
53029         (isless_test): Likewise.
53030         (islessequal_test): Likewise.
53031         (islessgreater_test): Likewise.
53032         (isnan_test): Likewise.
53033         (isnormal_test): Likewise.
53034         (issignaling_test): Likewise.
53035         (isunordered_test): Likewise.
53036         (j0_test): Likewise.
53037         (j1_test): Likewise.
53038         (jn_test): Likewise.
53039         (ldexp_test): Likewise.
53040         (lgamma_test): Likewise.
53041         (lrint_test): Likewise.
53042         (lrint_test_tonearest): Likewise.
53043         (lrint_test_towardzero): Likewise.
53044         (lrint_test_downward): Likewise.
53045         (lrint_test_upward): Likewise.
53046         (llrint_test): Likewise.
53047         (llrint_test_tonearest): Likewise.
53048         (llrint_test_towardzero): Likewise.
53049         (llrint_test_downward): Likewise.
53050         (llrint_test_upward): Likewise.
53051         (log_test): Likewise.
53052         (log10_test): Likewise.
53053         (log1p_test): Likewise.
53054         (log2_test): Likewise.
53055         (logb_test): Likewise.
53056         (logb_test_downward): Likewise.
53057         (lround_test): Likewise.
53058         (llround_test): Likewise.
53059         (modf_test): Likewise.
53060         (nearbyint_test): Likewise.
53061         (nextafter_test): Likewise.
53062         (nexttoward_test): Likewise.
53063         (pow_test): Likewise.
53064         (pow_test_tonearest): Likewise.
53065         (pow_test_towardzero): Likewise.
53066         (pow_test_downward): Likewise.
53067         (pow_test_upward): Likewise.
53068         (remainder_test): Likewise.
53069         (remainder_test_tonearest): Likewise.
53070         (remainder_test_towardzero): Likewise.
53071         (remainder_test_downward): Likewise.
53072         (remainder_test_upward): Likewise.
53073         (remquo_test): Likewise.
53074         (rint_test): Likewise.
53075         (rint_test_tonearest): Likewise.
53076         (rint_test_towardzero): Likewise.
53077         (rint_test_downward): Likewise.
53078         (rint_test_upward): Likewise.
53079         (round_test): Likewise.
53080         (scalb_test): Likewise.
53081         (scalbn_test): Likewise.
53082         (scalbln_test): Likewise.
53083         (signbit_test): Likewise.
53084         (sin_test): Likewise.
53085         (sin_test_tonearest): Likewise.
53086         (sin_test_towardzero): Likewise.
53087         (sin_test_downward): Likewise.
53088         (sin_test_upward): Likewise.
53089         (sincos_test): Likewise.
53090         (sinh_test): Likewise.
53091         (sinh_test_tonearest): Likewise.
53092         (sinh_test_towardzero): Likewise.
53093         (sinh_test_downward): Likewise.
53094         (sinh_test_upward): Likewise.
53095         (sqrt_test): Likewise.
53096         (tan_test): Likewise.
53097         (tan_test_tonearest): Likewise.
53098         (tan_test_towardzero): Likewise.
53099         (tan_test_downward): Likewise.
53100         (tan_test_upward): Likewise.
53101         (tanh_test): Likewise.
53102         (tgamma_test): Likewise.
53103         (trunc_test): Likewise.
53104         (y0_test): Likewise.
53105         (y1_test): Likewise.
53106         (yn_test): Likewise.
53107         (significand_test): Likewise.
53108
53109 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
53110
53111         [BZ #15381]
53112         * libio/genops.c (_IO_no_init): Initialize wide struct info.
53113
53114 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
53115
53116         [BZ #14894]
53117         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
53118         __ppc_mdoio and __ppc_mdoom.
53119         * manual/platform.texi: Document new functions __ppc_yield,
53120         __ppc_mdoio and __ppc_mdoom.
53121
53122 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
53123
53124         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
53125         (main): Mention "tls" pseudo-hwcap is legacy.
53126         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
53127
53128 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53129
53130         * math/gen-libm-test.pl (parse_args): Output only string of
53131         arguments as text for test name, not full call or descriptions of
53132         tests for extra outputs.
53133         (generate_testfile): Do not pass function name to parse_args.
53134         Generate this_func variable from START.
53135         * math/libm-test.inc (struct test_f_f_data): Rename test_name
53136         field to arg_str.
53137         (struct test_ff_f_data): Likewise.
53138         (test_ff_f_data_nexttoward): Likewise.
53139         (struct test_fi_f_data): Likewise.
53140         (struct test_fl_f_data): Likewise.
53141         (struct test_if_f_data): Likewise.
53142         (struct test_fff_f_data): Likewise.
53143         (struct test_c_f_data): Likewise.
53144         (struct test_f_f1_data): Likewise.  Remove field extra_name.
53145         (struct test_fF_f1_data): Likewise.
53146         (struct test_ffI_f1_data): Likewise.
53147         (struct test_c_c_data): Rename test_name field to arg_str.
53148         (struct test_cc_c_data): Likewise.
53149         (struct test_f_i_data): Likewise.
53150         (struct test_ff_i_data): Likewise.
53151         (struct test_f_l_data): Likewise.
53152         (struct test_f_L_data): Likewise.
53153         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
53154         and extra2_name.
53155         (COMMON_TEST_SETUP): New macro.
53156         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
53157         (COMMON_TEST_CLEANUP): Likewise.
53158         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
53159         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
53160         macros.
53161         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
53162         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
53163         macros.
53164         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
53165         (RUN_TEST_fff_f): Take argument string.  Call new setup and
53166         cleanup macros.
53167         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
53168         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
53169         macros.
53170         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
53171         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
53172         macros.
53173         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53174         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
53175         cleanup macros.
53176         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53177         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
53178         cleanup macros.
53179         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53180         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
53181         cleanup macros.
53182         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53183         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
53184         macros.
53185         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
53186         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
53187         macros.
53188         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
53189         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
53190         macros.
53191         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
53192         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
53193         cleanup macros.
53194         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
53195         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
53196         cleanup macros.
53197         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
53198         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
53199         macros.
53200         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
53201         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
53202         cleanup macros.
53203         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
53204         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
53205         macros.
53206         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
53207         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
53208         macros.
53209         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
53210         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
53211         cleanup macros.
53212         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
53213
53214 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
53215
53216         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
53217         to _sifields.sigfault.
53218         (si_addr_lsb): Define new macro.
53219         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
53220         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
53221         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
53222
53223 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
53224
53225         [BZ #15441]
53226         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
53227         returns -1.
53228         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
53229         null return -1.
53230         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
53231         loading the domain.
53232
53233 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
53234
53235         * math/gen-libm-test.pl (parse_args): Do not include expected
53236         result in test name.
53237         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
53238         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53239         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53240         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53241         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53243
53244 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
53245
53246         * benchtests/Makefile: Sort function entries.
53247
53248         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
53249         tanh, asinh, acosh, atanh.
53250         * benchtests/acos-inputs: New file.
53251         * benchtests/acosh-inputs: New file.
53252         * benchtests/asin-inputs: New file.
53253         * benchtests/asinh-inputs: New file.
53254         * benchtests/atanh-inputs: New file.
53255         * benchtests/cosh-inputs: New file.
53256         * benchtests/log-inputs: New file.
53257         * benchtests/sinh-inputs: New file.
53258         * benchtests/tanh-inputs: New file.
53259
53260 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
53261
53262         [BZ #15339]
53263         * posix/tst-getaddrinfo4.c: New test.
53264         * posix/Makefile (tests): Add it.
53265
53266 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53267
53268         [BZ #15339]
53269         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
53270         when no services were used.
53271         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
53272         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
53273
53274 2013-05-21  Andreas Schwab  <schwab@suse.de>
53275
53276         [BZ #15014]
53277         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
53278         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
53279         successful.
53280         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
53281         redundant variable declarations and reallocation of buffer when
53282         parsing as IPv6 address.  Always set NSS status when called from
53283         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
53284         buffer too small.  Correct computation of needed size.
53285         * nss/Makefile (tests): Add test-digits-dots.
53286         * nss/test-digits-dots.c: New test.
53287
53288 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
53289
53290         * benchtests/Makefile: Remove instructions for adding
53291         benchmark tests.
53292         * benchtests/README: New file to explain how to execute and
53293         enhance the benchmark tests.
53294
53295 2013-05-21  Andreas Schwab  <schwab@suse.de>
53296
53297         [BZ #15493]
53298         * setjmp/Makefile (tests): Add tst-sigsetjmp.
53299         * setjmp/tst-sigsetjmp.c: New test.
53300
53301 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53302
53303         * sysdeps/x86_64/memset.S (memset): New implementation.
53304         (__bzero): Likewise.
53305         (__memset_tail): New function.
53306
53307 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
53308
53309         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
53310         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
53311         __memcpy_sse2_unaligned ifunc selection.
53312         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
53313         Add memcpy-sse2-unaligned.S.
53314         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
53315         Add: __memcpy_sse2_unaligned.
53316
53317 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
53318
53319         [BZ #15490]
53320         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
53321         math_force_eval before restoring floating-point envrionment.
53322         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
53323         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
53324         Likewise.
53325         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
53326         <math_private.h>.
53327         (__nearbyintl): Use math_force_eval before restoring
53328         floating-point environment.
53329         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
53330
53331         * math/gen-libm-test.pl (special_functions): Remove.
53332         (parse_args): Don't handle TEST_extra.  Handle functions with no
53333         return value.
53334         * math/libm-test.inc (struct test_sincos_data): Replace with
53335         struct test_fFF_11_data.
53336         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
53337         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
53338         (sincos_test_data): Change element type to struct
53339         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
53340         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
53341         RUN_TEST_LOOP_sincos.
53342         * math/README.libm-test: Don't mention special handling of
53343         individual functions.
53344         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
53345         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
53346         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
53347         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
53348         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
53349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53350
53351         * math/gen-libm-test.pl (get_variable): Remove function.
53352         (parse_args): Don't show pointer parameters to call in test
53353         names.  Use "extra output N" in test names for extra outputs
53354         rather than naming variables.
53355
53356 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
53357
53358         [BZ #15488]
53359         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
53360         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
53361         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
53362         double tests.
53363         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
53364         disable.
53365         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
53366         check_long_double.
53367
53368         * math/gen-libm-test.pl (@tests): Remove variable.
53369         ($count): Likewise.
53370         (new_test): Remove function.
53371         (show_exceptions): New function.
53372         (special_functions): Use show_exceptions instead of new_test.
53373         (parse_args): Likewise.
53374         (generate_testfile): Pass only function name in generated call to
53375         print_max_error or print_complex_max_error.
53376         (get_ulps): Do not handle complex tests specially.
53377         (output_test): Rename to ...
53378         (get_all_ulps_for_test): ... this.  Return a string rather than
53379         printing to a file.  Require ulps to be present.
53380         (output_ulps): Generate arrays rather than #defines.
53381         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
53382         (struct ulp_data): New type.
53383         (BUILD_COMPLEX_ULP): Remove macro.
53384         (compare_ulp_data): New function.
53385         (find_ulps): Likewise.
53386         (find_test_ulps): Likewise.
53387         (find_function_ulps): Likewise.
53388         (find_complex_function_ulps): Likewise.
53389         (print_max_error): Determine allowed ulps using
53390         find_function_ulps.
53391         (print_complex_max_error): Determine allowed ulps using
53392         find_complex_function_ulps.
53393         (check_float_internal): Determine max ulps using find_test_ulps.
53394         (check_float): Do not take max_ulp parameter.  Update call to
53395         check_float_internal.
53396         (check_complex): Likewise.
53397         (check_int): Do not take max_ulp parameter.
53398         (check_long): Likewise.
53399         (check_bool): Likewise.
53400         (check_longlong): Likewise.
53401         (struct test_f_f_data): Remove max_ulp field.
53402         (struct test_ff_f_data): Likewise.
53403         (struct test_ff_f_data_nexttoward): Likewise.
53404         (struct test_fi_f_data): Likewise.
53405         (struct test_fl_f_data): Likewise.
53406         (struct test_if_f_data): Likewise.
53407         (struct test_fff_f_data): Likewise.
53408         (struct test_c_f_data): Likewise.
53409         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
53410         (struct test_fF_f1_data): Likewise.
53411         (struct test_ffI_f1_data): Likewise.
53412         (struct test_c_c_data): Remove max_ulp field.
53413         (struct test_cc_c_data): Likewise.
53414         (struct test_f_i_data): Likewise.
53415         (struct test_ff_i_data): Likewise.
53416         (struct test_f_l_data): Likewise.
53417         (struct test_f_L_data): Likewise.
53418         (struct test_sincos_data): Likewise.
53419         (RUN_TEST_f_f): Do not handle ulps.
53420         (RUN_TEST_LOOP_f_f): Likewise.
53421         (RUN_TEST_2_f): Likewise.
53422         (RUN_TEST_LOOP_2_f): Likewise.
53423         (RUN_TEST_fff_f): Likewise.
53424         (RUN_TEST_LOOP_fff_f): Likewise.
53425         (RUN_TEST_c_f): Likewise.
53426         (RUN_TEST_LOOP_c_f): Likewise.
53427         (RUN_TEST_f_f1): Likewise.
53428         (RUN_TEST_LOOP_f_f1): Likewise.
53429         (RUN_TEST_fF_f1): Likewise.
53430         (RUN_TEST_LOOP_fF_f1): Likewise.
53431         (RUN_TEST_fI_f1): Likewise.
53432         (RUN_TEST_LOOP_fI_f1): Likewise.
53433         (RUN_TEST_ffI_f1): Likewise.
53434         (RUN_TEST_LOOP_ffI_f1): Likewise.
53435         (RUN_TEST_c_c): Likewise.
53436         (RUN_TEST_LOOP_c_c): Likewise.
53437         (RUN_TEST_cc_c): Likewise.
53438         (RUN_TEST_LOOP_cc_c): Likewise.
53439         (RUN_TEST_f_i): Likewise.
53440         (RUN_TEST_LOOP_f_i): Likewise.
53441         (RUN_TEST_f_i_tg): Likewise.
53442         (RUN_TEST_LOOP_f_i_tg): Likewise.
53443         (RUN_TEST_ff_i_tg): Likewise.
53444         (RUN_TEST_LOOP_ff_i_tg): Likewise.
53445         (RUN_TEST_f_b): Likewise.
53446         (RUN_TEST_LOOP_f_b): Likewise.
53447         (RUN_TEST_f_b_tg): Likewise.
53448         (RUN_TEST_LOOP_f_b_tg): Likewise.
53449         (RUN_TEST_f_l): Likewise.
53450         (RUN_TEST_LOOP_f_l): Likewise.
53451         (RUN_TEST_f_L): Likewise.
53452         (RUN_TEST_LOOP_f_L): Likewise.
53453         (RUN_TEST_sincos): Likewise.
53454         (RUN_TEST_LOOP_sincos): Likewise.
53455
53456 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
53457
53458         [BZ #15480]
53459         [BZ #15485]
53460         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
53461         main case of finite arguments, set rounding mode to FE_TONEAREST
53462         and discard exceptions.
53463         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
53464         exceptions.
53465         (remainder_tonearest_test_data): New variable.
53466         (remainder_test_tonearest): New function.
53467         (remainder_towardzero_test_data): New variable.
53468         (remainder_test_towardzero): New function.
53469         (remainder_downward_test_data): New variable.
53470         (remainder_test_downward): New function.
53471         (remainder_upward_test_data): New variable.
53472         (remainder_test_upward): New function.
53473         (main): Call the new test functions.
53474
53475         * math/libm-test.inc (struct test_f_f1_data): Remove field
53476         extra_init.
53477         (struct test_fF_f1_data): Likewise.
53478         (struct test_ffI_f1_data): Likewise.
53479         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
53480         based on value of EXTRA_EXPECTED.
53481         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
53482         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
53483         EXTRA_VAR based on value of EXTRA_EXPECTED.
53484         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
53485         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
53486         EXTRA_VAR based on value of EXTRA_EXPECTED.
53487         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
53488         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
53489         EXTRA_VAR based on value of EXTRA_EXPECTED.
53490         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
53491         * math/gen-libm-test.pl (parse_args): Don't output initializers
53492         for extra output values.
53493
53494         * math/libm-test.inc (check_int): Expect result to be exactly
53495         equal to expected value and do not handle ulps.
53496         (check_long): Likewise.
53497         (check_longlong): Likewise.
53498
53499         * math/libm-test.inc (ceil_test_data): Test for "inexact"
53500         exceptions.
53501         (cimag_test_data): Likewise.
53502         (conj_test_data): Likewise.
53503         (copysign_test_data): Likewise.
53504         (cproj_test_data): Likewise.
53505         (creal_test_data): Likewise.
53506         (fabs_test_data): Likewise.
53507         (fdim_test_data): Likewise.
53508         (finite_test_data): Likewise.
53509         (floor_test_data): Likewise.
53510         (fmax_test_data): Likewise.
53511         (fmin_test_data): Likewise.
53512         (fmod_test_data): Likewise.
53513         (fpclassify_test_data): Likewise.
53514         (frexp_test_data): Likewise.
53515         (ilogb_test_data): Likewise.
53516         (isfinite_test_data): Likewise.
53517         (isgreater_test_data): Likewise.
53518         (isgreaterequal_test_data): Likewise.
53519         (isinf_test_data): Likewise.
53520         (isless_test_data): Likewise.
53521         (islessequal_test_data): Likewise.
53522         (islessgreater_test_data): Likewise.
53523         (isnan_test_data): Likewise.
53524         (isnormal_test_data): Likewise.
53525         (issignaling_test_data): Likewise.
53526         (isunordered_test_data): Likewise.
53527         (ldexp_test_data): Likewise.
53528         (lrint_test_data): Likewise.
53529         (lrint_test_data) [TEST_FLOAT]: Disable one test.
53530         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
53531         (lrint_tonearest_test_data): Test for "inexact" exceptions.
53532         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53533         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
53534         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53535         test input.
53536         (lrint_towardzero_test_data): Test for "inexact" exceptions.
53537         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53538         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
53539         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
53540         that test input.
53541         (lrint_downward_test_data): Test for "inexact" exceptions.
53542         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53543         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
53544         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
53545         test input.
53546         (lrint_upward_test_data): Test for "inexact" exceptions.
53547         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
53548         test input.
53549         (llrint_test_data): Test for "inexact" exceptions.
53550         (llrint_test_data) [TEST_FLOAT]: Disable one test.
53551         (llrint_tonearest_test_data): Test for "inexact" exceptions.
53552         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
53553         (llrint_towardzero_test_data): Test for "inexact" exceptions.
53554         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
53555         (llrint_downward_test_data): Test for "inexact" exceptions.
53556         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
53557         (llrint_upward_test_data): Test for "inexact" exceptions.
53558         (logb_test_data): Likewise.
53559         (logb_downward_test_data): Likewise.
53560         (nextafter_test_data): Likewise.
53561         (nexttoward_test_data): Likewise.
53562         (remainder_test_data): Likewise.
53563         (remquo_test_data): Likewise.
53564         (scalbn_test_data): Likewise.
53565         (scalbln_test_data): Likewise.
53566         (signbit_test_data): Likewise.
53567         (sqrt_test_data): Likewise.
53568         (significand_test_data): Likewise.
53569
53570 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
53571
53572         [BZ #15424]
53573         * benchtests/bench-modf.c (struct args): Mark arg0 as
53574         volatile.
53575         * scripts/bench.pl: Mark members of struct args as volatile.
53576
53577 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53578
53579         [BZ # 15497]
53580         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
53581         negative infinity on POWER6 or lower.
53582         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
53583
53584 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
53585
53586         [BZ #15442]
53587         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
53588         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
53589         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
53590         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
53591         (_FP_SETQNAN): New macro.
53592         (_FP_SETQNAN_SEMIRAW): Likewise.
53593         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
53594         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
53595         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
53596         (FP_EXTEND): Use _FP_FRAC_SNANP.
53597         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
53598         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
53599         into account.
53600         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53601         New macro.
53602         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
53603         Likewise.
53604
53605 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53606
53607         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
53608         with DIVIDE_BY_ZERO_EXCEPTION.
53609         (gamma_test_data): Likewise.
53610         (lgamma_test_data): Likewise.
53611         (log_test_data): Likewise.
53612         (log10_test_data): Likewise.
53613         (log2_test_data): Likewise.
53614         (tgamma_test_data): Likewise.
53615
53616         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
53617         (acos_test_tonearest): Likewise.
53618         (acos_test_towardzero): Likewise.
53619         (acos_test_downward): Likewise.
53620         (acos_test_upward): Likewise.
53621         (acosh_test): Likewise.
53622         (asin_test): Likewise.
53623         (asin_test_tonearest): Likewise.
53624         (asin_test_towardzero): Likewise.
53625         (asin_test_downward): Likewise.
53626         (asin_test_upward): Likewise.
53627         (asinh_test): Likewise.
53628         (atan_test): Likewise.
53629         (atanh_test): Likewise.
53630         (atan2_test): Likewise.
53631         (cabs_test): Likewise.
53632         (cacos_test): Likewise.
53633         (cacosh_test): Likewise.
53634         (casin_test): Likewise.
53635         (casinh_test): Likewise.
53636         (catan_test): Likewise.
53637         (catanh_test): Likewise.
53638         (cbrt_test): Likewise.
53639         (ccos_test): Likewise.
53640         (ccosh_test): Likewise.
53641         (cexp_test): Likewise.
53642         (clog_test): Likewise.
53643         (clog10_test): Likewise.
53644         (cos_test): Likewise.
53645         (cos_test_tonearest): Likewise.
53646         (cos_test_towardzero): Likewise.
53647         (cos_test_downward): Likewise.
53648         (cos_test_upward): Likewise.
53649         (cosh_test): Likewise.
53650         (cosh_test_tonearest): Likewise.
53651         (cosh_test_towardzero): Likewise.
53652         (cosh_test_downward): Likewise.
53653         (cosh_test_upward): Likewise.
53654         (cpow_test): Likewise.
53655         (csin_test): Likewise.
53656         (csinh_test): Likewise.
53657         (csqrt_test): Likewise.
53658         (ctan_test): Likewise.
53659         (ctan_test_tonearest): Likewise.
53660         (ctan_test_towardzero): Likewise.
53661         (ctan_test_downward): Likewise.
53662         (ctan_test_upward): Likewise.
53663         (ctanh_test): Likewise.
53664         (ctanh_test_tonearest): Likewise.
53665         (ctanh_test_towardzero): Likewise.
53666         (ctanh_test_downward): Likewise.
53667         (ctanh_test_upward): Likewise.
53668         (erf_test): Likewise.
53669         (erfc_test): Likewise.
53670         (exp_test): Likewise.
53671         (exp_test_tonearest): Likewise.
53672         (exp_test_towardzero): Likewise.
53673         (exp_test_downward): Likewise.
53674         (exp_test_upward): Likewise.
53675         (exp10_test): Likewise.
53676         (exp2_test): Likewise.
53677         (expm1_test): Likewise.
53678         (fmod_test): Likewise.
53679         (gamma_test): Likewise.
53680         (hypot_test): Likewise.
53681         (j0_test): Likewise.
53682         (j1_test): Likewise.
53683         (jn_test): Likewise.
53684         (lgamma_test): Likewise.
53685         (log_test): Likewise.
53686         (log10_test): Likewise.
53687         (log1p_test): Likewise.
53688         (log2_test): Likewise.
53689         (logb_test_downward): Likewise.
53690         (pow_test): Likewise.
53691         (pow_test_tonearest): Likewise.
53692         (pow_test_towardzero): Likewise.
53693         (pow_test_downward): Likewise.
53694         (pow_test_upward): Likewise.
53695         (remainder_test): Likewise.
53696         (remquo_test): Likewise.
53697         (sin_test): Likewise.
53698         (sin_test_tonearest): Likewise.
53699         (sin_test_towardzero): Likewise.
53700         (sin_test_downward): Likewise.
53701         (sin_test_upward): Likewise.
53702         (sincos_test): Likewise.
53703         (sinh_test): Likewise.
53704         (sinh_test_tonearest): Likewise.
53705         (sinh_test_towardzero): Likewise.
53706         (sinh_test_downward): Likewise.
53707         (sinh_test_upward): Likewise.
53708         (sqrt_test): Likewise.
53709         (tan_test): Likewise.
53710         (tan_test_tonearest): Likewise.
53711         (tan_test_towardzero): Likewise.
53712         (tan_test_downward): Likewise.
53713         (tan_test_upward): Likewise.
53714         (tanh_test): Likewise.
53715         (tgamma_test): Likewise.
53716         (y0_test): Likewise.
53717         (y1_test): Likewise.
53718         (yn_test): Likewise.
53719
53720         * math/gen-libm-test.pl (adjust_arg): Remove function.
53721         (special_function): Remove argument $in_func.  Only handle
53722         generating output for tables of tests, not inside functions.
53723         (parse_args): Likewise.
53724         (generate_testfile): Remove variable $in_func.  Update call to
53725         parse_args.
53726         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
53727         (MINUS_ZERO_INIT): Rename macro to minus_zero.
53728         (PLUS_INFTY_INIT): Rename macro to plus_infty.
53729         (MINUS_INFTY_INIT): Rename macro to minus_infty.
53730         (QNAN_VALUE_INIT): Rename macro to qnan_value.
53731         (MAX_VALUE_INIT): Rename macro to max_value.
53732         (MIN_VALUE_INIT): Rename macro to min_value.
53733         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
53734         (plus_zero): Remove variable.
53735         (minus_zero): Likewise.
53736         (plus_infty): Likewise.
53737         (minus_infty): Likewise.
53738         (qnan_value): Likewise.
53739         (max_value): Likewise.
53740         (min_value): Likewise.
53741         (min_subnorm_value): Likewise.
53742
53743 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
53744
53745         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
53746         uint64_t or uint32_t usage.
53747         * crypt/sha256-block.c: Likewise.
53748         * crypt/sha256-crypt.c: Likewise.
53749         * crypt/sha256.c: Likewise.
53750         * crypt/sha512-block.c: Likewise.
53751         * crypt/sha512-crypt.c: Likewise.
53752         * crypt/sha512.c: Likewise.
53753         * debug/backtrace-tst.c: Likewise.
53754         * debug/pcprofiledump.c: Likewise.
53755         * elf/cache.c: Likewise.
53756         * elf/dl-cache.c: Likewise.
53757         * elf/dl-misc.c: Likewise.
53758         * elf/dl-profile.c: Likewise.
53759         * elf/dl-support.c: Likewise.
53760         * elf/ldconfig.c: Likewise.
53761         * elf/sprof.c: Likewise.
53762         * iconv/dummy-repertoire.c: Likewise.
53763         * iconv/iconv_charmap.c: Likewise.
53764         * iconv/skeleton.c: Likewise.
53765         * iconvdata/8bit-generic.c: Likewise.
53766         * iconvdata/cp737.h: Likewise.
53767         * iconvdata/cp775.h: Likewise.
53768         * iconvdata/ibm1008.h: Likewise.
53769         * iconvdata/ibm1025.h: Likewise.
53770         * iconvdata/ibm1046.h: Likewise.
53771         * iconvdata/ibm1097.h: Likewise.
53772         * iconvdata/ibm1112.h: Likewise.
53773         * iconvdata/ibm1122.h: Likewise.
53774         * iconvdata/ibm1123.h: Likewise.
53775         * iconvdata/ibm1124.h: Likewise.
53776         * iconvdata/ibm1129.h: Likewise.
53777         * iconvdata/ibm1130.h: Likewise.
53778         * iconvdata/ibm1132.h: Likewise.
53779         * iconvdata/ibm1133.h: Likewise.
53780         * iconvdata/ibm1137.h: Likewise.
53781         * iconvdata/ibm1140.h: Likewise.
53782         * iconvdata/ibm1141.h: Likewise.
53783         * iconvdata/ibm1142.h: Likewise.
53784         * iconvdata/ibm1143.h: Likewise.
53785         * iconvdata/ibm1144.h: Likewise.
53786         * iconvdata/ibm1145.h: Likewise.
53787         * iconvdata/ibm1146.h: Likewise.
53788         * iconvdata/ibm1147.h: Likewise.
53789         * iconvdata/ibm1148.h: Likewise.
53790         * iconvdata/ibm1149.h: Likewise.
53791         * iconvdata/ibm1153.h: Likewise.
53792         * iconvdata/ibm1154.h: Likewise.
53793         * iconvdata/ibm1155.h: Likewise.
53794         * iconvdata/ibm1156.h: Likewise.
53795         * iconvdata/ibm1157.h: Likewise.
53796         * iconvdata/ibm1158.h: Likewise.
53797         * iconvdata/ibm1160.h: Likewise.
53798         * iconvdata/ibm1161.h: Likewise.
53799         * iconvdata/ibm1162.h: Likewise.
53800         * iconvdata/ibm1163.h: Likewise.
53801         * iconvdata/ibm1164.h: Likewise.
53802         * iconvdata/ibm1166.h: Likewise.
53803         * iconvdata/ibm1167.h: Likewise.
53804         * iconvdata/ibm12712.h: Likewise.
53805         * iconvdata/ibm1390.h: Likewise.
53806         * iconvdata/ibm1399.h: Likewise.
53807         * iconvdata/ibm16804.h: Likewise.
53808         * iconvdata/ibm4517.h: Likewise.
53809         * iconvdata/ibm4899.h: Likewise.
53810         * iconvdata/ibm4909.h: Likewise.
53811         * iconvdata/ibm4971.h: Likewise.
53812         * iconvdata/ibm5347.h: Likewise.
53813         * iconvdata/ibm803.h: Likewise.
53814         * iconvdata/ibm856.h: Likewise.
53815         * iconvdata/ibm901.h: Likewise.
53816         * iconvdata/ibm902.h: Likewise.
53817         * iconvdata/ibm9030.h: Likewise.
53818         * iconvdata/ibm9066.h: Likewise.
53819         * iconvdata/ibm921.h: Likewise.
53820         * iconvdata/ibm922.h: Likewise.
53821         * iconvdata/ibm9448.h: Likewise.
53822         * iconvdata/isiri-3342.h: Likewise.
53823         * iconvdata/jis0201.h: Likewise.
53824         * include/link.h: Likewise.
53825         * include/netdb.h: Likewise.
53826         * inet/check_native.c: Likewise.
53827         * inet/check_pf.c: Likewise.
53828         * inet/getipv4sourcefilter.c: Likewise.
53829         * inet/getnameinfo.c: Likewise.
53830         * inet/getsourcefilter.c: Likewise.
53831         * inet/htonl.c: Likewise.
53832         * inet/setipv4sourcefilter.c: Likewise.
53833         * inet/setsourcefilter.c: Likewise.
53834         * inet/test-inet6_opt.c: Likewise.
53835         * inet/tst-network.c: Likewise.
53836         * locale/C-collate.c: Likewise.
53837         * locale/C-ctype.c: Likewise.
53838         * locale/C-time.c: Likewise.
53839         * locale/C-translit.h: Likewise.
53840         * locale/loadarchive.c: Likewise.
53841         * locale/programs/3level.h: Likewise.
53842         * locale/programs/charmap.c: Likewise.
53843         * locale/programs/charmap.h: Likewise.
53844         * locale/programs/ld-address.c: Likewise.
53845         * locale/programs/ld-collate.c: Likewise.
53846         * locale/programs/ld-ctype.c: Likewise.
53847         * locale/programs/ld-identification.c: Likewise.
53848         * locale/programs/ld-measurement.c: Likewise.
53849         * locale/programs/ld-messages.c: Likewise.
53850         * locale/programs/ld-monetary.c: Likewise.
53851         * locale/programs/ld-name.c: Likewise.
53852         * locale/programs/ld-numeric.c: Likewise.
53853         * locale/programs/ld-paper.c: Likewise.
53854         * locale/programs/ld-telephone.c: Likewise.
53855         * locale/programs/ld-time.c: Likewise.
53856         * locale/programs/linereader.c: Likewise.
53857         * locale/programs/locale.c: Likewise.
53858         * locale/programs/locarchive.c: Likewise.
53859         * locale/programs/locfile.h: Likewise.
53860         * locale/programs/repertoire.c: Likewise.
53861         * locale/programs/simple-hash.c: Likewise.
53862         * locale/programs/simple-hash.h: Likewise.
53863         * malloc/memusage.c: Likewise.
53864         * malloc/memusagestat.c: Likewise.
53865         * nis/nis_defaults.c: Likewise.
53866         * nis/nis_hash.c: Likewise.
53867         * nis/nis_print.c: Likewise.
53868         * nis/nis_xdr.c: Likewise.
53869         * nscd/connections.c: Likewise.
53870         * nscd/hstcache.c: Likewise.
53871         * nscd/nscd_gethst_r.c: Likewise.
53872         * nscd/nscd_getserv_r.c: Likewise.
53873         * nscd/nscd_helper.c: Likewise.
53874         * nscd/servicescache.c: Likewise.
53875         * nss/makedb.c: Likewise.
53876         * nss/nss_db/db-XXX.c: Likewise.
53877         * nss/nss_db/db-initgroups.c: Likewise.
53878         * nss/nss_db/db-netgrp.c: Likewise.
53879         * nss/nss_files/files-network.c: Likewise.
53880         * nss/nss_files/files-parse.c: Likewise.
53881         * posix/bug-regex5.c: Likewise.
53882         * posix/fnmatch_loop.c: Likewise.
53883         * posix/regcomp.c: Likewise.
53884         * posix/regexec.c: Likewise.
53885         * posix/tst-rfc3484-2.c: Likewise.
53886         * posix/tst-rfc3484-3.c: Likewise.
53887         * posix/tst-rfc3484.c: Likewise.
53888         * resolv/nss_dns/dns-canon.c: Likewise.
53889         * resolv/nss_dns/dns-network.c: Likewise.
53890         * resolv/res_init.c: Likewise.
53891         * resolv/res_mkquery.c: Likewise.
53892         * resolv/tst-aton.c: Likewise.
53893         * stdlib/cxa_atexit.c: Likewise.
53894         * stdlib/cxa_finalize.c: Likewise.
53895         * stdlib/gen-fpioconst.c: Likewise.
53896         * stdlib/strtol_l.c: Likewise.
53897         * string/tst-endian.c: Likewise.
53898         * sunrpc/auth_des.c: Likewise.
53899         * sunrpc/clnt_udp.c: Likewise.
53900         * sunrpc/rtime.c: Likewise.
53901         * sunrpc/svcauth_des.c: Likewise.
53902         * sunrpc/xdr.c: Likewise.
53903         * sunrpc/xdr_intXX_t.c: Likewise.
53904         * sunrpc/xdr_rec.c: Likewise.
53905         * sysdeps/generic/ldconfig.h: Likewise.
53906         * sysdeps/generic/ldsodefs.h: Likewise.
53907         * sysdeps/generic/memusage.h: Likewise.
53908         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
53909         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
53910         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
53911         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
53912         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
53913         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
53914         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
53915         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
53916         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
53917         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
53918         * sysdeps/posix/getaddrinfo.c: Likewise.
53919         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
53920         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
53921         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
53922         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
53923         * sysdeps/powerpc/test-gettimebase.c: Likewise.
53924         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
53925         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
53926         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
53927         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
53928         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
53929         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
53930         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
53931         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
53932         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
53933         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
53934         * sysdeps/x86_64/dl-tls.h: Likewise.
53935         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
53936         * time/alt_digit.c: Likewise.
53937         * time/era.c: Likewise.
53938         * wcsmbs/tst-c16c32-1.c: Likewise.
53939
53940 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53941
53942         * math/libm-test.inc (struct test_sincos_data): New type.
53943         (RUN_TEST_LOOP_sincos): New macro.
53944         (sincos_test_data): New variable.
53945         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
53946
53947 2013-05-16  Richard Henderson  <rth@redhat.com>
53948
53949         * math/atest-exp2.c (LIMB64): New macro.
53950         (CONSTSZ): New macro.
53951         (mp_exp1, mp_exp_m1, mp_log2): New variables.
53952         (hexdig): Move ...
53953         (print_mpn_fp): ... to function scope.
53954         (read_mpn_hex): Remove.
53955         (get_log2): Remove.
53956         (exp2_mpn): Use mp_log2.
53957         (main): Use mp_exp1.
53958
53959 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
53960
53961         * math/libm-test.inc: Remove comment about not testing "inexact"
53962         exceptions.
53963         (INEXACT_EXCEPTION): New macro.
53964         (NO_INEXACT_EXCEPTION): Likewise.
53965         (INVALID_EXCEPTION_OK): Update value.
53966         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
53967         (OVERFLOW_EXCEPTION_OK): Likewise.
53968         (UNDERFLOW_EXCEPTION_OK): Likewise.
53969         (IGNORE_ZERO_INF_SIGN): Likewise.
53970         (ERRNO_UNCHANGED): Likewise.
53971         (ERRNO_EDOM): Likewise.
53972         (ERRNO_ERANGE): Likewise.
53973         (test_exceptions): Handle testing "inexact" exceptions.
53974         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
53975         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
53976         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
53977         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
53978         INEXACT_EXCEPTION.
53979         (rint_towardzero_test_data): Likewise.
53980         (rint_downward_test_data): Likewise.
53981         (rint_upward_test_data): Likewise.
53982
53983         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
53984         with OVERFLOW_EXCEPTION.
53985         (exp10_test_data): Likewise.
53986         (exp2_test_data): Likewise.
53987         (expm1_test_data): Likewise.
53988         (lgamma_test_data): Likewise.
53989         (pow_test_data): Likewise.
53990         (tgamma_test_data): Likewise.
53991         (yn_test_data): Remove duplicate test of overflow.
53992
53993         * math/libm-test.inc (struct test_cc_c_data): New type.
53994         (RUN_TEST_LOOP_cc_c): New macro.
53995         (cpow_test_data): New variable.
53996         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
53997
53998         * math/libm-test.inc (struct test_f_L_data): New type.
53999         (RUN_TEST_LOOP_f_L): New macro.
54000         (llrint_test_data): New variable.
54001         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
54002         (llrint_tonearest_test_data): New variable.
54003         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
54004         (llrint_towardzero_test_data): New variable.
54005         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
54006         (llrint_downward_test_data): New variable.
54007         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
54008         (llrint_upward_test_data): New variable.
54009         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
54010         (llround_test_data): New variable.
54011         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
54012
54013 2013-05-13  Peter Collingbourne  <pcc@google.com>
54014
54015         * math/atest-exp2.c (get_log2): Remove const attribute.
54016
54017 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54018
54019         * math/libm-test.inc (struct test_f_l_data): New type.
54020         (RUN_TEST_LOOP_f_l): New macro.
54021         (lrint_test_data): New variable.
54022         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
54023         (lrint_tonearest_test_data): New variable.
54024         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
54025         (lrint_towardzero_test_data): New variable.
54026         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
54027         (lrint_downward_test_data): New variable.
54028         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
54029         (lrint_upward_test_data): New variable.
54030         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
54031         (lround_test_data): New variable.
54032         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
54033
54034 2013-05-15  Peter Collingbourne  <pcc@google.com>
54035
54036         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
54037         (EXTRACT_WORDS64) Use where appropriate.
54038         (INSERT_WORDS64) Likewise.
54039
54040         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
54041         constraints with x constraints.
54042         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
54043
54044         * malloc/obstack.c (_obstack_compat): Add initializer.
54045
54046 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
54047
54048         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
54049         si_trapno and add si_addr_lsb to _sifields.sigfault.
54050         (si_trapno): Remove macro.
54051         (si_addr_lsb): Define new macro.
54052         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
54053
54054 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
54055
54056         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
54057         instead of TEST_f_l.
54058         (llrint_test_tonearest): Likewise.
54059         (llrint_test_towardzero): Likewise.
54060         (llrint_test_downward): Likewise.
54061         (llrint_test_upward): Likewise.
54062         (llround_test): Likewise.
54063
54064         * math/libm-test.inc (struct test_f_i_data): Add comment.
54065         (RUN_TEST_LOOP_f_b): New macro.
54066         (RUN_TEST_LOOP_f_b_tg): Likewise.
54067         (finite_test_data): New variable.
54068         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
54069         (isfinite_test_data): New variable.
54070         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54071         (isinf_test_data): New variable.
54072         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54073         (isnan_test_data): New variable.
54074         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54075         (isnormal_test_data): New variable.
54076         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54077         (issignaling_test_data): New variable.
54078         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54079         (signbit_test_data): New variable.
54080         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
54081
54082         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
54083         with INVALID_EXCEPTION.
54084         (acosh_test_data): Likewise.
54085         (asin_test_data): Likewise.
54086         (atanh_test_data): Likewise.
54087         (fmod_test_data): Likewise.
54088         (log_test_data): Likewise.
54089         (log10_test_data): Likewise.
54090         (log2_test_data): Likewise.
54091         (pow_test_data): Likewise.
54092         (sqrt_test_data): Likewise.
54093         (y0_test_data): Likewise.
54094         (y1_test_data): Likewise.
54095         (yn_test_data): Likewise.
54096
54097         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
54098         function contents.
54099
54100         * math/libm-test.inc (struct test_ff_i_data): New type.
54101         (RUN_TEST_LOOP_ff_i_tg): New macro.
54102         (isgreater_test_data): New variable.
54103         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54104         (isgreaterequal_test_data): New variable.
54105         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54106         (isless_test_data): New variable.
54107         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54108         (islessequal_test_data): New variable.
54109         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54110         (islessgreater_test_data): New variable.
54111         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54112         (isunordered_test_data): New variable.
54113         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
54114
54115 2013-05-14  David S. Miller  <davem@davemloft.net>
54116
54117         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54118
54119 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
54120
54121         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
54122
54123         * math/libm-test.inc (struct test_fF_f1_data): Change type of
54124         extra_test to int.
54125         (struct test_f_i_data): Change type of max_ulp to int.
54126
54127         * math/libm-test.inc (test_ffI_f1_data): New type.
54128         (RUN_TEST_LOOP_ffI_f1): New macro.
54129         (remquo_test_data): New variable.
54130         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
54131
54132         * setjmp/tst-setjmp-fp.c: New file.
54133         * setjmp/Makefile (tests): Add tst-setjmp-fp.
54134         (link-libm): New variable.
54135         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
54136
54137         * math/libm-test.inc (struct test_f_i_data): New type.
54138         (RUN_TEST_LOOP_f_i): New macro.
54139         (RUN_TEST_LOOP_f_i_tg): Likewise.
54140         (fpclassify_test_data): New variable.
54141         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
54142         (ilogb_test_data): New variable.
54143         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
54144
54145         * math/libm-test.inc (scalbln_test): Correct function name in END
54146         call.
54147
54148         * math/libm-test.inc (struct test_f_f1_data): Add comment.
54149         (RUN_TEST_LOOP_fI_f1): New macro.
54150         (frexp_test_data): New variable.
54151         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
54152
54153         * math/libm-test.inc (struct test_fF_f1_data): New type.
54154         (RUN_TEST_LOOP_fF_f1): New macro.
54155         (modf_test_data): New variable.
54156         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
54157
54158         * math/libm-test.inc (struct test_f_f1_data): New type.
54159         (RUN_TEST_LOOP_f_f1): New macro.
54160         (gamma_test_data): New variable.
54161         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54162         (lgamma_test_data): New variable.
54163         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
54164
54165 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
54166
54167         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
54168         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
54169         (main): Comment "tls" pseudo-hwcap.
54170
54171 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
54172
54173         * math/libm-test.inc (struct test_fl_f_data): New type.
54174         (RUN_TEST_LOOP_fl_f): New variable.
54175         (scalbln_test_data): New variable.
54176         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
54177
54178         * math/libm-test.inc (struct test_fi_f_data): New type.
54179         (RUN_TEST_LOOP_fi_f): New macro.
54180         (ldexp_test_data): New variable.
54181         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
54182         (scalbn_test_data): New variable.
54183         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
54184
54185         * math/libm-test.inc (struct test_c_f_data): New type.
54186         (RUN_TEST_LOOP_c_f): New macro.
54187         (cabs_test_data): New variable.
54188         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
54189         (carg_test_data): New variable.
54190         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
54191         (cimag_test_data): New variable.
54192         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
54193         (creal_test_data): New variable.
54194         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
54195
54196         * math/libm-test.inc (struct test_if_f_data): New type.
54197         (RUN_TEST_LOOP_if_f): New macro.
54198         (jn_test_data): New variable.
54199         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
54200         (yn_test_data): New variable.
54201         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
54202
54203         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
54204
54205 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54206
54207         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
54208         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
54209
54210 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
54211
54212         * benchtests/Makefile (CPPFLAGS-nonlib): Add
54213         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
54214         (bench-deps): Add bench-timing.h.
54215         * benchtests-bench-skeleton.c: Include bench-timing.h.
54216         (main): Use TIMING_* macros instead of clock_gettime.
54217         * benchtests/bench-timing.h: New file.
54218
54219         [BZ #14582]
54220         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
54221         Renamed from _LIB_VERSION.
54222         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
54223
54224 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
54225
54226         * math/libm-test.inc (struct test_fff_f_data): New type.
54227         (RUN_TEST_LOOP_fff_f): New macro.
54228         (fma_test_data): New variable.
54229         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
54230         (fma_towardzero_test_data): New variable.
54231         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
54232         (fma_downward_test_data): New variable.
54233         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
54234         (fma_upward_test_data): New variable.
54235         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
54236
54237         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
54238         (struct test_c_c_data): New type.
54239         (RUN_TEST_LOOP_c_c): New macro.
54240         (cacos_test_data): New variable.
54241         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
54242         (cacosh_test_data): New variable.
54243         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
54244         (casin_test_data): New variable.
54245         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
54246         (casinh_test_data): New variable.
54247         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
54248         (catan_test_data): New variable.
54249         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
54250         (catanh_test_data): New variable.
54251         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
54252         (ccos_test_data): New variable.
54253         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
54254         (ccosh_test_data): New variable.
54255         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
54256         (cexp_test_data): New variable.
54257         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
54258         (clog_test_data): New variable.
54259         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
54260         (clog10_test_data): New variable.
54261         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
54262         (conj_test_data): New variable.
54263         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
54264         (cproj_test_data): New variable.
54265         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
54266         (csin_test_data): New variable.
54267         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
54268         (csinh_test_data): New variable.
54269         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
54270         (csqrt_test_data): New variable.
54271         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
54272         (ctan_test_data): New variable.
54273         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
54274         (ctan_tonearest_test_data): New variable.
54275         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54276         (ctan_towardzero_test_data): New variable.
54277         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54278         (ctan_downward_test_data): New variable.
54279         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54280         (ctan_upward_test_data): New variable.
54281         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54282         (ctanh_test_data): New variable.
54283         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
54284         (ctanh_tonearest_test_data): New variable.
54285         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
54286         (ctanh_towardzero_test_data): New variable.
54287         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
54288         (ctanh_downward_test_data): New variable.
54289         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
54290         (ctanh_upward_test_data): New variable.
54291         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
54292         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
54293         of BUILD_COMPLEX.
54294
54295         * math/libm-test.inc (struct test_ff_f_data): New type.
54296         (struct test_ff_f_data_nexttoward): Likewise.
54297         (RUN_TEST_LOOP_2_f): New macro.
54298         (RUN_TEST_LOOP_ff_f): Likewise.
54299         (atan2_test_data): New variable.
54300         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
54301         (copysign_test_data): New variable.
54302         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
54303         (fdim_test_data): New variable.
54304         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
54305         (fmax_test_data): New variable.
54306         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
54307         (fmin_test_data): New variable.
54308         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
54309         (fmod_test_data): New variable.
54310         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
54311         (hypot_test_data): New variable.
54312         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
54313         (nextafter_test_data): New variable.
54314         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
54315         (nexttoward_test_data): New variable.
54316         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
54317         (pow_test_data): New variable.
54318         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
54319         (pow_tonearest_test_data): New variable.
54320         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
54321         (pow_towardzero_test_data): New variable.
54322         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
54323         (pow_downward_test_data): New variable.
54324         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
54325         (pow_upward_test_data): New variable.
54326         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
54327         (remainder_test_data): New variable.
54328         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
54329         (scalb_test_data): New variable.
54330         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
54331         * sysdeps/i386/fpu/libm-test-ulps: Update.
54332
54333 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
54334
54335         * math/libm-test.inc (fma_test): Use max_value instead of local
54336         variable fltmax.
54337         (nextafter_test): Likewise.
54338
54339         * math/libm-test.inc (acos_towardzero_test_data): New variable.
54340         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54341         (acos_downward_test_data): New variable.
54342         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54343         (acos_upward_test_data): New variable.
54344         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54345         (acosh_test_data): New variable.
54346         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
54347         (asin_test_data): New variable.
54348         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
54349         (asin_tonearest_test_data): New variable.
54350         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54351         (asin_towardzero_test_data): New variable.
54352         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54353         (asin_downward_test_data): New variable.
54354         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54355         (asin_upward_test_data): New variable.
54356         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54357         (asinh_test_data): New variable.
54358         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
54359         (atan_test_data): New variable.
54360         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
54361         (atanh_test_data): New variable.
54362         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
54363         (cbrt_test_data): New variable.
54364         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
54365         (ceil_test_data): New variable.
54366         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
54367         (cos_test_data): New variable.
54368         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
54369         (cos_tonearest_test_data): New variable.
54370         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54371         (cos_towardzero_test_data): New variable.
54372         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54373         (cos_downward_test_data): New variable.
54374         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54375         (cos_upward_test_data): New variable.
54376         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54377         (cosh_test_data): New variable.
54378         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
54379         (cosh_tonearest_test_data): New variable.
54380         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54381         (cosh_towardzero_test_data): New variable.
54382         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54383         (cosh_downward_test_data): New variable.
54384         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54385         (cosh_upward_test_data): New variable.
54386         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54387         (erf_test_data): New variable.
54388         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
54389         (erfc_test_data): New variable.
54390         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
54391         (exp_test_data): New variable.
54392         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
54393         (exp_tonearest_test_data): New variable.
54394         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54395         (exp_towardzero_test_data): New variable.
54396         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54397         (exp_downward_test_data): New variable.
54398         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54399         (exp_upward_test_data): New variable.
54400         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54401         (exp10_test_data): New variable.
54402         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
54403         (exp2_test_data): New variable.
54404         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
54405         (expm1_test_data): New variable.
54406         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
54407         (fabs_test_data): New variable.
54408         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
54409         (floor_test_data): New variable.
54410         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
54411         (j0_test_data): New variable.
54412         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
54413         (j1_test_data): New variable.
54414         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
54415         (log_test_data): New variable.
54416         (log_test): Run tests with RUN_TEST_LOOP_f_f.
54417         (log10_test_data): New variable.
54418         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
54419         (log1p_test_data): New variable.
54420         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
54421         (log2_test_data): New variable.
54422         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
54423         (logb_test_data): New variable.
54424         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
54425         (logb_downward_test_data): New variable.
54426         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54427         (nearbyint_test_data): New variable.
54428         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
54429         (rint_test_data): New variable.
54430         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
54431         (rint_tonearest_test_data): New variable.
54432         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54433         (rint_towardzero_test_data): New variable.
54434         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54435         (rint_downward_test_data): New variable.
54436         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54437         (rint_upward_test_data): New variable.
54438         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54439         (round_test_data): New variable.
54440         (round_test): Run tests with RUN_TEST_LOOP_f_f.
54441         (sin_test_data): New variable.
54442         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
54443         (sin_tonearest_test_data): New variable.
54444         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54445         (sin_towardzero_test_data): New variable.
54446         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54447         (sin_downward_test_data): New variable.
54448         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54449         (sin_upward_test_data): New variable.
54450         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54451         (sinh_test_data): New variable.
54452         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
54453         (sinh_tonearest_test_data): New variable.
54454         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54455         (sinh_towardzero_test_data): New variable.
54456         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54457         (sinh_downward_test_data): New variable.
54458         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54459         (sinh_upward_test_data): New variable.
54460         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54461         (sqrt_test_data): New variable.
54462         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
54463         (tan_test_data): New variable.
54464         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
54465         (tan_tonearest_test_data): New variable.
54466         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54467         (tan_towardzero_test_data): New variable.
54468         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
54469         (tan_downward_test_data): New variable.
54470         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
54471         (tan_upward_test_data): New variable.
54472         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
54473         (tanh_test_data): New variable.
54474         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
54475         (tgamma_test_data): New variable.
54476         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
54477         (trunc_test_data): New variable.
54478         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
54479         (y0_test_data): New variable.
54480         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
54481         (y1_test_data): New variable.
54482         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
54483         (significand_test_data): New variable.
54484         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
54485
54486 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
54487
54488         [BZ #12387]
54489         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
54490
54491 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
54492
54493         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
54494
54495 2013-05-10  Andreas Jaeger  <aj@suse.de>
54496
54497         [BZ #15448]
54498         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
54499         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
54500
54501 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54502
54503         * math/gen-libm-test.pl (adjust_arg): New function.
54504         (special_functions): Handle generating output in both functions
54505         and arrays.
54506         (parse_args): Likewise.
54507         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
54508         $in_func argument to parse_args.
54509         * math/libm-test.inc (struct test_f_f_data): New type.
54510         (IF_ROUND_INIT_): New macro.
54511         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
54512         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
54513         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
54514         (IF_ROUND_INIT_FE_UPWARD): Likewise.
54515         (ROUND_RESTORE_): Likewise.
54516         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
54517         (ROUND_RESTORE_FE_TONEAREST): Likewise.
54518         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
54519         (ROUND_RESTORE_FE_UPWARD): Likewise.
54520         (RUN_TEST_LOOP_f_f): New macro.
54521         (acos_test_data): New variable.
54522         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
54523         (acos_tonearest_test_data): New variable.
54524         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
54525
54526 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
54527
54528         * benchtests/bench-skeleton.c (startup): Fix coding style.
54529
54530 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
54531
54532         [BZ #6809]
54533         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
54534         negative infinity argument.
54535         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
54536         negative infinity argument.
54537         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
54538         negative infinity argument.
54539         * math/libm-test.inc (tgamma_test): Expect errno to be set for
54540         domain errors.
54541
54542 2013-05-10  Florian Weimer  <fweimer@redhat.com>
54543
54544         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
54545         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
54546         * iconv/iconv_prog.c (main): Likewise.
54547         * locale/programs/charmap-dir.c (charmap_readdir)
54548         (fopen_uncompressed): Likewise.
54549         * locale/programs/locfile.c (siblings_uncached)
54550         (write_locale_data): Use lstat64 instead of lstat.
54551         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
54552         stat.
54553
54554 2013-05-10  Andreas Jaeger  <aj@suse.de>
54555
54556         [BZ #15395]
54557         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
54558         localization.
54559         Include <locale.h>.
54560
54561 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
54562
54563         * elf/dl-close.c (_dl_close_worker): Add comments.
54564
54565 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
54566
54567         [BZ #15359]
54568         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
54569         high part of pi/2.
54570         (__ieee754_rem_pio2l): Update comments.
54571
54572         [BZ #15429]
54573         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
54574         high part of pi/2.
54575         (__ieee754_rem_pio2l): Update comments.
54576
54577         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
54578         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
54579
54580         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
54581         M_PI_4l.
54582
54583         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
54584         (M_PI_34_LOG10El): Likewise.
54585         (M_PI2_LOG10El): Likewise.
54586         (M_PI4_LOG10El): Likewise.
54587         (M_PI_LOG10El): Likewise.
54588
54589 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54590
54591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54592
54593 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
54594
54595         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
54596         (MINUS_ZERO_INIT): Likewise.
54597         (PLUS_INFTY_INIT): Likewise.
54598         (MINUS_INFTY_INIT): Likewise.
54599         (QNAN_VALUE_INIT): Likewise.
54600         (MAX_VALUE_INIT): Likewise.
54601         (MIN_VALUE_INIT): Likewise.
54602         (MIN_SUBNORM_VALUE_INIT): Likewise.
54603         (plus_zero): Initialize with PLUS_ZERO_INIT.
54604         (minus_zero): Initialize with MINUS_ZERO_INIT.
54605         (plus_infty): Initialize with PLUS_INFTY_INIT.
54606         (minus_infty): Initialize with MINUS_INFTY_INIT.
54607         (qnan_value): Initialize with QNAN_VALUE_INIT.
54608         (max_value): Initialize with MAX_VALUE_INIT.
54609         (min_value): Initialize with MIN_VALUE_INIT.
54610         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
54611
54612         * math/libm-test.inc (RUN_TEST_if_f): New macro.
54613         (jn_test): Use TEST_if_f instead of TEST_ff_f.
54614         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
54615         (yn_test): Use TEST_if_f instead of TEST_ff_f.
54616
54617         * math/libm-test.inc (RUN_TEST_f_f): New macro.
54618         (RUN_TEST_2_f): Likewise.
54619         (RUN_TEST_ff_f): Likewise.
54620         (RUN_TEST_fi_f): Likewise.
54621         (RUN_TEST_fl_f): Likewise.
54622         (RUN_TEST_fff_f): Likewise.
54623         (RUN_TEST_c_f): Likewise.
54624         (RUN_TEST_f_f1): Likewise.
54625         (RUN_TEST_fF_f1): Likewise.
54626         (RUN_TEST_fI_f1): Likewise.
54627         (RUN_TEST_ffI_f1): Likewise.
54628         (RUN_TEST_c_c): Likewise.
54629         (RUN_TEST_cc_c): Likewise.
54630         (RUN_TEST_f_i): Likewise.
54631         (RUN_TEST_f_i_tg): Likewise.
54632         (RUN_TEST_ff_i_tg): Likewise.
54633         (RUN_TEST_f_b): Likewise.
54634         (RUN_TEST_f_b_tg): Likewise.
54635         (RUN_TEST_f_l): Likewise.
54636         (RUN_TEST_f_L): Likewise.
54637         (RUN_TEST_sincos): Likewise.
54638         * math/gen-libm-test.pl (new_test): Take new argument to indicate
54639         whether to show exceptions.  Do not include ");\n" in return
54640         value.
54641         (special_functions): Output call to RUN_TEST_sincos instead of
54642         check_float calls.  Update calls to new_test.
54643         (parse_args): Output call to single RUN_TEST_* macro instead of
54644         check_* calls and other assignments.  Update calls to new_test.
54645
54646         [BZ #2546]
54647         [BZ #2560]
54648         [BZ #5159]
54649         [BZ #15426]
54650         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
54651         input to result for tgamma overflow.
54652         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
54653         (gamma_coeff): New variable.
54654         (NCOEFF): New macro.
54655         (gamma_positive): New function.
54656         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
54657         underflow here.  Use gamma_positive instead of exp (lgamma) for
54658         other arguments.
54659         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
54660         (gamma_coeff): New variable.
54661         (NCOEFF): New macro.
54662         (gammaf_positive): New function.
54663         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
54664         underflow here.  Use gamma_positive instead of exp (lgamma) for
54665         other arguments.
54666         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
54667         (gamma_coeff): New variable.
54668         (NCOEFF): New macro.
54669         (gammal_positive): New function.
54670         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
54671         underflow here.  Use gamma_positive instead of exp (lgamma) for
54672         other arguments.
54673         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
54674         (gamma_coeff): New variable.
54675         (NCOEFF): New macro.
54676         (gammal_positive): New function.
54677         (__ieee754_gammal_r): Handle positive infinity, overflow and
54678         underflow here.  Handle NaN the same as positive infinity.  Remove
54679         check x < 0xffffffff for negative integers.  Use gamma_positive
54680         instead of exp (lgamma) for other arguments.
54681         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
54682         (gamma_coeff): New variable.
54683         (NCOEFF): New macro.
54684         (gammal_positive): New function.
54685         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
54686         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
54687         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
54688         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
54689         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
54690         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
54691         * sysdeps/generic/math_private.h (__gamma_productf): New
54692         prototype.
54693         (__gamma_product): Likewise.
54694         (__gamma_productl): Likewise.
54695         * math/Makefile (libm-calls): Add gamma_product.
54696         * math/libm-test.inc (tgamma_test): Add more tests.
54697         * sysdeps/i386/fpu/libm-test-ulps: Update.
54698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54699
54700 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
54701
54702         * benchtests/bench-skeleton.c (main): Preheat CPU.
54703
54704 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
54705
54706         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
54707
54708 2013-05-07  Roland McGrath  <roland@hack.frob.com>
54709
54710         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
54711         and _dl_skip_args_internal.
54712
54713 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
54714
54715         * manual/message.texi (Message Translation): Talk about users.
54716         Message to key mapping impacts design.
54717
54718 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54719
54720         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
54721
54722         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
54723
54724         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
54725         * sysdeps/wordsize-64/glob64.c: ... here.
54726
54727         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
54728         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
54729         New macros.
54730
54731         * debug/getlogin_r_chk.c: Moved to ...
54732         * login/getlogin_r_chk.c: ... here.
54733         * debug/Makefile (routines): Move getlogin_r_chk to ...
54734         * login/Makefile (routines): ... here.
54735         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
54736         * login/Versions (libc: GLIBC_2.4): ... here.
54737
54738         * io/poll.c (__poll): Renamed from poll.
54739         Add libc_hidden_def.
54740         (poll): Define as weak alias.
54741
54742         * debug/ptsname_r_chk.c: Moved to ...
54743         * login/ptsname_r_chk.c: ... here.
54744         * debug/Makefile (routines): Move ptsname_r_chk to ...
54745         * login/Makefile (routines): ... here.
54746         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
54747         * login/Versions (libc: GLIBC_2.4): ... here.
54748
54749         * posix/getlogin.c: Moved to ...
54750         * login/getlogin.c: ... here.
54751         * posix/getlogin_r.c: Moved to ...
54752         * login/getlogin_r.c: ... here.
54753         * posix/getlogin_r.c: Moved to ...
54754         * login/getlogin_r.c: ... here.
54755         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
54756         * login/Makefile (routines): ... here.
54757         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
54758         * login/Versions (libc: GLIBC_2.0): ... here.
54759
54760         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
54761         (setrlimit): Define as weak alias.
54762
54763         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
54764         Call __ names for open, ftruncate, and close.
54765         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
54766         (truncate): Define as weak alias.
54767
54768 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
54769
54770         * math/gen-libm-test.pl (parse_args): Initialize x before each
54771         test of frexp, modf and remquo.
54772
54773         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
54774         test signgam value.
54775
54776 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54777
54778         [BZ #15418]
54779         [BZ #15419]
54780         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
54781         internal tests.
54782         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
54783
54784 2013-05-06  Roland McGrath  <roland@hack.frob.com>
54785
54786         * elf/dl-writev.h: New file.
54787         * elf/dl-misc.c: Include it.
54788         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
54789         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
54790
54791 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
54792
54793         * math/libm-test.inc (noXFails): Remove variable.
54794         (noXPasses): Likewise.
54795         (BUILD_COMPLEX_INT): Remove macro.
54796         (print_screen): Remove xfail argument.
54797         (print_screen_max_error): Likewise.
54798         (update_stats): Likewise.
54799         (print_max_error): Likewise.  Update calls to other affected
54800         functions.
54801         (print_complex_max_error): Likewise.
54802         (test_single_exception): Update calls to print_screen.
54803         (test_single_errno): Likewise.
54804         (check_float_internal): Remove xfail argument.  Update calls to
54805         other affected functions.
54806         (check_float): Likewise.
54807         (check_complex): Likewise.
54808         (check_int): Likewise.
54809         (check_long): Likewise.
54810         (check_bool): Likewise.
54811         (check_longlong): Likewise.
54812         (main): Don't print noXFails and noXPasses.
54813         * math/gen-libm-test.pl (top level): Don't mention expected
54814         failure handling in comment.
54815         (new_test): Don't handle expected failures.
54816         (parse_args): Don't mention expected failure handling in comment.
54817         (generate_testfile): Don't handle expected failures.
54818         (parse_ulps): Likewise.
54819         (print_ulps_file): Likewise.
54820         (get_failure): Remove function.
54821         (output_test): Don't handle expected failures.
54822         * make/README.libm-test: Don't mention expected failure handling.
54823
54824         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
54825         (minus_zero): Likewise.
54826         (plus_infty): Likewise.
54827         (minus_infty): Likewise.
54828         (qnan_value): Likewise.
54829         (max_value): Likewise.
54830         (min_value): Likewise.
54831         (min_subnorm_value): Likewise.
54832         (initialize): Do not initialize those variables dynamically.
54833
54834 2013-05-03  Roland McGrath  <roland@hack.frob.com>
54835
54836         * io/open.c (__open_2): Moved to ...
54837         * io/open_2.c: ... this new file.
54838         * io/open64.c (__open64_2): Moved to ...
54839         * io/open64_2.c: ... this new file.
54840         * io/openat.c (__openat_2): Moved to ...
54841         * io/openat_2.c: ... this new file.
54842         * io/openat64.c (__openat64_2): Moved to ...
54843         * io/openat64_2.c: ... this new file.
54844         * io/Makefile (routines): Add them.
54845         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
54846         * sysdeps/unix/sysv/linux/open_2.c: File removed.
54847         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
54848         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
54849         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
54850         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
54851         (__openat64): Add hidden_ver.
54852         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
54853         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
54854
54855         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
54856         Separately conditionalize setting of GLRO(dl_sysinfo) so
54857         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
54858         as well, but the actual setting is only under [NEED_DL_SYSINFO].
54859
54860 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54861
54862         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
54863         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
54864         definition.
54865         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
54866         * sysdeps/unix/sysv/linux/powerpc/init-first.c
54867         (_libc_vdso_platform_setup): Add __vdso_time initialization.
54868         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
54869         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
54870
54871 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
54872
54873         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
54874         test signgam value.
54875
54876         * math/libm-test.inc (hypot_test): Do not use
54877         IGNORE_ZERO_INF_SIGN.
54878
54879 2013-05-03  Andreas Jaeger  <aj@suse.de>
54880
54881         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
54882         Linux 3.9.
54883         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
54884         (PF_MAX): Adjust for VSOCK change.
54885
54886 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54887
54888         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54889
54890 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
54891
54892         [BZ #15264]
54893         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
54894         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
54895         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
54896
54897 2013-05-02  David S. Miller  <davem@davemloft.net>
54898
54899         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54900
54901 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
54902
54903         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
54904
54905 2013-05-01  Roland McGrath  <roland@hack.frob.com>
54906
54907         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
54908
54909 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
54910
54911         [BZ #14952]
54912         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
54913         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
54914         Use __attribute__ ((__gnu_inline__)).
54915         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
54916         Don't use __attribute__ ((__gnu_inline__)).
54917
54918 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
54919
54920         [BZ #15423]
54921         * math/s_catan.c (__catan): Handle small real or imaginary part of
54922         input specially to avoid spurious underflow.
54923         * math/s_catanf.c (__catanf): Likewise.
54924         * math/s_catanh.c (__catanh): Likewise.
54925         * math/s_catanhf.c (__catanhf): Likewise.
54926         * math/s_catanhl.c (__catanhl): Likewise.
54927         * math/s_catanl.c (__catanl): Likewise.
54928         * math/libm-test.inc (catan_test): Add more tests.
54929         (catanh_test): Likewise.
54930         * sysdeps/i386/fpu/libm-test-ulps: Update.
54931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54932
54933 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54934
54935         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54936
54937 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
54938
54939         [BZ #15416]
54940         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
54941         accurately for denominator in atan2.
54942         * math/s_catanf.c (__catanf): Likewise.
54943         * math/s_catanh.c (__catanh): Likewise.
54944         * math/s_catanhf.c (__catanhf): Likewise.
54945         * math/s_catanhl.c (__catanhl): Likewise.
54946         * math/s_catanl.c (__catanl): Likewise.
54947         * math/libm-test.inc (catan_test): Add more tests.
54948         (catanh_test): Likewise.
54949         * sysdeps/i386/fpu/libm-test-ulps: Update.
54950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54951
54952 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54953
54954         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
54955
54956         * benchtests/Makefile (bench): Remove slow benchmarks.
54957         * benchtests/atan-inputs: Add slow benchmark inputs.
54958         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
54959         (BENCH_FUNC): Accept variant offset.
54960         (VARIANT): Define.
54961         * benchtests/bench-skeleton.c (main): Run benchmark for each
54962         variant.
54963         * benchtests/cos-inputs: Add slow benchmark inputs.
54964         * benchtests/exp-inputs: Likewise.
54965         * benchtests/pow-inputs: Likewise.
54966         * benchtests/sin-inputs: Likewise.
54967         * benchtests/slowatan-inputs: Remove.
54968         * benchtests/slowatan.c: Remove.
54969         * benchtests/slowcos-inputs: Remove.
54970         * benchtests/slowcos.c: Remove.
54971         * benchtests/slowexp-inputs: Remove.
54972         * benchtests/slowexp.c: Remove.
54973         * benchtests/slowpow-inputs: Remove.
54974         * benchtests/slowpow.c: Remove.
54975         * benchtests/slowsin-inputs: Remove.
54976         * benchtests/slowsin.c: Remove.
54977         * benchtests/slowtan-inputs: Remove.
54978         * benchtests/slowtan.c: Remove.
54979         * benchtests/tan-inputs: Add slow benchmark inputs.
54980         * scripts/bench.pl: Parse comments and directives.
54981
54982         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
54983         in CPPFLAGS.
54984         ($(objpfx)bench-%.c): Remove *-ITER.
54985         * benchtests/bench-modf.c: Remove definition of ITER.
54986         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
54987         (main): Loop for DURATION seconds instead of fixed number of
54988         iterations.
54989         * scripts/bench.pl: Don't expect iterations in parameters.
54990
54991 2013-04-29  Roland McGrath  <roland@hack.frob.com>
54992
54993         * io/fchdir.c (__fchdir): Renamed from fchdir.
54994         (fchdir): Define as weak alias.
54995
54996 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
54997
54998         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
54999         (ERRNO_EDOM): Likewise.
55000         (ERRNO_ERANGE): Likewise.
55001         (noErrnoTests): New variable.
55002         (init_max_error): Set errno to 0.
55003         (test_single_errno): New function.
55004         (test_errno): Likewise.
55005         (check_float_internal): Call test_errno.  Set errno to 0.
55006         (check_complex): Refer to errno tests in comment.
55007         (check_int): Call test_errno.  Set errno to 0.
55008         (check_long): Likewise.
55009         (check_bool): Likewise.
55010         (check_longlong): Likewise.
55011         (cos_test): Use ERRNO_* flags for errno tests instead of
55012         check_int.
55013         (expm1_test): Likewise.
55014         (fmod_test): Likewise.
55015         (ilogb_test): Likewise.
55016         (lgamma_test): Likewise.
55017         (pow_test): Likewise.
55018         (remainder_test): Likewise.
55019         (sin_test): Likewise.
55020         (tan_test): Likewise.
55021         (yn_test): Likewise.
55022         (initialize): Set errno to 0.
55023         (main): Print number of errno tests.
55024         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
55025
55026 2013-04-29  Andreas Jaeger  <aj@suse.de>
55027
55028         [BZ #15084]
55029         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
55030         and RES_USEVC.
55031
55032         [BZ #15085]
55033         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
55034         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
55035         unimplemented.
55036
55037         [BZ #15380]
55038         * stdlib/random.c (__initstate): Return NULL if
55039         __initstate fails.
55040
55041         [BZ #15086]
55042         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
55043         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
55044         RES_SNGLKUPREOP.
55045
55046 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55047
55048         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55049
55050 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
55051
55052         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
55053         of individual tests.
55054         (casin_test): Likewise.
55055         (casinh_test): Likewise.
55056
55057 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
55058
55059         [BZ #15409]
55060         * math/s_catan.c (__catan): Handle arguments with large real or
55061         imaginary part separately without squaring.
55062         * math/s_catanf.c (__catanf): Likewise.
55063         * math/s_catanh.c (__catanh): Likewise.
55064         * math/s_catanhf.c (__catanhf): Likewise.
55065         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55066         and redefine.
55067         (__catanhl): Handle arguments with large real or imaginary part
55068         separately without squaring.
55069         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
55070         and redefine.
55071         (__catanl): Handle arguments with large real or imaginary part
55072         separately without squaring.
55073         * math/libm-test.inc (catan_test): Add more tests.
55074         (catanh_test): Likewise.
55075         * sysdeps/i386/fpu/libm-test-ulps: Update.
55076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55077
55078 2013-04-27  Andreas Jaeger  <aj@suse.de>
55079
55080         [BZ #15007]
55081         * stdlib/stdlib.h: Update guards for qecvt.
55082         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
55083         <stdlib.h>.
55084
55085 2013-04-27  Allan McRae  <allan@archlinux.org>
55086
55087         * sysdeps/i386/fpu/libm-test-ulps: Update.
55088
55089 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
55090
55091         [BZ #15406]
55092         * math/s_catan.c: Include <float.h>.
55093         (__catan): Ensure underflow exception occurs for underflowed
55094         result.
55095         * math/s_catanf.c: Include <float.h>.
55096         (__catanf): Ensure underflow exception occurs for underflowed
55097         result.
55098         * math/s_catanh.c: Include <float.h>.
55099         (__catanh): Ensure underflow exception occurs for underflowed
55100         result.
55101         * math/s_catanhf.c: Include <float.h>.
55102         (__catanhf): Ensure underflow exception occurs for underflowed
55103         result.
55104         * math/s_catanhl.c: Include <float.h>.
55105         (__catanhl): Ensure underflow exception occurs for underflowed
55106         result.
55107         * math/s_catanl.c: Include <float.h>.
55108         (__catanl): Ensure underflow exception occurs for underflowed
55109         result.
55110         * math/libm-test.inc (catan_test): Add more tests.
55111         (catanh_test): Likewise.
55112
55113         [BZ #15405]
55114         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
55115         underflowed result.
55116         * math/s_ccoshf.c (__ccoshf): Likewise.
55117         * math/s_ccoshl.c (__ccoshl): Likewise.
55118         * math/s_csin.c (__csin): Likewise.
55119         * math/s_csinf.c (__csinf): Likewise.
55120         * math/s_csinh.c (__csinh): Likewise.
55121         * math/s_csinhf.c (__csinhf): Likewise.
55122         * math/s_csinhl.c (__csinhl): Likewise.
55123         * math/s_csinl.c (__csinl): Likewise.
55124         * math/libm-test.inc (ccos_test): Add more tests.
55125         (ccosh_test): Likewise.
55126         (csin_test): Likewise.
55127         (csinh_test): Likewise.
55128
55129 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55130
55131         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
55132         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
55133         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
55134         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
55135         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
55136         powerpc/power5+/fpu folders.
55137         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
55138
55139
55140 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
55141
55142         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
55143
55144 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
55145
55146         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
55147         additions to variable.
55148         [$(config-machine) = x86_64] (modules-names): Likewise.
55149         ($(objpfx)tst-audit3): Remove dependency.
55150         ($(objpfx)tst-audit3.out): Likewise.
55151         ($(objpfx)tst-audit4): Likewise.
55152         ($(objpfx)tst-audit4.out): Likewise.
55153         ($(objpfx)tst-audit5): Likewise.
55154         ($(objpfx)tst-audit5.out): Likewise.
55155         ($(objpfx)tst-audit6): Likewise.
55156         ($(objpfx)tst-audit6.out): Likewise.
55157         ($(objpfx)tst-audit7): Likewise.
55158         ($(objpfx)tst-audit7.out): Likewise.
55159         (tst-audit3-ENV): Remove variable.
55160         (tst-audit4-ENV): Likewise.
55161         (tst-audit5-ENV): Likewise.
55162         (tst-audit6-ENV): Likewise.
55163         (tst-audit7-ENV): Likewise.
55164         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
55165         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
55166         addition to variable.
55167         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
55168         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
55169         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
55170         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
55171         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
55172         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
55173         tst-audit3, tst-audit4 and tst-audit5.
55174         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
55175         tst-audit6 and tst-audit7.
55176         [$(subdir) = elf] (modules-names): Add audit modules for those
55177         tests.
55178         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
55179         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
55180         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
55181         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
55182         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
55183         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
55184         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
55185         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
55186         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
55187         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
55188         [$(subdir) = elf] (tst-audit3-ENV): New variable.
55189         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
55190         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
55191         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
55192         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
55193         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
55194         Likewise.
55195         [$(subdir) = elf && $(config-cflags-avx) = yes]
55196         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
55197         [$(subdir) = elf && $(config-cflags-avx) = yes]
55198         (CFLAGS-tst-auditmod4a.c): Likewise.
55199         [$(subdir) = elf && $(config-cflags-avx) = yes]
55200         (CFLAGS-tst-auditmod4b.c): Likewise.
55201         [$(subdir) = elf && $(config-cflags-avx) = yes]
55202         (CFLAGS-tst-auditmod6b.c): Likewise.
55203         [$(subdir) = elf && $(config-cflags-avx) = yes]
55204         (CFLAGS-tst-auditmod6c.c): Likewise.
55205         [$(subdir) = elf && $(config-cflags-avx) = yes]
55206         (CFLAGS-tst-auditmod7b.c): Likewise.
55207         * elf/tst-audit3.c: Move to ...
55208         * sysdeps/x86_64/tst-audit3.c: ... here.
55209         * elf/tst-audit4.c: Move to ...
55210         * sysdeps/x86_64/tst-audit4.c: ... here.
55211         * elf/tst-audit5.c: Move to ...
55212         * sysdeps/x86_64/tst-audit5.c: ... here.
55213         * elf/tst-audit6.c: Move to ...
55214         * sysdeps/x86_64/tst-audit6.c: ... here.
55215         * elf/tst-audit7.c: Move to ...
55216         * sysdeps/x86_64/tst-audit7.c: ... here.
55217         * elf/tst-auditmod3a.c: Move to ...
55218         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
55219         * elf/tst-auditmod3b.c: Move to ...
55220         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
55221         * elf/tst-auditmod4a.c: Move to ...
55222         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
55223         * elf/tst-auditmod4b.c: Move to ...
55224         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
55225         * elf/tst-auditmod5a.c: Move to ...
55226         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
55227         * elf/tst-auditmod5b.c: Move to ...
55228         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
55229         * elf/tst-auditmod6a.c: Move to ...
55230         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
55231         * elf/tst-auditmod6b.c: Move to ...
55232         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
55233         * elf/tst-auditmod6c.c: Move to ...
55234         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
55235         * elf/tst-auditmod7a.c: Move to ...
55236         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
55237         * elf/tst-auditmod7b.c: Move to ...
55238         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
55239
55240 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
55241
55242         [BZ #15366]
55243         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
55244         define unconditionally.
55245         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
55246         define unconditionally.
55247         (INT8_C, INT16_C, etc.): Likewise.
55248
55249 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
55250
55251         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
55252         __ehdr_start with hidden visibility.
55253
55254         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
55255
55256 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
55257
55258         * math/libm-test.inc (cos_test): Use accurate hex constants.
55259         (sincost_test): Likewise.
55260
55261 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
55262
55263         * math/libm-test.inc (catan_test): Add more tests.
55264         (catanh_test): Likewise.
55265
55266         * math/s_catanf.c (__catanf): Use suffixed floating-point
55267         constants.
55268         * math/s_catanhf.c (__catanhf): Likewise.
55269         * math/s_catanhl.c (__catanhl): Likewise.
55270         * math/s_catanl.c (__catanl): Likewise.
55271
55272         [BZ #15394]
55273         * math/s_catan.c (__catan): Calculate imaginary part of result
55274         with log1p not log unless computing log of number close to 0.
55275         * math/s_catanf.c (__catanf): Likewise.
55276         * math/s_catanl.c (__catanl): Likewise.
55277         * math/s_catanh.c (__catanh): Calculate real part of result with
55278         log1p not log unless computing log of number close to 0.
55279         * math/s_catanhf.c (__catanhf): Likewise.
55280         * math/s_catanhl.c (__catanhl): Likewise.
55281         * math/libm-test.inc (catan_test): Add more tests.
55282         (catanh_test): Likewise.
55283         * sysdeps/i386/fpu/libm-test-ulps: Update.
55284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55285
55286 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
55287
55288         * benchtests/Makefile: Mention files in which fast and slow
55289         paths of math functions are implemented.
55290
55291 2013-04-23  Roland McGrath  <roland@hack.frob.com>
55292
55293         * sysdeps/posix/timespec_get.c: New file.
55294
55295 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55296
55297         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
55298         POWER.
55299         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
55300         for POWER.
55301         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
55302         powerpc/power5/fpu folders.
55303         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
55304         * benchtests/Makefile: Add modf testcase.
55305         * benchtests/bench-modf.c: New file: Benchmark test for mo
55306
55307 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
55308
55309         [BZ #14888]
55310         * time/Makefile (tests): Add tst-strptime-whitespace.
55311         * time/strptime_l.c (get_number): Use ISSPACE.
55312         (__strptime_internal): Likewise.
55313         * time/tst-strptime-whitespace.c: New test case.
55314
55315 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
55316
55317         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
55318         member.
55319         (_nss_files_init): Set it here.
55320
55321 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
55322
55323         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
55324         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
55325         unsigned.
55326
55327 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
55328
55329         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
55330
55331 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
55332
55333         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
55334         size just once.
55335
55336 2013-04-21  David S. Miller  <davem@davemloft.net>
55337
55338         * po/ru.po: Update Russion translation from translation project.
55339
55340 2013-04-17  Adam Conrad  <adconrad@0c3.net>
55341
55342         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
55343         and setfsgid.
55344
55345 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
55346
55347         * configure.in: Remove i386 configure warning. Remove i386 case.
55348         * configure: Regenerate.
55349         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
55350         Add example to error message.
55351         * sysdeps/i386/configure: Regenerate.
55352
55353 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
55354
55355         * benchtests/Makefile (bench): Add cos, tan, slowcos and
55356         slowtan.
55357         * benchtests/cos-inputs: New file.
55358         * benchtests/slowcos-inputs: New file.
55359         * benchtests/slowcos.c: New file.
55360         * benchtests/slowtan-inputs: New file.
55361         * benchtests/slowtan.c: New file.
55362         * benchtests/tan-inputs: New file.
55363
55364 2013-04-16  Roland McGrath  <roland@hack.frob.com>
55365
55366         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
55367         considered kosher.
55368
55369 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
55370
55371         * benchtests/Makefile: Include cppflags-iterator.mk to add
55372         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
55373
55374         * Makefile.in (bench-clean): New target.
55375         * benchtests/Makefile (bench-clean): Likewise.
55376
55377 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
55378
55379         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
55380
55381 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
55382
55383         * stdio-common/tstdiomisc.c: Fix coding-style violation.
55384
55385 2013-04-15  Andreas Schwab  <schwab@suse.de>
55386
55387         * nscd/grpcache.c (cache_addgr): Properly check for short write.
55388         * nscd/initgrcache.c (addinitgroupsX): Likewise.
55389         * nscd/pwdcache.c (cache_addpw): Likewise.
55390         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
55391         more than recsize.
55392
55393 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55394
55395         * benchtests/Makefile (bench): Write all output to
55396         bench-out.tmp together.
55397
55398 2013-04-15  Andreas Schwab  <schwab@suse.de>
55399
55400         * nscd/nscd.c (main): Don't fork again after closing files.
55401
55402 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
55403
55404         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
55405
55406         * benchtests/Rules (bench-deps): Collect dependencies into a
55407         single variable.  Add Makefile to dependencies.
55408         ($(objpfx)bench-%.c): Depend on bench-deps.
55409
55410 2013-04-12  Roland McGrath  <roland@hack.frob.com>
55411             Xavier Roche  <roche+kml2@exalead.com>
55412
55413         [BZ #15361]
55414         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
55415         just that it's a file descriptor.
55416         * manual/llio.texi (Synchronizing AIO Operations): Update description
55417         for EBADF error from aio_fsync.
55418
55419 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
55420
55421         * Rules (bench): Move target definition...
55422         * benchtests/Makefile: ... here.
55423
55424 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
55425
55426         * math/libm-test.inc (cos_test): Fix PI/2 test.
55427         (sincos_test): Likewise.
55428         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
55429         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
55430
55431 2013-04-11  Andreas Schwab  <schwab@suse.de>
55432
55433         [BZ #13988]
55434         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
55435         accept exponent character only when digits were seen.
55436         * stdio-common/Makefile (tests): Add bug26.
55437         * stdio-common/bug26.c: New file.
55438
55439         [BZ #14293]
55440         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
55441         non-freeable.
55442
55443 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
55444
55445         * Makeconfig (rtld-prefix): Define built linker prefix.
55446         * Rules (run-bench): Use it.
55447         * math/Makefile (run-regen-ulps): Likewise.
55448
55449         * Rules (bench): Remove eval.
55450
55451 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
55452             Roland McGrath  <roland@hack.frob.com>
55453             Ondrej Bilka  <neleai@seznam.cz>
55454
55455         [BZ #15346]
55456         * time/getdate.c: Include ctype.h and alloca.h.
55457         (__getdate_r): Trim leading and trailing spaces of input.
55458         * time/tst-getdate.c (tests): Add tests with leading and
55459         trailing spaces.
55460
55461 2013-04-08  Roland McGrath  <roland@hack.frob.com>
55462
55463         [BZ #14280]
55464         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
55465         when computing value.
55466
55467 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55468
55469         * math/README.libm-test (How can I generate "libm-test-ulps"?):
55470         Use testrun.sh to run libm tests.
55471
55472         [BZ #15309]
55473         * elf/dl-open.c (dl_open_worker): memset all of seen array.
55474
55475 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
55476
55477         [BZ #15264]
55478         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
55479
55480 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55481
55482         * Makefile.in (regen-ulps): New target.
55483         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
55484         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
55485         [ifneq (no,$(PERL)] (regen-ulps): New target.
55486         [ifeq (no,$(PERL)] (regen-ulps): New target.
55487         * math/libm-test.inc (ulps_file_name): Define.
55488         (output_dir): New variable.
55489         (options): Add "output-dir" option.
55490         (parse_opt): Handle 'o' case.
55491         (main): If output_dir is non-NULL use it as a prefix
55492         otherwise use "".
55493         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
55494
55495 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55496
55497         [BZ #10060, #10062]
55498         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
55499         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
55500         fail configure if __sync_val_compare_and_swap is not inlined.
55501         * sysdeps/i386/configure: Regenerate.
55502         * configure.in: Build for i686 when configured for i386.
55503         * configure: Regenerate.
55504         * README: Remove i386 reference.
55505
55506 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
55507
55508         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
55509         * sysdeps/s390/s390-64/sysdep.h: Likewise.
55510
55511 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
55512
55513         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
55514         (lmsnanval): New variables.
55515         (F): Add conversion tests.
55516         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
55517         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
55518
55519         * stdio-common/tstdiomisc.c (F): Properly collect individual
55520         tests' results.
55521
55522         [BZ #14686, #15336]
55523         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
55524         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
55525         Instead, use input NaN values or generate a qNaN by arithmetic
55526         operation.  Also fix bugs to comply with the standard.
55527         * math/libm-test.inc (remainder_test): Add more tests.
55528
55529         [BZ #15335, #15342]
55530         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
55531         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
55532         input NaN values or generate a qNaN by arithmetic operation.
55533
55534         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
55535         unreachable code.
55536
55537         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
55538         definitions.
55539
55540 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
55541
55542         [BZ #14478]
55543         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
55544         underflowed result.
55545         * math/s_cexpf.c (__cexpf): Likewise.
55546         * math/s_cexpl.c (__cexpl): Likewise.
55547         * math/libm-test.inc (cexp_test): Add more tests.
55548
55549 2013-04-03  Andreas Schwab  <schwab@suse.de>
55550
55551         [BZ #15330]
55552         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
55553         order arrays from heap if bigger than alloca cutoff.
55554
55555 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
55556
55557         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
55558         (SNAN_TESTS_double): Refer to GCC PR56831.
55559         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
55560         GCC PR56828.
55561
55562 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55563
55564         * Rules (bench): Move bench.out after the run is complete.
55565
55566         * Rules (bench): Echo currently running benchmark.
55567
55568         * benchtests/Makefile (bench): Add atan and slowatan.
55569         * benchtests/atan-inputs: New file.
55570         * benchtests/slowatan-inputs: New file.
55571         * benchtests/slowatan.c: New file.
55572
55573         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
55574         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
55575         its value.
55576
55577         [BZ #15305]
55578         * sysdeps/unix/sysv/linux/kernel-features.h
55579         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
55580         __ASSUME_XFS_RESTRICTED_CHOWN.
55581         * sysdeps/unix/sysv/linux/pathconf.c
55582         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
55583         Save and restore errno.
55584
55585 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
55586
55587         [BZ #15327]
55588         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
55589         arguments using __kernel_casinh.
55590         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
55591         arguments using __kernel_casinhf.
55592         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
55593         arguments using __kernel_casinhl.
55594         * math/libm-test.inc (cacosh_test): Add more tests.
55595         * sysdeps/i386/fpu/libm-test-ulps: Update.
55596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55597
55598 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55599
55600         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
55601         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
55602
55603         * bench/Makefile (bench): Add sin and slowsin.
55604         * benchtests/sin-inputs: New file.
55605         * benchtests/slowsin-inputs: New file.
55606         * benchtests/slowsin.c: New file.
55607
55608         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
55609         (bench): Add slowexp and slowpow.
55610         (exp-ITER): Increase iterations.
55611         (pow-ITER): Likewise.
55612         * benchtests/exp-inputs: Change input.
55613         * benchtests/pow-inputs: Likewise.
55614         * benchtests/slowexp-inputs: New file.
55615         * benchtests/slowexp.c: New file.
55616         * benchtests/slowpow-inputs: New file.
55617         * benchtests/slowpow.c: New file.
55618
55619 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55620
55621         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
55622         instructions.
55623         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
55624         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
55625         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
55626         * benchtests/Makefile: Add rint benchtest.
55627         * benchtests/rint-inputs: Input for rint benchtest.
55628
55629 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
55630
55631         * Versions.def (libm): Add GLIBC_2.18.
55632         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
55633         hidden libm prototypes.
55634         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
55635         * math/Makefile (libm-calls): Add s_issignaling.
55636         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
55637         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
55638         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
55639         declaration.
55640         * math/math.h [__USE_GNU] (issignaling): New macro.
55641         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
55642         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
55643         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
55644         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
55645         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
55646         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
55647         * manual/arith.texi (issignaling): New section.
55648         * manual/libm-err-tab.pl (@all_functions): Update comment.
55649         * math/gen-libm-test.pl (parse_args): Apply special handling for
55650         issignaling.
55651         * math/libm-test.inc (print_float, issignaling_test): New
55652         functions.
55653         (check_float_internal): Add issignaling checks.
55654         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
55655         default definition.
55656         * sysdeps/powerpc/math-tests.h: New file.
55657         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
55658         tests.
55659         * math/test-snan.c (TEST_FUNC): Likewise.
55660
55661 2013-03-30  David S. Miller  <davem@davemloft.net>
55662
55663         * po/de.po: Update from translation team.
55664
55665 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
55666
55667         [BZ #10357]
55668         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55669         imaginary part less than 1.0 and real part less than 0.5
55670         specially.
55671         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55672         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55673         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
55674         (cacos_test): Add more tests.
55675         (casin_test): Likewise.
55676         (casinh_test): Likewise.
55677         * sysdeps/i386/fpu/libm-test-ulps: Update.
55678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55679
55680 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55681
55682         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
55683         ONE with its value.
55684
55685         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
55686         (__pow_mp): Replace ONE and MONE with their values.
55687         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55688         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
55689         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55690         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
55691         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55692         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55693
55694         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
55695
55696         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
55697         (__pow_mp): Replace ZERO and MZERO with their values.
55698         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55699         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55700         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
55701         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
55702         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55703         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
55704         (__sqr): Likewise.
55705
55706         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
55707
55708         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
55709
55710 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55711
55712         * include/stdlib.h [!SHARED] (__call_tls_dtors):
55713         Declare with __attribute__ ((weak)).
55714         * stdlib/exit.c (__libc_atexit) [!SHARED]:
55715         Call __call_tls_dtors only if it's not NULL.
55716
55717 2013-03-28  Roland McGrath  <roland@hack.frob.com>
55718
55719         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
55720         didn't do it already, then set _dl_phdr and _dl_phnum based on the
55721         magic __ehdr_start linker symbol if it's defined.
55722         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
55723         them up here if it was already done.
55724
55725         * elf/dl-support.c (_dl_phdr): Make pointer to const.
55726         (_dl_aux_init): Use const in cast when setting it.
55727         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
55728         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
55729         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
55730
55731         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
55732         Declare them here.
55733         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
55734         * csu/libc-tls.c: Nor here.
55735         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
55736
55737         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
55738         (__libc_message): Never call vsyslog.
55739
55740 2013-03-28  Alan Modra  <amodra@gmail.com>
55741
55742         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
55743         Define as empty.
55744         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
55745         Likewise.
55746
55747 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55748
55749         [BZ #15214]
55750         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
55751         underflow.
55752         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55753
55754 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55755
55756         [BZ #15304]
55757         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
55758         Don't add gid passed as argument.
55759
55760         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
55761
55762 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
55763
55764         [BZ #15307]
55765         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55766         imaginary part between 1.0 and 1.5 and real part less than 0.5
55767         specially.
55768         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55769         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55770         * math/libm-test.inc (cacos_test): Add more tests.
55771         (casin_test): Likewise.
55772         (casinh_test): Likewise.
55773         * sysdeps/i386/fpu/libm-test-ulps: Update.
55774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55775
55776 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
55777
55778         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
55779         constants.
55780         (norm): Likewise.
55781         (denorm): Likewise.
55782         (__dbl_mp): Likewise.
55783         (add_magnitudes): Likewise.
55784         (sub_magnitudes): Likewise.
55785         (__add): Likewise.
55786         (__sub): Likewise.
55787         (__mul): Likewise.
55788         (__sqr): Likewise.
55789         (__inv): Likewise.
55790         (__dvd): Likewise.
55791
55792         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
55793         commented code.
55794         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
55795         (__dubcos): Likewise.
55796         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
55797         (__ieee754_acos): Likewise.
55798         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
55799         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
55800         (__exp1): Likewise.
55801         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
55802         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
55803         (log1): Likewise.
55804         (my_log2): Likewise.
55805         (checkint): Likewise.
55806         * sysdeps/ieee754/dbl-64/e_remainder.c
55807         (__ieee754_remainder): Likewise.
55808         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
55809         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
55810         (bsloww): Likewise.
55811         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
55812
55813         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
55814         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
55815         MANTISSA_STORE_T to store computations on mantissa.  Use
55816         macros for rounding and division.
55817         (denorm): Likewise.
55818         (__dbl_mp): Likewise.
55819         (add_magnitudes): Likewise.
55820         (sub_magnitudes): Likewise.
55821         (__mul): Likewise.
55822         (__sqr): Likewise.
55823         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
55824         powers of two in terms of TWOPOW macro.
55825         (mp_no): Make type of mantissa as MANTISSA_T.
55826         [!RADIXI]: Define RADIXI.
55827         [!TWO52]: Define TWO52.
55828         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
55829
55830 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55831
55832         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
55833         llroundl symbol when building for PPC32.
55834
55835 2013-03-24  Mark H Weaver  <mhw@netris.org>
55836
55837         * manual/arith.texi (Normalization Functions): Fix prototypes for
55838         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
55839
55840 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55841
55842         [BZ #13889]
55843         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
55844         high value to check if expl overflow.
55845         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
55846         to check for underflow and overflow.
55847         * math/libm-test.inc: Add exp test.
55848
55849 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
55850
55851         [BZ #11120]
55852         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
55853         with NOT_IN_libc.
55854
55855 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55856
55857         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
55858         symbol.
55859
55860 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
55861
55862         * math/gen-libm-test.pl (parse_args, special_functions): Properly
55863         wrap blocks consisting of several statements.
55864
55865         * sysdeps/generic/math-tests.h: New file.
55866         * sysdeps/i386/fpu/math-tests.h: Likewise.
55867         * math/test-snan.c: Include it.
55868         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
55869
55870 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
55871
55872         [BZ #15285]
55873         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
55874         (__ieee754_j0l): Do not improve calculations using cos of twice
55875         input for inputs above LDBL_MAX / 2.0L.
55876         (__ieee754_y0l): Likewise.
55877         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
55878         (__ieee754_j1l): Do not improve calculations using cos of twice
55879         input for inputs above LDBL_MAX / 2.0L.
55880         (__ieee754_y1l): Likewise.
55881         * math/libm-test.inc (j0_test): Add another test.
55882         (j1_test): Likewise.
55883         (y0_test): Likewise.
55884         (y1_test): Likewise.
55885         * sysdeps/i386/fpu/libm-test-ulps: Update.
55886
55887 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
55888
55889         * Rules ($(objpfx)bench-%.c): Include code from a C source
55890         file.
55891
55892 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
55893
55894         [BZ #15287]
55895         * math/k_casinh.c (__kernel_casinh): Handle arguments with
55896         imaginary part 1.0 and real part less than 0.5 specially.
55897         * math/k_casinhf.c (__kernel_casinhf): Likewise.
55898         * math/k_casinhl.c (__kernel_casinhl): Likewise.
55899         * math/libm-test.inc (cacos_test): Add more tests.
55900         (casin_test): Likewise.
55901         (casinh_test): Likewise.
55902         * sysdeps/i386/fpu/libm-test-ulps: Update.
55903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55904
55905 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
55906
55907         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
55908         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
55909
55910 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
55911
55912         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
55913         * config.make.in (config-cflags-sse4): Remove variable.
55914         (config-cflags-avx): Likewise.
55915         (config-cflags-sse2avx): Likewise.
55916         (config-cflags-novzeroupper): Likewise.
55917         (config-asflags-i686): Likewise.
55918         (have-mfma4): Likewise.
55919         (have-as-vis3): Likewise.
55920         (MIG): Likewise.
55921         * configure.in (MIG): Do not AC_SUBST.
55922         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
55923         (libc_cv_cc_sse4): Do not AC_SUBST.
55924         (libc_cv_cc_avx): Likewise.
55925         (libc_cv_cc_sse2avx): Likewise.
55926         (libc_cv_cc_novzeroupper): Likewise.
55927         (libc_cv_cc_fma4): Likewise.
55928         (libc_cv_as_i686): Likewise.
55929         (libc_cv_sparc_as_vis3): Likewise.
55930         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
55931         LIBC_CONFIG_VAR.
55932         (config-asflags-i686): Likewise.
55933         (config-cflags-avx): Likewise.
55934         (config-cflags-sse2avx): Likewise.
55935         (have-mfma4): Likewise.
55936         (config-cflags-novzeroupper): Likewise.
55937         * sysdeps/mach/configure.in (MIG): Likewise.
55938         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
55939         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
55940         LIBC_CONFIG_VAR.
55941         (config-cflags-avx): Likewise.
55942         (config-cflags-sse2avx): Likewise.
55943         (have-mfma4): Likewise.
55944         (config-cflags-novzeroupper): Likewise.
55945         * configure: Regenerated.
55946         * sysdeps/i386/configure: Likewise.
55947         * sysdeps/mach/configure: Likewise.
55948         * sysdeps/sparc/configure: Likewise.
55949         * sysdeps/x86_64/configure: Likewise.
55950
55951 2013-03-20  Roland McGrath  <roland@hack.frob.com>
55952
55953         [BZ #14812]
55954         * locale/programs/localedef.c (options): Put N_ translation marker
55955         on argument names, not just descriptions.
55956
55957 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55958
55959         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
55960
55961 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
55962
55963         [BZ #14176]
55964         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
55965
55966 2013-03-19  Roland McGrath  <roland@hack.frob.com>
55967
55968         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
55969         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
55970         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
55971         [!BEFORE_ABORT] (before_abort): New function.
55972         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
55973         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
55974         (writev_for_fatal): New function.
55975         (WRITEV_FOR_FATAL): New macro; call that.
55976         (backtrace_and_maps): New function.
55977         (BEFORE_ABORT): New macro; call that.
55978         (struct str_list): Type removed.
55979         (__libc_message, __libc_fatal): Functions removed.
55980         Include <sysdeps/posix/libc_fatal.c> instead.
55981
55982 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
55983
55984         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
55985         constants.
55986         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
55987         double constants.
55988
55989 2013-03-19  Andreas Schwab  <schwab@suse.de>
55990
55991         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
55992         * sysdeps/gnu/configure: Regenerate.
55993
55994         * configure.in: Substitute libc_cv_rtlddir.
55995         * configure: Regenerate.
55996         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
55997         * Makeconfig (rtlddir, inst_rtlddir): New variables.
55998         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
55999         * elf/Makefile (install-others, CFLAGS-interp.c)
56000         (ldso_install, common-ldd-rewrite): Likewise.
56001         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
56002         $(inst_slibdir)/$(rtld-installed-name).
56003         * scripts/rellns-sh: Add -p option.
56004         * Makerules (make-shlib-link): Use rellns-sh to get relative name
56005         for source.
56006
56007 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
56008
56009         * manual/nptl.texi: Renamed to ...
56010         * manual/threads.texi: ... this.
56011         * manual/Makefile (chapters): Update.
56012
56013 2013-03-18  Roland McGrath  <roland@hack.frob.com>
56014
56015         [BZ #14812]
56016         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
56017         on argument names, not just descriptions.
56018         * malloc/memusagestat.c (options): Likewise.
56019         * nss/getent.c (options): Likewise.
56020
56021 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
56022
56023         [BZ #14812]
56024         * iconv/iconv_prog.c (options): Put N_ translation marker
56025         on argument names, not just descriptions.
56026         * iconv/iconvconfig.c (options): Likewise.
56027
56028 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
56029
56030         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
56031         implementation which is faster on all x86_64 architectures.
56032         Tested on AMD, Intel Nehalem, SNB, IVB.
56033         * sysdeps/x86_64/strnlen.S: Likewise.
56034
56035         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
56036         Remove all multiarch strlen and strnlen versions.
56037         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
56038         Remove strlen and strnlen related parts.
56039
56040         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
56041         Inline strlen part.
56042         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
56043
56044         * sysdeps/x86_64/multiarch/strlen.S: Remove.
56045         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
56046         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
56047         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
56048         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56049         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
56050
56051 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
56052
56053         * manual/memory.texi (Malloc Tunable Parameters):
56054         Sort parameters alphabetically. Add comments for missing entries.
56055
56056 2013-03-17  David S. Miller  <davem@davemloft.net>
56057
56058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56059
56060 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
56061
56062         [BZ #15283]
56063         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
56064         for arguments at most half maximum finite value.
56065         * math/libm-test.inc (j0_test): Add more tests.
56066         (j1_test): Likewise.
56067         (y0_test): Likewise.
56068         (y1_test): Likewise.
56069         * sysdeps/i386/fpu/libm-test-ulps: Update.
56070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
56071
56072         [BZ #14155]
56073         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
56074         1 / x and functions P and Q for arguments above 0x1p256L.
56075         (__ieee754_y0l): Likewise.
56076         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
56077         (__ieee754_y1l): Likewise.
56078         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
56079         (j1_test): Likewise.
56080         (y0_test): Likewise.
56081         (y1_test): Likewise.
56082
56083 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
56084
56085         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
56086         variable.
56087
56088 2013-03-15  Roland McGrath  <roland@hack.frob.com>
56089
56090         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
56091         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
56092         zero since it's initialized to EXEC_PAGESIZE.
56093
56094         * sysdeps/unix/sysv/linux/ldsodefs.h
56095         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
56096         * sysdeps/generic/ldsodefs.h: ... here.
56097
56098 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
56099
56100         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
56101
56102         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
56103         math/test-snan.c.
56104         * math/test-snan.c: Renamed from
56105         sysdeps/powerpc/fpu/test-powerpc-snan.c.
56106         * math/Makefile (tests): Add test-snan.
56107         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
56108         test-powerpc-snan.
56109
56110         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
56111         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
56112         functions.
56113         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
56114         __builtin_nan family of functions.
56115         * math/libm-test.inc (initialize): Initialize qnan_value with
56116         __builtin_nan family of functions.
56117         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
56118         Remove variables.
56119         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
56120         Remove functions.
56121         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
56122         storage class.  Initialize qNaN_var and sNaN_var with
56123         __builtin_nan and __builtin_nans families of functions,
56124         respectively.
56125
56126         * math/libm-test.inc (acosh_test): Also test with qNaN input.
56127         (sqrt_test): Remove duplicate test with qNaN input.
56128         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
56129         (round_test, signbit_test, significand_test): Note missing +/-Inf
56130         as well as qNaN tests.
56131
56132         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
56133         qNaN_var.  Fix a few strings, too.
56134         * math/libm-test.inc (nan_value): Rename to qnan_value.
56135         * math/gen-libm-test.pl (%beautify): Adjust to that.
56136         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
56137         * math/test-misc.c (main): Likewise.
56138         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
56139         to __qnan_bytes, and __qnan_union, respectively.
56140         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
56141         Likewise.
56142         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
56143         and lqnanval, respectively.
56144         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
56145         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
56146         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
56147         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
56148
56149         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
56150         * math/test-misc.c (main) [__x86_64__]: Enable test for long
56151         doubles.
56152
56153         * math/test-misc.c (main): Fix copy'n'pastos.
56154         * misc/tst-efgcvt.c (special): Likewise.
56155
56156         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
56157         Remove declarations.
56158
56159 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56160
56161         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
56162         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
56163         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
56164         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
56165
56166 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56167
56168         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
56169         macro to return vdso values correctly in IFUNC implementations.
56170         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
56171         Optimization by using IFUNC.
56172
56173 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56174             Richard Henderson  <rth@redhat.com>
56175             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56176
56177         * Makefile.in (bench): New target.
56178         * NEWS: Mention the benchmark framework.
56179         * Rules (bench): Likewise.
56180         (binaries-bench): Generate binaries for functions to
56181         benchmark.
56182         * benchtests/Makefile: New makefile for benchmark tests.
56183         * benchtests/bench-skeleton.c: New skeleton file for benchmark
56184         programs.
56185         * benchtests/exp-inputs: New input file for EXP function.
56186         * benchtests/pow-inputs: New input file for POW function.
56187         * scripts/bench.pl: New script to generate source files for
56188         benchmark programs.
56189
56190 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
56191
56192         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
56193         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
56194         computations on mantissa.  Use macros for rounding and
56195         division.
56196         (denorm): Likewise.
56197         (__dbl_mp): Likewise.
56198         (add_magnitudes): Likewise.
56199         (sub_magnitudes): Likewise.
56200         (__mul): Likewise.
56201         (__sqr): Likewise.
56202         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
56203         powers of two in terms of TWOPOW macro.
56204         (mp_no): Make type of mantissa as MANTISSA_T.
56205         [!RADIXI]: Define RADIXI.
56206         [!TWO52]: Define TWO52.
56207         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
56208
56209         * manual/nptl.texi (cindex): Modify threads to pthreads.
56210
56211 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
56212
56213         * sysdeps/x86_64/preconfigure: Regenerated.
56214
56215 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
56216
56217         [BZ #14155]
56218         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
56219         0x1p28 and above.
56220         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
56221         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
56222         0x1p28 and above.
56223         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
56224         * math/libm-test.inc (j0_test): Do not allow one spurious
56225         underflow exception.
56226         (y1_test): Likewise.
56227
56228 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
56229
56230         * manual/Makefile (chapters): Add nptl.
56231         * manual/debug.texi (Debugging Support): Add link to Threads
56232         chapter.
56233         * manual/nptl.texi: New file.
56234
56235         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
56236
56237 2013-03-14  Petr Baudis  <pasky@ucw.cz>
56238
56239         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
56240         for non-NULL pointer before the memory validity test. Pointed
56241         out by Holger Brunck <holger.brunck@keymile.com>.
56242
56243 2013-03-13  Andreas Schwab  <schwab@suse.de>
56244
56245         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
56246         instead of .os.
56247
56248 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
56249
56250         * timezone/zic.c: Update from tzcode 2013b.
56251
56252 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
56253
56254         * manual/install.texi (Configuring and compiling):
56255         Mention i686 and i586.
56256         * INSTALL: Regenerate.
56257
56258 2013-03-12  Roland McGrath  <roland@hack.frob.com>
56259
56260         * sysdeps/init_array/elf-init.c: New file.
56261         * csu/elf-init.c
56262         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
56263         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
56264
56265         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
56266         __gmon_start__ as global, but as static with a .preinit_array pointer.
56267         * sysdeps/init_array/gmon-start.c: New file.  Use that.
56268         * sysdeps/init_array/crti.S: New file, empty except for comments.
56269         * sysdeps/init_array/crtn.S: Likewise.
56270
56271 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
56272
56273         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
56274         definining bcopy.
56275         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56276         Remove Prefer_SSE_for_memop.
56277         * sysdeps/x86_64/multiarch/init-arch.h: Remove
56278         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
56279         HAS_PREFER_SSE_FOR_MEMOP.
56280         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
56281         memset-x86-64.
56282         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
56283         Remove bzero, memset ifunc support.
56284         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
56285         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
56286         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56287         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56288
56289 2013-03-11  Andreas Schwab  <schwab@suse.de>
56290
56291         [BZ #15234]
56292         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
56293         by SHLIB_COMPAT.
56294         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
56295         (GLIBC_2.16): Remove pthread_atfork.
56296
56297 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
56298
56299         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
56300         (ptestcases.h): Likewise.
56301
56302 2013-03-08  Roland McGrath  <roland@hack.frob.com>
56303
56304         * Makeconfig ($(common-objpfx)config.status): Depend on
56305         sysdeps/*/preconfigure{,.in} too.
56306
56307 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
56308
56309         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
56310         (__free_hook): Use void * instead of __malloc_ptr_t.
56311         (__malloc_hook): Likewise.
56312         (__realloc_hook): Likewise.
56313         (__memalign_hook): Likewise.
56314         (__after_morecore_hook): Likewise.
56315         * malloc/arena.c (save_malloc_hook): Likewise.
56316         (save_free_hook): Likewise.
56317         * malloc/hooks.c (malloc_hook_ini): Likewise.
56318         (realloc_hook_ini): Likewise.
56319         (memalign_hook_ini): Likewise.
56320         * malloc/malloc.c (malloc_hook_ini): Likewise.
56321         (realloc_hook_ini): Likewise.
56322         (memalign_hook_ini): Likewise.
56323         (__free_hook): Likewise.
56324         (__malloc_hook): Likewise.
56325         (__realloc_hook): Likewise.
56326         (__memalign_hook): Likewise.
56327         (__libc_malloc): Likewise.
56328         (__libc_free): Likewise.
56329         (__libc_realloc): Likewise.
56330         (__libc_memalign): Likewise.
56331         (__libc_valloc): Likewise.
56332         (__libc_pvalloc): Likewise.
56333         (__libc_calloc): Likewise.
56334         (__posix_memalign): Likewise.
56335         * malloc/morecore.c (__sbrk): Likewise.
56336         (__default_morecore): Likewise.
56337
56338         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
56339
56340         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
56341         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
56342         __malloc_ptrdiff_t.
56343
56344         * malloc/malloc.h (__malloc_size_t): Remove macro.
56345         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
56346         __malloc_size_t.
56347         (old_memalign_hook): Likewise.
56348         (old_realloc_hook): Likewise.
56349         (struct hdr): Likewise.
56350         (flood): Likewise.
56351         (mallochook): Likewise.
56352         (memalignhook): Likewise.
56353         (reallochook): Likewise.
56354         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
56355         (tr_old_realloc_hook): Likewise.
56356         (tr_old_memalign_hook): Likewise.
56357         (tr_mallochook): Likewise.
56358         (tr_reallochook): Likewise.
56359         (tr_memalignhook): Likewise.
56360
56361 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56362
56363         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
56364         default_ldbl_pack and using as default implementation.
56365         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
56366         implementation.
56367         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
56368         redundant definition.
56369         (ldbl_insert_mantissa): Likewise.
56370         (ldbl_canonicalize): Likewise.
56371         (ldbl_nearbyint): Likewise.
56372         (ldbl_pack): Rename to ldbl_pack_ppc.
56373         (ldbl_unpack): Rename to ldbl_unpack_ppc.
56374         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
56375         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
56376
56377 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
56378
56379         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
56380         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
56381         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
56382         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
56383         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
56384         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
56385         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
56386         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
56387
56388 2013-03-07  Andreas Jaeger  <aj@suse.de>
56389
56390         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56391         bits/mman-linux.h.
56392
56393 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
56394
56395         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
56396         Include mpa.h and declare __MPEXP.
56397         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
56398         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56399         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56400         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
56401         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56402         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
56403         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
56404
56405         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
56406         (__slowpow): Use long double EXPL and LOGL functions to
56407         compute POW.
56408         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
56409         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56410         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
56411         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
56412         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
56413         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
56414
56415         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
56416         intermediate variable to calculate exponent.
56417         (__sqr): Likewise.
56418         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
56419         Likewise.
56420         (__sqr): Likewise.
56421
56422         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
56423         [!NO__SQR]: Define __sqr.
56424         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
56425         and NO__SQR.  Remove all code except __mul and __sqr.  Include
56426         sysdeps/ieee754/dbl-64/mpa.c.
56427         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
56428
56429         [BZ #12723]
56430         * posix/Makefile (tests): Add tst-pathconf.
56431         * posix/tst-pathconf.c: New test case.
56432         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
56433         _PC_PIPE_BUF.
56434         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
56435
56436 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
56437
56438         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
56439
56440 2013-03-06  Andreas Jaeger  <aj@suse.de>
56441
56442         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
56443         definition via __MAP_ANONYMOUS.
56444
56445         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
56446         it's not part of Linux headers.
56447
56448         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
56449         (MAP_HUGE_MASK): Define.
56450
56451         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56452         Define.
56453         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56454         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56455         Define.
56456         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56457         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
56458         Define.
56459         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56460         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
56461         Define.
56462         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
56463
56464         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
56465         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
56466         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
56467         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
56468         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
56469         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
56470
56471         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
56472         Handle f2fs.
56473
56474         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
56475         Handle f2fs and efivarfs.
56476
56477         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
56478         f2fs.
56479
56480         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
56481         (EFIVARFS_MAGIC): Add.
56482         (F2FS_LINK_MAX): Add.
56483
56484 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
56485
56486         * stdio-common/vfprintf.c: Replace __builtin_expect with
56487         __glibc_unlikely.
56488
56489 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
56490
56491         [BZ #13550]
56492         * sysdeps/generic/bp-sym.h: Remove file.
56493         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
56494         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
56495         <bp-sym.h> and <bp-asm.h>.
56496         (__longjmp): Don't use BP_SYM.
56497         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
56498         and <bp-asm.h>.
56499         (memcpy): Don't use BP_SYM.
56500         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
56501         <bp-sym.h> and <bp-asm.h>.
56502         (memcpy): Don't use BP_SYM.
56503         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
56504         <bp-asm.h>.
56505         (memcpy): Don't use BP_SYM.
56506         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
56507         <bp-asm.h>.
56508         (memset): Don't use BP_SYM.
56509         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56510         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56511         (__bzero): Don't use BP_SYM.
56512         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56513         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56514         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
56515         <bp-sym.h> and <bp-asm.h>.
56516         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56517         pointers.
56518         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
56519         <bp-sym.h> and <bp-asm.h>.
56520         (memcpy): Don't use BP_SYM.
56521         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
56522         <bp-sym.h> and <bp-asm.h>.
56523         (memset): Don't use BP_SYM.
56524         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56525         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56526         (__bzero): Don't use BP_SYM.
56527         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56528         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56529         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
56530         <bp-sym.h> and <bp-asm.h>.
56531         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56532         pointers.
56533         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
56534         <bp-sym.h> and <bp-asm.h>.
56535         (memcpy): Don't use BP_SYM.
56536         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
56537         <bp-sym.h> and <bp-asm.h>.
56538         (memset): Don't use BP_SYM.
56539         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56540         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56541         (__bzero): Don't use BP_SYM.
56542         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56543         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56544         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
56545         <bp-sym.h> and <bp-asm.h>.
56546         (__memchr): Don't use BP_SYM.
56547         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
56548         <bp-sym.h> and <bp-asm.h>.
56549         (memcmp): Don't use BP_SYM.  Remove comment about bounded
56550         pointers.
56551         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
56552         <bp-sym.h> and <bp-asm.h>.
56553         (memcpy): Don't use BP_SYM.
56554         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
56555         <bp-sym.h> and <bp-asm.h>.
56556         (__mempcpy): Don't use BP_SYM.
56557         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
56558         <bp-sym.h> and <bp-asm.h>.
56559         (__memrchr): Don't use BP_SYM.
56560         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
56561         <bp-sym.h> and <bp-asm.h>.
56562         (memset): Don't use BP_SYM.
56563         (__bzero): Likewise.
56564         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
56565         <bp-sym.h> and <bp-asm.h>.
56566         (__rawmemchr): Don't use BP_SYM.
56567         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
56568         <bp-sym.h> and <bp-asm.h>.
56569         (__STRCMP): Don't use BP_SYM.
56570         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
56571         <bp-sym.h> and <bp-asm.h>.
56572         (strchr): Don't use BP_SYM.
56573         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
56574         <bp-sym.h> and <bp-asm.h>.
56575         (__strchrnul): Don't use BP_SYM.
56576         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
56577         <bp-sym.h> and <bp-asm.h>.
56578         (strlen): Don't use BP_SYM.
56579         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
56580         <bp-sym.h> and <bp-asm.h>.
56581         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56582         pointers.
56583         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
56584         <bp-sym.h> and <bp-asm.h>.
56585         (__strnlen): Don't use BP_SYM.
56586         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
56587         <bp-sym.h> and <bp-asm.h>.
56588         (__GI__setjmp): Don't use BP_SYM.
56589         (_setjmp): Likewise.
56590         (__sigsetjmp): Likewise.
56591         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
56592         (L(start_addresses)): Don't use BP_SYM.
56593         (_start): Likewise.
56594         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
56595         <bp-asm.h>.
56596         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
56597         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
56598         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56599         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56600         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
56601         <bp-asm.h>.
56602         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
56603         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
56604         about bounded pointers.
56605         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56606         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56607         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
56608         <bp-asm.h>.
56609         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56610         about bounded pointers.  Remove GKM FIXME comments.
56611         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56612         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
56613         <bp-asm.h>.
56614         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
56615         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
56616         Remove GKM FIXME comments.
56617         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56618         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56619         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
56620         <bp-asm.h>.
56621         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
56622         about bounded pointers.  Remove GKM FIXME comment.
56623         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
56624         and <bp-asm.h>.
56625         (strncmp): Don't use BP_SYM.  Remove comment about bounded
56626         pointers.
56627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
56628         <bp-sym.h> and <bp-asm.h>.
56629         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
56631         <bp-sym.h> and <bp-asm.h>.
56632         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56633         comment.
56634
56635 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
56636
56637         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
56638         call free(NULL).
56639
56640 2013-03-05  David S. Miller  <davem@davemloft.net>
56641
56642         * po/es.po: Update from translation team.
56643
56644 2013-03-05  Andreas Jaeger  <aj@suse.de>
56645
56646         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
56647         <bits/mman-linux.h>.
56648         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56649         is fine.
56650         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
56651         <bits/mman-linux.h> to end of file.
56652         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56653         is fine.
56654         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
56655         <bits/mman-linux.h> to end of file.
56656         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
56657         is fine.
56658         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
56659         <bits/mman-linux.h> to end of file.
56660
56661         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
56662         (MCL_CURRENT, MCL_FUTURE): Define here.
56663
56664 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56665
56666         [BZ #15232]
56667         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
56668         attribute_hidden.
56669         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
56670
56671 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
56672
56673         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
56674         fourth parameter needed for rt_sigprocmask syscall.
56675         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
56676         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
56677         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
56678         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
56679         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
56680         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
56681
56682 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
56683
56684         [BZ #13550]
56685         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
56686         comment about bounded pointers.
56687         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
56688         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
56689
56690 2013-03-04  Andreas Jaeger  <aj@suse.de>
56691
56692         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
56693         common definitions.
56694
56695         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
56696         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
56697         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
56698         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
56699         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
56700         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
56701
56702 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56703
56704         [BZ #15055]
56705         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
56706         __ieee754_sqrl instead of __sqrl.
56707
56708 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
56709
56710         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
56711         * sysdeps/powerpc/fpu_control.h: ... here.
56712         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
56713         * sysdeps/powerpc/bits/fenvinline.h: ... here.
56714         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
56715         * sysdeps/powerpc/bits/mathinline.h: ... here.
56716
56717 2013-03-01  Roland McGrath  <roland@hack.frob.com>
56718
56719         * elf/dl-hwcaps.c (_dl_important_hwcaps):
56720         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
56721         to just [NEED_DL_SYSINFO_DSO].
56722         * elf/dl-support.c: Likewise.
56723         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
56724         * elf/rtld.c (dl_main): Likewise.
56725         * elf/setup-vdso.h (setup_vdso): Likewise.
56726         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
56727         * sysdeps/unix/sysv/linux/dl-sysdep.c
56728         (_dl_discover_osversion): Likewise.
56729
56730 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
56731
56732         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
56733         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56734
56735 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
56736
56737         * NEWS: Mention libm performance improvements and non-x86 PI
56738         futex support.
56739
56740         * csu/libc-start.c (__pthread_initialize_minimal): Change
56741         function arguments.
56742         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
56743
56744 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
56745
56746         [BZ #13550]
56747         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
56748         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
56749         <bp-sym.h> and <bp-asm.h>.
56750         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56751         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
56752         and <bp-asm.h>.
56753         (memcpy): Don't use BP_SYM.
56754         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
56755         <bp-asm.h>.
56756         (__mpn_add_n): Don't use BP_SYM.
56757         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
56758         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
56759         and <bp-asm.h>.
56760         (__mpn_addmul_1): Don't use BP_SYM.
56761         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56762         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
56763         <bp-sym.h>.
56764         (_setjmp): Don't use BP_SYM.
56765         (__novmx_setjmp): Likewise.
56766         (__GI__setjmp): Likewise.
56767         (__vmx_setjmp): Likewise.
56768         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
56769         <bp-sym.h>.
56770         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
56771         (__bzero): Don't use BP_SYM.
56772         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
56773         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
56774         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
56775         <bp-sym.h> and <bp-asm.h>.
56776         (memcpy): Don't use BP_SYM.
56777         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
56778         <bp-sym.h> and <bp-asm.h>.
56779         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56780         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
56781         <bp-sym.h> and <bp-asm.h>.
56782         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
56783         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
56784         <bp-asm.h>.
56785         (__mpn_lshift): Don't use BP_SYM.
56786         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
56787         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
56788         <bp-asm.h>.
56789         (memset): Don't use BP_SYM.
56790         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
56791         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
56792         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
56793         <bp-asm.h>.
56794         (__mpn_mul_1): Don't use BP_SYM.
56795         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56796         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
56797         <bp-sym.h> and <bp-asm.h>.
56798         (memcmp): Don't use BP_SYM.
56799         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
56800         <bp-sym.h> and <bp-asm.h>.
56801         (memcpy): Don't use BP_SYM.
56802         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
56803         <bp-sym.h> and <bp-asm.h>.
56804         (memset): Don't use BP_SYM.
56805         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
56806         <bp-sym.h> and <bp-asm.h>.
56807         (strncmp): Don't use BP_SYM.
56808         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
56809         <bp-sym.h> and <bp-asm.h>.
56810         (memcpy): Don't use BP_SYM.
56811         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
56812         <bp-sym.h> and <bp-asm.h>.
56813         (memset): Don't use BP_SYM.
56814         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
56815         <bp-sym.h> and <bp-asm.h>.
56816         (__memchr): Don't use BP_SYM.
56817         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
56818         <bp-sym.h> and <bp-asm.h>.
56819         (memcmp): Don't use BP_SYM.
56820         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
56821         <bp-sym.h> and <bp-asm.h>.
56822         (memcpy): Don't use BP_SYM.
56823         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
56824         <bp-sym.h> and <bp-asm.h>.
56825         (__mempcpy): Don't use BP_SYM.
56826         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
56827         <bp-sym.h> and <bp-asm.h>.
56828         (__memrchr): Don't use BP_SYM.
56829         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
56830         <bp-sym.h> and <bp-asm.h>.
56831         (memset): Don't use BP_SYM.
56832         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
56833         <bp-sym.h> and <bp-asm.h>.
56834         (__rawmemchr): Don't use BP_SYM.
56835         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
56836         <bp-sym.h> and <bp-asm.h>.
56837         (__STRCMP): Don't use BP_SYM.
56838         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
56839         <bp-sym.h> and <bp-asm.h>.
56840         (strchr): Don't use BP_SYM.
56841         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
56842         <bp-sym.h> and <bp-asm.h>.
56843         (__strchrnul): Don't use BP_SYM.
56844         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
56845         <bp-sym.h> and <bp-asm.h>.
56846         (strlen): Don't use BP_SYM.
56847         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
56848         <bp-sym.h> and <bp-asm.h>.
56849         (strncmp): Don't use BP_SYM.
56850         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
56851         <bp-sym.h> and <bp-asm.h>.
56852         (__strnlen): Don't use BP_SYM.
56853         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
56854         <bp-asm.h>.
56855         (__mpn_rshift): Don't use BP_SYM.
56856         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
56857         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
56858         <bp-sym.h> and <bp-asm.h>.
56859         (__sigsetjmp): Don't use BP_SYM.
56860         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
56861         (L(start_addresses)): Don't use BP_SYM.
56862         (_start): Likewise.
56863         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
56864         <bp-asm.h>.
56865         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
56866         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56867         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56868         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
56869         <bp-asm.h>.
56870         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
56871         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
56872         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
56873         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
56874         <bp-asm.h>.
56875         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
56876         comments.
56877         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
56878         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
56879         <bp-asm.h>.
56880         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
56881         FIXME comments.
56882         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
56883         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
56884         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
56885         <bp-asm.h>.
56886         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
56887         comment.
56888         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
56889         and <bp-asm.h>.
56890         (strncmp): Don't use BP_SYM,
56891         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
56892         <bp-asm.h>.
56893         (__mpn_sub_n): Don't use BP_SYM.
56894         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
56895         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
56896         and <bp-asm.h>.
56897         (__mpn_submul_1): Don't use BP_SYM.
56898         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
56899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
56900         <bp-sym.h> and <bp-asm.h>.
56901         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
56902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
56903         <bp-sym.h> and <bp-asm.h>.
56904         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
56905         comment.
56906
56907 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56908
56909         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
56910         Use ZK to minimize writes to Z.
56911         (sub_magnitudes): Simplify code a bit.
56912         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
56913         Use ZK to minimize writes to Z.
56914         (sub_magnitudes): Simplify code a bit.
56915
56916 2013-02-27  Roland McGrath  <roland@hack.frob.com>
56917
56918         * csu/gmon-start.c: Add special exception to license text.
56919
56920 2013-02-27  Richard Henderson  <rth@redhat.com>
56921
56922         * scripts/config.guess: Update from config.git.
56923         * scripts/config.sub: Likewise.
56924
56925 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
56926
56927         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
56928
56929         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
56930
56931         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
56932
56933         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
56934
56935         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
56936
56937 2013-02-26  Roland McGrath  <roland@hack.frob.com>
56938
56939         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
56940         [$(build-shared = yes].
56941
56942 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56943
56944         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
56945         (__mul): Reduce iterations for calculating mantissa.
56946
56947         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
56948         MPTWO.
56949         (__mpranred): Likewise.
56950
56951         [BZ #15160]
56952         * malloc/memusagestat.c (main): Draw graphs for heap and stack
56953         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
56954
56955 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56956
56957         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
56958         Define __attribute__.
56959
56960 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
56961
56962         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
56963         unused.
56964         * posix/regex_internal.h (__attribute): Remove.
56965         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
56966         (re_string_context_at): Likewise.
56967         (bitset_not): Use __attribute__ and mark function as possibly
56968         unused.
56969         (bitset_merge): Likewise.
56970         (bitset_mask): Likewise.
56971         (re_string_char_size_at): Likewise.
56972         (re_string_wchar_at): Likewise.
56973         (re_string_elem_size_at): Likewise.
56974
56975 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
56976
56977         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
56978         code.
56979         (cc32): Likewise.
56980
56981         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
56982         (__acr): Likewise.
56983         (__cpy): Likewise.
56984         (norm): Likewise.
56985         (denorm): Likewise.
56986         (__dbl_mp): Likewise.
56987         (add_magnitudes): Likewise.
56988         (sub_magnitudes): Likewise.
56989         (__mul): Likewise.
56990         (__inv): Likewise.
56991
56992         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
56993         style.
56994
56995         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
56996         style.
56997
56998         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
56999         code.
57000
57001         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
57002         up changes with default code.
57003         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
57004         Likewise.
57005
57006 2013-02-24  Allan McRae  <allan@archlinux.org>
57007
57008         * manual/socket.texi (The Internet Namespace): Order menu items
57009         to match that in the file.
57010
57011         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
57012         node listing of the info page menu.
57013
57014 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
57015
57016         [BZ #13550]
57017         * sysdeps/i386/bp-asm.h: Remove file.
57018         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57019         (PARMS): Do not use macros from bp-asm.h.
57020         (S1): Likewise.
57021         (S2): Likewise.
57022         (SIZE): Likewise.
57023         (__mpn_add_n): Do not use BP_SYM
57024         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
57025         "bp-asm.h".
57026         (PARMS): Do not use macros from bp-asm.h.
57027         (S1): Likewise.
57028         (SIZE): Likewise.
57029         (__mpn_addmul_1): Do not use BP_SYM
57030         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
57031         "bp-asm.h".
57032         (PARMS): Do not use macros from bp-asm.h.
57033         (SIGMSK): Likewise.
57034         (_setjmp): Likewise.  Do not use BP_SYM.
57035         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
57036         "bp-asm.h".
57037         (PARMS): Do not use macros from bp-asm.h.
57038         (SIGMSK): Likewise.
57039         (setjmp): Likewise.  Do not use BP_SYM.
57040         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
57041         "bp-asm.h".
57042         (PARMS): Do not use macros from bp-asm.h.
57043         (__frexp): Do not use BP_SYM.
57044         (frexp): Likewise.
57045         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
57046         "bp-asm.h".
57047         (PARMS): Do not use macros from bp-asm.h.
57048         (__frexpf): Do not use BP_SYM.
57049         (frexpf): Likewise.
57050         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
57051         "bp-asm.h".
57052         (PARMS): Do not use macros from bp-asm.h.
57053         (__frexpl): Do not use BP_SYM.
57054         (frexpl): Likewise.
57055         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
57056         "bp-asm.h".
57057         (PARMS): Do not use macros from bp-asm.h.
57058         (__remquo): Do not use BP_SYM.
57059         (remquo): Likewise.
57060         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
57061         "bp-asm.h".
57062         (PARMS): Do not use macros from bp-asm.h.
57063         (__remquof): Do not use BP_SYM.
57064         (remquof): Likewise.
57065         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
57066         "bp-asm.h".
57067         (PARMS): Do not use macros from bp-asm.h.
57068         (__remquol): Do not use BP_SYM.
57069         (remquol): Likewise.
57070         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
57071         "bp-asm.h".
57072         (PARMS): Do not use macros from bp-asm.h.
57073         (DEST): Likewise.
57074         (SRC): Likewise.
57075         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
57076         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
57077         "bp-asm.h".
57078         (PARMS): Do not use macros from bp-asm.h.
57079         (strlen): Do not use BP_SYM.
57080         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
57081         "bp-asm.h".
57082         (PARMS): Do not use macros from bp-asm.h.
57083         (S1): Likewise.
57084         (S2): Likewise.
57085         (SIZE): Likewise.
57086         (__mpn_add_n): Do not use BP_SYM.
57087         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
57088         "bp-asm.h".
57089         (PARMS): Do not use macros from bp-asm.h.
57090         (S1): Likewise.
57091         (SIZE): Likewise.
57092         (__mpn_addmul_1): Do not use BP_SYM.
57093         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
57094         weak_alias.
57095         (bzero): Likewise.
57096         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
57097         "bp-asm.h".
57098         (PARMS): Do not use macros from bp-asm.h.
57099         (S): Likewise.
57100         (SIZE): Likewise.
57101         (__mpn_lshift): Do not use BP_SYM.
57102         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
57103         "bp-asm.h".
57104         (PARMS): Do not use macros from bp-asm.h.
57105         (DEST): Likewise.
57106         (SRC): Likewise.
57107         (LEN): Likewise.
57108         (memcpy): Likewise.  Do not use BP_SYM.
57109         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
57110         libc_hidden_def and weak_alias.
57111         (mempcpy): Do not use BP_SYM in weak_alias.
57112         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
57113         "bp-asm.h".
57114         (PARMS): Do not use macros from bp-asm.h.
57115         (DEST): Likewise.
57116         (LEN): Likewise.
57117         [!BZERO_P] (CHR): Likewise.
57118         (memset): Likewise.  Do not use BP_SYM.
57119         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
57120         "bp-asm.h".
57121         (PARMS): Do not use macros from bp-asm.h.
57122         (S1): Likewise.
57123         (SIZE): Likewise.
57124         (__mpn_mul_1): Do not use BP_SYM.
57125         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
57126         "bp-asm.h".
57127         (PARMS): Do not use macros from bp-asm.h.
57128         (S): Likewise.
57129         (SIZE): Likewise.
57130         (__mpn_rshift): Do not use BP_SYM.
57131         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
57132         "bp-asm.h".
57133         (PARMS): Do not use macros from bp-asm.h.
57134         (STR): Likewise.
57135         (CHR): Likewise.
57136         (strchr): Likewise.  Do not use BP_SYM.
57137         (index): Do not use BP_SYM in weak_alias.
57138         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
57139         "bp-asm.h".
57140         (PARMS): Do not use macros from bp-asm.h.
57141         (DEST): Likewise.
57142         (SRC): Likewise.
57143         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
57144         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
57145         "bp-asm.h".
57146         (PARMS): Do not use macros from bp-asm.h.
57147         (strlen): Do not use BP_SYM.
57148         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
57149         "bp-asm.h".
57150         (PARMS): Do not use macros from bp-asm.h.
57151         (S1): Likewise.
57152         (S2): Likewise.
57153         (SIZE): Likewise.
57154         (__mpn_sub_n): Do not use BP_SYM.
57155         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
57156         "bp-asm.h".
57157         (PARMS): Do not use macros from bp-asm.h.
57158         (S1): Likewise.
57159         (SIZE): Likewise.
57160         (__mpn_submul_1): Do not use BP_SYM.
57161         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
57162         "bp-asm.h".
57163         (PARMS): Do not use macros from bp-asm.h.
57164         (S1): Likewise.
57165         (S2): Likewise.
57166         (SIZE): Likewise.
57167         (__mpn_add_n): Do not use BP_SYM.
57168         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
57169         weak_alias.
57170         (bzero): Likewise.
57171         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
57172         "bp-asm.h".
57173         (PARMS): Do not use macros from bp-asm.h.
57174         (BLK2): Likewise.
57175         (LEN): Likewise.
57176         (memcmp): Do not use BP_SYM.
57177         (bcmp): Do not use BP_SYM in weak_alias.
57178         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
57179         "bp-asm.h".
57180         (PARMS): Do not use macros from bp-asm.h.
57181         (DEST): Likewise.
57182         (SRC): Likewise.
57183         (LEN): Likewise.
57184         (memcpy): Likewise.  Do not use BP_SYM.
57185         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
57186         "bp-asm.h".
57187         (PARMS): Do not use macros from bp-asm.h.
57188         (DEST): Likewise.
57189         (SRC): Likewise.
57190         (LEN): Likewise.
57191         (memmove): Likewise.  Do not use BP_SYM.
57192         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
57193         "bp-asm.h".
57194         (PARMS): Do not use macros from bp-asm.h.
57195         (DEST): Likewise.
57196         (SRC): Likewise.
57197         (LEN): Likewise.
57198         (__mempcpy): Likewise.  Do not use BP_SYM.
57199         (mempcpy): Do not use BP_SYM in weak_alias.
57200         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
57201         "bp-asm.h".
57202         (PARMS): Do not use macros from bp-asm.h.
57203         (DEST): Likewise.
57204         (LEN): Likewise.
57205         [!BZERO_P] (CHR): Likewise.
57206         (memset): Likewise.  Do not use BP_SYM.
57207         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
57208         "bp-asm.h".
57209         (PARMS): Do not use macros from bp-asm.h.
57210         (STR2): Likewise.
57211         (strcmp): Do not use BP_SYM.
57212         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
57213         "bp-asm.h".
57214         (PARMS): Do not use macros from bp-asm.h.
57215         (STR): Likewise.
57216         (DELIM): Likewise.
57217         [USE_AS_STRTOK_R] (SAVE): Likewise.
57218         (FUNCTION): Likewise.  Do not use BP_SYM.
57219         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
57220         aliases.
57221         (strtok_r): Likewise.
57222         (__GI___strtok_r): Likewise.
57223         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57224         (PARMS): Do not use macros from bp-asm.h.
57225         (S): Likewise.
57226         (SIZE): Likewise.
57227         (__mpn_lshift): Do not use BP_SYM.
57228         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57229         (PARMS): Do not use macros from bp-asm.h.
57230         (STR): Likewise.
57231         (CHR): Likewise.
57232         (__memchr): Do not use BP_SYM.
57233         (memchr): Do not use BP_SYM in weak_alias.
57234         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57235         (PARMS): Do not use macros from bp-asm.h.
57236         (BLK2): Likewise.
57237         (LEN): Likewise.
57238         (memcmp): Do not use BP_SYM.
57239         (bcmp): Do not use BP_SYM in weak_alias.
57240         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
57241         (PARMS): Do not use macros from bp-asm.h.
57242         (S1): Likewise.
57243         (SIZE): Likewise.
57244         (__mpn_mul_1): Do not use BP_SYM.
57245         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
57246         "bp-asm.h".
57247         (PARMS): Do not use macros from bp-asm.h.
57248         (STR): Likewise.
57249         (CHR): Likewise.
57250         (__rawmemchr): Do not use BP_SYM.
57251         (rawmemchr): Do not use BP_SYM in weak_alias.
57252         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
57253         (PARMS): Do not use macros from bp-asm.h.
57254         (S): Likewise.
57255         (SIZE): Likewise.
57256         (__mpn_rshift): Do not use BP_SYM.
57257         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
57258         (PARMS): Do not use macros from bp-asm.h.
57259         (SIGMSK): Likewise.
57260         (__sigsetjmp): Likewise.  Do not use BP_SYM.
57261         * sysdeps/i386/start.S: Do not include "bp-sym.h".
57262         (_start): Do not use BP_SYM.
57263         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
57264         (PARMS): Do not use macros from bp-asm.h.
57265         (DEST): Likewise.
57266         (SRC): Likewise.
57267         (__stpcpy): Likewise.  Do not use BP_SYM.
57268         (stpcpy): Do not use BP_SYM in weak_alias.
57269         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
57270         "bp-asm.h".
57271         (PARMS): Do not use macros from bp-asm.h.
57272         (DEST): Likewise.
57273         (SRC): Likewise.
57274         (LEN): Likewise.
57275         (__stpncpy): Likewise.  Do not use BP_SYM.
57276         (stpncpy): Do not use BP_SYM in weak_alias.
57277         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
57278         (PARMS): Do not use macros from bp-asm.h.
57279         (STR): Likewise.
57280         (CHR): Likewise.
57281         (strchr): Likewise.  Do not use BP_SYM.
57282         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
57283         "bp-asm.h".
57284         (PARMS): Do not use macros from bp-asm.h.
57285         (STR): Likewise.
57286         (CHR): Likewise.
57287         (__strchrnul): Likewise.  Do not use BP_SYM.
57288         (strchrnul): Do not use BP_SYM in weak_alias.
57289         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
57290         "bp-asm.h".
57291         (PARMS): Do not use macros from bp-asm.h.
57292         (STOP): Likewise.
57293         (strcspn): Do not use BP_SYM.
57294         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
57295         "bp-asm.h".
57296         (PARMS): Do not use macros from bp-asm.h.
57297         (STR): Likewise.
57298         (STOP): Likewise.
57299         (strpbrk): Likewise.  Do not use BP_SYM.
57300         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
57301         "bp-asm.h".
57302         (PARMS): Do not use macros from bp-asm.h.
57303         (STR): Likewise.
57304         (CHR): Likewise.
57305         (strrchr): Likewise.  Do not use BP_SYM.
57306         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
57307         (PARMS): Do not use macros from bp-asm.h.
57308         (SKIP): Likewise.
57309         (strspn): Do not use BP_SYM.
57310         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
57311         (PARMS): Do not use macros from bp-asm.h.
57312         (STR): Likewise.
57313         (DELIM): Likewise.
57314         (SAVE): Likewise.
57315         (FUNCTION): Likewise.  Do not use BP_SYM.
57316         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
57317         aliases.
57318         (strtok_r): Likewise.
57319         (__GI___strtok_r): Likewise.
57320         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
57321         (PARMS): Do not use macros from bp-asm.h.
57322         (S1): Likewise.
57323         (S2): Likewise.
57324         (SIZE): Likewise.
57325         (__mpn_sub_n): Do not use BP_SYM.
57326         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
57327         "bp-asm.h".
57328         (PARMS): Do not use macros from bp-asm.h.
57329         (S1): Likewise.
57330         (SIZE): Likewise.
57331         (__mpn_submul_1): Do not use BP_SYM.
57332         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
57333         <bp-sym.h>.
57334         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
57335         and <bp-asm.h>.
57336         (PARMS): Do not use macros from bp-asm.h.
57337         (FLAGS): Likewise.
57338         (PTID): Likewise.
57339         (TLS): Likewise.
57340         (CTID): Likewise.
57341         (__clone): Do not use BP_SYM.
57342         (clone): Do not use BP_SYM in weak_alias.
57343         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
57344         and <bp-asm.h>.
57345         (PARMS): Do not use macros from bp-asm.h.
57346         (LEN): Likewise.
57347         (__mmap64): Do not use BP_SYM.
57348         (mmap64): Do not use BP_SYM in weak_alias.
57349         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57350         <bp-sym.h> and <bp-asm.h>.
57351         (PARMS): Do not use macros from bp-asm.h.
57352         (__posix_fadvise64_l64): Do not use BP_SYM.
57353         * sysdeps/unix/sysv/linux/i386/semtimedop.S
57354         (PARMS): Do not use macros from bp-asm.h.
57355         (NSOPS): Likewise.
57356         (semtimedop): Do not use BP_SYM.
57357         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
57358         and <bp-asm.h>.
57359
57360 2013-02-21  Allan McRae  <allan@archlinux.org>
57361
57362         * manual/message.texi (Charset conversion in gettext):
57363         Move @end statement to beginning of line.
57364
57365 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57366
57367         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
57368         static.
57369         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
57370         Likewise.
57371
57372         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
57373         (denorm): Likewise.
57374         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
57375         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
57376
57377 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57378
57379         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
57380         tail-call to the resolved function if pltexit isn't needed.
57381
57382 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
57383
57384         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
57385         or Y being zero as being unlikely.
57386         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
57387         Likewise.
57388
57389 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
57390
57391         * manual/nss.texi (System Databases and Name Service Switch):
57392         Remove frobnicate @pxref.
57393
57394 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57395
57396         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57397         __attribute__ ((unused)) to __attribute__ ((__unused__)).
57398
57399 2013-02-20  Petr Machata  <pmachata@redhat.com>
57400
57401         * elf/elf.h (R_ARM_TARGET1): New macro.
57402         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
57403         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
57404         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
57405         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
57406         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
57407         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
57408         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
57409         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
57410         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
57411         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
57412         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
57413         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
57414         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
57415         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
57416         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
57417         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
57418         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
57419         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
57420         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
57421         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
57422         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
57423         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
57424         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
57425         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
57426         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
57427         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
57428         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
57429         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
57430         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
57431         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
57432         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
57433         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
57434         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
57435         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
57436         (R_ARM_THM_GOT_BREL12): Likewise.
57437         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
57438         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
57439         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
57440         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
57441         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
57442         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
57443         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
57444         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
57445         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
57446
57447 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
57448
57449         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
57450         __attribute_used__ to __attribute__ ((unused)).
57451
57452 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
57453
57454         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
57455         powerpc mpa.c.
57456         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
57457         comment formatting.
57458         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
57459
57460 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
57461
57462         [BZ #13550]
57463         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
57464         Remove macro.
57465         (ENTER): Remove both macro definitions.
57466         (LEAVE): Likewise.
57467         (CHECK_BOUNDS_LOW): Likewise.
57468         (CHECK_BOUNDS_HIGH): Likewise.
57469         (CHECK_BOUNDS_BOTH): Likewise.
57470         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
57471         (RETURN_BOUNDED_POINTER): Likewise.
57472         (RETURN_NULL_BOUNDED_POINTER): Likewise.
57473         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
57474         (POP_ERRNO_LOCATION_RETURN): Likewise.
57475         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
57476         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57477         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
57478         macros.
57479         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57480         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
57481         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
57482         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
57483         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
57484         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
57485         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
57486         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
57487         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
57488         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
57489         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
57490         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
57491         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57492         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
57493         removed macros.
57494         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57495         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
57496         macros.
57497         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57498         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
57499         * sysdeps/i386/i586/memset.S (memset): Likewise.
57500         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
57501         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57502         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
57503         macros.
57504         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57505         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
57506         Change uses of L(2) to L(out).
57507         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
57508         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
57509         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
57510         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57511         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
57512         removed macros.
57513         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57514         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
57515         macros.
57516         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57517         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
57518         (RETURN): Do not use macro LEAVE.
57519         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
57520         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
57521         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
57522         * sysdeps/i386/i686/memset.S (memset): Likewise.
57523         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
57524         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
57525         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
57526         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
57527         Likewise.
57528         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57529         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
57530         L(1_2) and L(1_3) into L(1).
57531         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57532         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
57533         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57534         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
57535         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
57536         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
57537         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
57538         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57539         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
57540         macros.
57541         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
57542         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
57543         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
57544         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
57545         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
57546         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
57547         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
57548         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
57549         * sysdeps/i386/strcspn.S (strcspn): Likewise.
57550         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
57551         * sysdeps/i386/strrchr.S (strrchr): Likewise.
57552         * sysdeps/i386/strspn.S (strspn): Likewise.
57553         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
57554         conditional code.
57555         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
57556         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
57557         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
57558         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
57559         L(1_3) into L(1_1).
57560         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
57561         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
57562         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
57563         macros.
57564         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
57565
57566 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
57567
57568         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
57569         macro.
57570
57571 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
57572
57573         * math/atest-exp.c (exp_mpn): Remove ROUND.
57574         * math/atest-exp2.c (exp_mpn): Likewise.
57575         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
57576
57577         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
57578         * stdlib/tst-tls-atexit-lib.c: Likewise.
57579         * stdlib/tst-tls-atexit.c: Likewise.
57580
57581 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57582
57583         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
57584         and __attribute_alloc_size__.
57585
57586 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57587
57588         * include/programs/xmalloc.h: Change __attribute_alloc_size to
57589         __attribute_alloc_size__.
57590         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
57591         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
57592
57593 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
57594
57595         * include/programs/xmalloc.h: New file.
57596         * catgets/gencat.c: Include it.
57597         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
57598         * elf/pldd.c: Likewise.
57599         * iconv/iconv_charmap.c: Likewise.
57600         * iconv/iconvconfig.c: Likewise.
57601         * iconv/strtab.c: Likewise.
57602         * locale/programs/locale.c: Likewise.
57603         * locale/programs/localedef.h: Likewise.
57604         * locale/programs/simple-hash.c: Likewise.
57605         * nscd/nscd.h: Likewise.
57606         * nss/makedb.c: Likewise.
57607         * sysdeps/generic/ldconfig.h: Likewise.
57608
57609 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
57610
57611         * Versions.def: Add GLIBC_2.18.
57612         * include/link.h (struct link_map): New member l_tls_dtor_count.
57613         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
57614         (__call_tls_dtors): Likewise.
57615         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
57616         __cxa_thread_atexit_impl.
57617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
57618         Likewise.
57619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
57620         Likewise.
57621         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
57622         Likewise.
57623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
57624         Likewise.
57625         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
57626         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
57627         Likewise.
57628         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
57629         Likewise.
57630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
57631         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
57632         Likewise.
57633         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
57634         (tests): Add test case tst-tls-atexit.
57635         (modules-names): Add shared library for tst-tls-atexit.
57636         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
57637         (GLIBC_PRIVATE): Add __call_tls_dtors.
57638         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
57639         for libstdc++.
57640         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
57641         * stdlib/tst-tls-atexit.c: New test case.
57642         * stdlib/tst-tls-atexit-lib.c: New test case.
57643
57644         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
57645
57646         * elf/Versions (ld): Add _dl_find_dso_for_object.
57647         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
57648         * elf/dl-open.c (_dl_find_dso_for_object): New function.
57649         (dl_open_worker): Use _dl_find_dso_for_object.
57650         * elf/dl-sym.c (do_sym): Likewise.
57651         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
57652
57653 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57654
57655         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
57656         Syntactic changes only.
57657         (_dl_runtime_profile): Do a tail-call to the resolved function.
57658
57659 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
57660
57661         [BZ #13550]
57662         * sysdeps/x86_64/bp-asm.h: Remove file.
57663         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
57664         <bp-sym.h> and <bp-asm.h>.
57665         (__clone): Do not use BP_SYM.
57666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
57667         <bp-sym.h> and <bp-asm.h>.
57668         * sysdeps/unix/x86_64/sysdep.S: Likewise.
57669         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
57670         "bp-asm.h".
57671         (_setjmp): Do not use BP_SYM.
57672         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
57673         "bp-asm.h".
57674         (setjmp): Do not use BP_SYM.
57675         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
57676         libc_hidden_def.
57677         (mempcpy): Do not use BP_SYM in weak_alias.
57678         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
57679         "bp-asm.h".
57680         (strchr): Do not use BP_SYM.
57681         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
57682         "bp-asm.h".
57683         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
57684         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
57685         (_start): Do not use BP_SYM.
57686         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
57687         "bp-asm.h".
57688         (strcat): Do not use BP_SYM.
57689         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
57690         "bp-asm.h".
57691         (STRCMP): Do not use BP_SYM.
57692         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
57693         "bp-asm.h".
57694         (STRCPY): Do not use BP_SYM.
57695         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
57696         "bp-asm.h".
57697         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
57698         "bp-asm.h".
57699         (FUNCTION): Do not use BP_SYM.
57700         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
57701         weak_alias.
57702         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
57703
57704 2013-02-17  Andreas Jaeger  <aj@suse.de>
57705
57706         * time/Versions: Sort entries.
57707         * string/Versions: Likewise.
57708         * resolv/Versions: Likewise.
57709         * posix/Versions: Likewise.
57710         * iconv/Versions: Likewise.
57711         * elf/Versions: Likewise.
57712         * wcsmbs/Versions: Likewise.
57713
57714 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
57715
57716         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
57717         loop termination condition.
57718
57719         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
57720         variable to calculate EZ.
57721         (__sqr): Likewise.
57722
57723         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
57724         the lower precision input.
57725
57726 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
57727
57728         [BZ #13550]
57729         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
57730         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
57731         (run-via-rtld-prefix): Do not handle %-bp tests.
57732         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
57733         (all-object-suffixes): Remove .ob.
57734         (bppfx): Remove variable.
57735         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
57736         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
57737         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
57738         [$(build-bounded) = yes] (libtype.ob): Likewise.
57739         * Makerules (elide-routines.ob): Remove variable.
57740         (do-tests-clean): Do not handle *-bp.out.
57741         (common-mostlyclean): Do not handle *-bp and *-bp.out.
57742         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
57743         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
57744         (tests): Do not include $(tests-bp.out).
57745         (xtests): Do not include $(xtests-bp.out).
57746         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
57747         [$(build-bounded) = yes] ($(addprefix
57748         $(objpfx),$(binaries-bounded))): Remove rule.
57749         ($(objpfx)%-bp.out): Remove rule.
57750         * config.make.in (build-bounded): Remove variable.
57751         * crypt/Makefile [$(build-bounded) = yes]
57752         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
57753         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
57754         append to variable.
57755         [$(build-bounded) = yes] (install-lib): Likewise.
57756         [$(build-bounded) = yes] (generated): Likewise.
57757         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
57758         Remove rule.
57759         * intl/Makefile [$(build-bounded) = yes]
57760         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
57761         * math/Makefile [$(build-bounded) = yes]
57762         ($(tests:%=$(objpfx)%-bp): Likewise.
57763         * misc/Makefile [$(build-bounded) = yes]
57764         ($(objpfx)tst-tsearch-bp): Likewise.
57765         * nptl/Makeconfig (bounded-thread-library): Remove variable.
57766         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
57767         Remove dependency.
57768         * string/Makefile (o-objects.ob): Remove variable.
57769         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
57770         (CFLAGS-.ob): Remove variable.
57771         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
57772         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
57773         both definitions of variable.
57774         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
57775         (ASFLAGS-.ob): Remove variable.
57776
57777 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
57778
57779         [BZ #13550]
57780         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
57781         Remove __BOUNDED_POINTERS__ from condition.
57782         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
57783         * string/bits/string2.h [!__NO_STRING_INLINES &&
57784         !__BOUNDED_POINTERS__]: Likewise.
57785         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
57786         Likewise.
57787         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
57788         Remove conditional code.
57789         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
57790         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
57791         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
57792         condition.
57793
57794         [BZ #13550]
57795         * csu/libc-start.c: Do not include <bp-sym.h>.
57796         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
57797         * elf/dl-open.c: Do not include <bp-sym.h>.
57798         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
57799         * math/fegetenv.c: Do not include <bp-sym.h>.
57800         (fegetenv): Do not use BP_SYM in versioned symbols.
57801         * nptl/sysdeps/pthread/bits/libc-lockP.h
57802         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
57803         <bp-sym.h>.
57804         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57805         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
57806         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57807         (__pthread_mutex_destroy): Likewise.
57808         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57809         (__pthread_mutex_lock): Likewise.
57810         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57811         (__pthread_mutex_trylock): Likewise.
57812         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57813         (__pthread_mutex_unlock): Likewise.
57814         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57815         (__pthread_mutexattr_init): Likewise.
57816         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57817         (__pthread_mutexattr_destroy): Likewise.
57818         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57819         (__pthread_mutexattr_settype): Likewise.
57820         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57821         (__pthread_rwlock_init): Likewise.
57822         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57823         (__pthread_rwlock_destroy): Likewise.
57824         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57825         (__pthread_rwlock_rdlock): Likewise.
57826         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57827         (__pthread_rwlock_tryrdlock): Likewise.
57828         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57829         (__pthread_rwlock_wrlock): Likewise.
57830         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57831         (__pthread_rwlock_trywrlock): Likewise.
57832         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57833         (__pthread_rwlock_unlock): Likewise.
57834         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57835         (__pthread_key_create): Likewise.
57836         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57837         (__pthread_setspecific): Likewise.
57838         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57839         (__pthread_getspecific): Likewise.
57840         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
57841         Likewise.
57842         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57843         (_pthread_cleanup_push_defer): Likewise.
57844         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57845         (_pthread_cleanup_pop_restore): Likewise.
57846         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
57847         (pthread_setcancelstate): Likewise.
57848         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
57849         <bp-sym.h>.
57850         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
57851         (memchr): Do not use BP_SYM in weak_alias.
57852         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
57853         (fegetenv): Do not use BP_SYM in versioned symbols.
57854         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
57855         (fesetenv): Do not use BP_SYM in versioned symbols.
57856         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
57857         (feupdateenv): Do not use BP_SYM in versioned symbols.
57858         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
57859         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
57860         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
57861         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
57862         (open64): Do not use BP_SYM in weak_alias.
57863         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
57864         (fegetenv): Do not use BP_SYM in versioned symbols.
57865         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
57866         (fesetenv): Do not use BP_SYM in versioned symbols.
57867         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
57868         (feupdateenv): Do not use BP_SYM in versioned symbols.
57869         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
57870         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
57871         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
57872         (feraiseexcept): Do not use BP_SYM in versioned symbols.
57873         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
57874         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
57875         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
57876         <bp-sym.h>.
57877         (__libc_start_main): Do not use BP_SYM.
57878
57879 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
57880
57881         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
57882         redundant return line.
57883         (norm): Likewise.
57884         (denorm): Likewise.
57885         (dbl_mp): Likewise.
57886         (sub_magnitudes): Likewise.
57887         (__add): Likewise.
57888         (__sub): Likewise.
57889         (__mul): Likewise.
57890         (__inv): Likewise.
57891         (__dvd): Likewise.
57892         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
57893         (norm): Likewise.
57894         (denorm): Likewise.
57895         (dbl_mp): Likewise.
57896         (sub_magnitudes): Likewise.
57897         (__add): Likewise.
57898         (__sub): Likewise.
57899         (__mul): Likewise.
57900         (__inv): Likewise.
57901         (__dvd): Likewise.
57902
57903         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
57904         instead of __mul.
57905         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
57906         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
57907         (cc32): Likewise.
57908
57909         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
57910         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
57911         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
57912         of __mul for squares.
57913         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
57914         function
57915         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
57916         Likewise.
57917         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
57918         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
57919
57920 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
57921
57922         [BZ #13550]
57923         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
57924         code.
57925         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
57926         prototype or function definition.  Rename ubp_* variables and
57927         parameters.  Remove argv definitions conditional on
57928         [__BOUNDED_POINTERS__].
57929         * debug/backtrace.c (__backtrace): Do not use __unbounded.
57930         * elf/dl-runtime.c (_dl_fixup): Likewise.
57931         * include/set-hooks.h (RUN_HOOK): Likewise.
57932         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
57933         definition.
57934         * string/strcpy.c (strcpy): Do not use __unbounded.
57935         * sysdeps/generic/frame.h (struct layout): Likewise.
57936         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
57937         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
57938         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
57939         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
57940         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
57941         (__backtrace): Likewise.
57942         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
57943         use __ptrvalue.
57944         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
57945         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
57946         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
57947         Likewise.
57948         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
57949         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
57950         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
57951         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
57952         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
57953         Do not use __unbounded.
57954         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
57955         Rename __unboundedrlimits parameter to rlimits in prototype.
57956         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
57957         Do not use __unbounded.
57958         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
57959         not use __ptrvalue.
57960         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
57961         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
57962         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
57963         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
57964         __ptrvalue or __unbounded.
57965         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
57966         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
57967         use __unbounded.
57968         (__new_msgctl): Do not use __ptrvalue.
57969         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
57970         __unbounded.
57971         (__libc_msgrcv): Do not use __ptrvalue.
57972         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
57973         startup_info): Do not use __unbounded.
57974         (__libc_start_main): Likewise.  Rename ubp_* variables and
57975         parameters.  Remove argv definitions conditional on
57976         [__BOUNDED_POINTERS__].
57977         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
57978         __ptrvalue.
57979         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
57980         use __unbounded.
57981         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
57982         or __ptrvalue.
57983         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
57984         use __unbounded.
57985         (__new_shmctl): Do not use __ptrvalue.
57986         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
57987         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
57988         Likewise.
57989         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
57990         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
57991         (__libc_sigaction): Likewise.
57992         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
57993         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
57994         Likewise.
57995         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
57996
57997 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
57998
57999         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
58000
58001         * string/mempcpy.c: Implement by calling memcpy.
58002
58003 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
58004
58005         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
58006
58007         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
58008         evaluation.
58009
58010         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
58011         values in the mantissa.
58012
58013         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
58014         minimize writes to Z.
58015         (sub_magnitudes): Simplify code a bit.
58016
58017 2013-02-12  Roland McGrath  <roland@hack.frob.com>
58018
58019         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
58020         from the message.  The linker prefixes all warnings with that already.
58021
58022 2013-02-12  Andreas Schwab  <schwab@suse.de>
58023
58024         [BZ #15078]
58025         * posix/regexec.c (extend_buffers): Add parameter min_len.
58026         (check_matching): Pass minimum needed length.
58027         (clean_state_log_if_needed): Likewise.
58028         (get_subexp): Likewise.
58029         * posix/Makefile (tests): Add bug-regex34.
58030         (bug-regex34-ENV): Define.
58031         * posix/bug-regex34.c: New file.
58032
58033         [BZ #11561]
58034         * posix/regcomp.c (parse_bracket_exp): When looking up collating
58035         elements compare against the byte sequence of it, not its name.
58036         * posix/Makefile (tests): Add bug-regex35.
58037         (bug-regex35-ENV): Define.
58038         * posix/bug-regex35.c: New file.
58039
58040 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58041
58042         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
58043         comment.
58044         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
58045         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
58046         (CHECK_EOL): Add undef.
58047
58048 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
58049
58050         * bits/stdlib-bsearch.h: New file.
58051         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
58052         * stdlib/stdlib.h: Likewise.
58053
58054 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58055
58056         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
58057         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
58058         declaration.
58059         * manual/search.texi (Array Search Function): Add missing const in
58060         lfind prototype.
58061         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
58062         declaration to use rlim_t.
58063         (Basic Scheduling Functions): Remove erroneous const from
58064         sched_getparam prototype.  Remove erroneous * from
58065         sched_get_priority_max and sched_get_priority_min prototypes.
58066         (Resource Usage): Fix summary @comment on vtimes to refer to
58067         sys/vtimes.h rather than vtimes.h.
58068         Add missing *s in vtimes prototype.
58069         (Limits on Resources): Fix ulimit prototype to return long int.
58070         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
58071         prototypes to use long int rather than double.
58072         (BSD Random): Fix initstate and setstate to use char *, not void *.
58073         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
58074         prototype to make second argument 'struct aiocb64 *const[]'.
58075         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
58076         (Status of AIO Operations): Remove erroneous const in aio_return and
58077         aio_return64 prototypes.
58078         (Synchronizing I/O): Fix sync prototype to return void.
58079         * manual/startup.texi (Suboptions): Remove an erroneous const in
58080         getsubopt prototype.
58081         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
58082         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
58083         use size_t rather than int.
58084         (Scanning All Users): Likewise for getpwent_r.
58085         (Setting Groups): Add missing const to setgroups prototype.
58086         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
58087         * manual/socket.texi (Host Names): Fix gethostbyaddr and
58088         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
58089         'const void *' rather than 'const char *'.
58090         (Host Address Functions): Likewise for inet_ntop.
58091         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
58092         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
58093         ssize_t for return value.
58094         (Sending Data): Likewise for send, sendto, sendmsg.
58095         (Socket Option Functions): Add a missing const in setsockopt prototype.
58096         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
58097         use wchar_t for the argument.
58098         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
58099         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
58100         take no arguments.
58101         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
58102         double/float/long double for second argument.
58103         Fix return types of significand, significandf, significandl.
58104         * manual/filesys.texi (Setting Permissions): Use mode_t for second
58105         argument in fchmod prototype.
58106         (File Owner): Use uid_t and gid_t in fchown prototype.
58107         (File Times): Add const to utimes, futimes, and lutimes prototypes.
58108         (Making Special Files): Use mode_t and dev_t in mknod prototype.
58109         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
58110         use 'const struct dirent **' as argument types to CMP function pointer
58111         argument.
58112         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
58113         (File Times): Fix summary magic @comment for struct utimbuf and utime
58114         to refer to utime.h, not time.h.
58115         * manual/string.texi (Argz Functions): Add missing const in
58116         argz_extract and argz_next prototypes.
58117         (Finding Tokens in a String): Likewise for basename.
58118         (String/Array Comparison): Fix typo in wcscasecmp prototype.
58119         (Copying and Concatenation): Fix typo in wmemmove prototype.
58120         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
58121         (Signal Stack): Remove erroneous const in sigstack prototype.
58122         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
58123         prototype.
58124         (Simple Calendar Time): Likewise for stime.
58125         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
58126         prototype.
58127         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
58128         say sys/sysctl.h instead.
58129         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
58130         and vsyslog prototypes.
58131
58132 2013-02-11  Tom de Vries  <tom@codesourcery.com>
58133
58134         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
58135         Remove.
58136
58137 2013-02-11  Roland McGrath  <roland@hack.frob.com>
58138
58139         * misc/sys/mman.h: Fix typo in mremap comment.
58140
58141 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58142
58143         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
58144         the '\0' terminator.
58145
58146 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58147
58148         [BZ #13550]
58149         * debug/segfault.c: Don't include <bp-checks.h>.
58150         * sysdeps/generic/bp-checks.h: Remove file.
58151         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
58152         (__GETDENTS): Don't use CHECK_N.
58153         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
58154         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
58155         (__getgroups): Don't use CHECK_N.
58156         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
58157         (setgroups): Don't use CHECK_N.
58158         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
58159         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
58160         (__libc_msgrcv): Don't use CHECK_N.
58161         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
58162         (__libc_msgsnd): Don't use CHECK_N.
58163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
58164         <bp-checks.h>.
58165         (__libc_pread): Don't use CHECK_N.
58166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
58167         include <bp-checks.h>.
58168         (__libc_pread64): Don't use CHECK_N.
58169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
58170         include <bp-checks.h>.
58171         (__libc_pwrite): Don't use CHECK_N.
58172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
58173         include <bp-checks.h>.
58174         (__libc_pwrite64): Don't use CHECK_N.
58175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
58176         <bp-checks.h>.
58177         (__libc_pread): Don't use CHECK_N.
58178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
58179         include <bp-checks.h>.
58180         (__libc_pread64): Don't use CHECK_N.
58181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
58182         include <bp-checks.h>.
58183         (__libc_pwrite): Don't use CHECK_N.
58184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
58185         include <bp-checks.h>.
58186         (__libc_pwrite64): Don't use CHECK_N.
58187         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
58188         (do_pread): Don't use CHECK_N.
58189         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
58190         (do_pread64): Don't use CHECK_N.
58191         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
58192         (do_pwrite): Don't use CHECK_N.
58193         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
58194         (do_pwrite64): Don't use CHECK_N.
58195         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
58196         (__libc_readv): Don't use CHECK_N.
58197         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
58198         (semop): Don't use CHECK_N.
58199         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
58200         <bp-checks.h>.
58201         (semtimedop): Don't use CHECK_N.
58202         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
58203         (__libc_pread): Don't use CHECK_N.
58204         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
58205         <bp-checks.h>.
58206         (__libc_pread64): Don't use CHECK_N.
58207         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
58208         <bp-checks.h>.
58209         (__libc_pwrite): Don't use CHECK_N.
58210         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
58211         <bp-checks.h>.
58212         (__libc_pwrite64): Don't use CHECK_N.
58213         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
58214         <bp-checks.h>.
58215         (__libc_msgrcv): Don't use CHECK_N.
58216         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
58217         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
58218         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
58219         (__libc_writev): Don't use CHECK_N.
58220
58221 2013-02-08  Roland McGrath  <roland@hack.frob.com>
58222
58223         * string/strcpy.c: Removed unused variable.
58224
58225         * Makeconfig (+sysdep-includes): Define with := rather than =.
58226         Use an existing include/ subdir of each sysdeps dir before it.
58227
58228 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58229
58230         * nscd/connection.c (register_traced_file): Comment function.
58231         [HAVE_INOTIFY] (union __inev): Define.
58232         [HAVE_INOTIFY] (inotify_check_files): New function.
58233         [HAVE_INOTIFY] (clear_db_cache): Likewise.
58234         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
58235         clear_db_cache.
58236         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
58237
58238 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58239
58240         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
58241         loaded if not already and that a failure is permanent.
58242
58243 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
58244
58245         [BZ #15006]
58246         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
58247         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
58248
58249 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
58250
58251         [BZ #13550]
58252         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
58253         (CHECK_1_NULL_OK): Likewise.
58254         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
58255         (__fxstat): Do not use CHECK_1.
58256         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
58257         <bp-checks.h>.
58258         (___fxstat64): Do not use CHECK_1.
58259         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
58260         <bp-checks.h>.
58261         (__fxstatat): Do not use CHECK_1.
58262         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
58263         <bp-checks.h>.
58264         (__fxstatat64): Do not use CHECK_1.
58265         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
58266         <bp-checks.h>.
58267         (__fxstat): Do not use CHECK_1.
58268         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
58269         <bp-checks.h>.
58270         (__fxstatat): Do not use CHECK_1.
58271         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
58272         <bp-checks.h>.
58273         (__getresgid): Do not use CHECK_1.
58274         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
58275         <bp-checks.h>.
58276         (__getresuid): Do not use CHECK_1.
58277         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
58278         <bp-checks.h>.
58279         (__lxstat): Do not use CHECK_1.
58280         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
58281         <bp-checks.h>.
58282         (__old_msgctl): Do not use CHECK_1.
58283         (__new_msgctl): Likewise.
58284         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
58285         <bp-checks.h>.
58286         (__new_setrlimit): Do not use CHECK_1.
58287         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
58288         <bp-checks.h>.
58289         (__old_shmctl): Do not use CHECK_1.
58290         (__new_shmctl): Likewise.
58291         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
58292         <bp-checks.h>.
58293         (__xstat): Do not use CHECK_1.
58294         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
58295         (__lxstat): Do not use CHECK_1.
58296         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
58297         <bp-checks.h>.
58298         (___lxstat64): Do not use CHECK_1.
58299         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
58300         (__old_msgctl): Do not use CHECK_1.
58301         (__new_msgctl): Likewise.
58302         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
58303         <bp-checks.h>.
58304         (__gettimeofday): Do not use CHECK_1.
58305         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
58306         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
58307         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
58308         <bp-checks.h>.
58309         (__gettimeofday): Do not use CHECK_1.
58310         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
58311         (__old_shmctl): Do not use CHECK_1_NULL_OK.
58312         (__new_shmctl): Do not use CHECK_1.
58313         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
58314         <bp-checks.h>.
58315         (do_sigtimedwait): Do not use CHECK_1.
58316         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
58317         <bp-checks.h>.
58318         (do_sigwaitinfo): Do not use CHECK_1.
58319         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
58320         <bp-checks.h>.
58321         (msgctl): Do not use CHECK_1.
58322         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
58323         <bp-checks.h>.
58324         (shmctl): Do not use CHECK_1.
58325         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
58326         (ustat): Do not use CHECK_1.
58327         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
58328         <bp-checks.h>.
58329         (__fxstat): Do not use CHECK_1.
58330         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
58331         <bp-checks.h>.
58332         (__fxstatat): Do not use CHECK_1.
58333         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
58334         <bp-checks.h>.
58335         (__lxstat): Do not use CHECK_1.
58336         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
58337         <bp-checks.h>.
58338         (__xstat): Do not use CHECK_1.
58339         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
58340         (__xstat): Do not use CHECK_1.
58341         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
58342         (___xstat64): Do not use CHECK_1.
58343
58344         [BZ #13550]
58345         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
58346         definitions.
58347         (CHECK_BOUNDS_HIGH): Likewise.
58348         * string/strcpy.c: Do not include <bp-checks.h>.
58349         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
58350
58351 2013-02-07  Roland McGrath  <roland@hack.frob.com>
58352
58353         * nscd/nscd-client.h (__nscd_drop_map_ref):
58354         Add __attribute__ ((unused)).
58355         * nis/nss-nisplus.h (niserr2nss): Likewise.
58356
58357         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
58358         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
58359
58360         * csu/libc-tls.c (init_static_tls, init_slotinfo):
58361         Remove inline keyword.
58362         * include/rounding-mode.h (round_away): Likewise.
58363         * libio/wfileops.c (adjust_wide_data): Likewise.
58364         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
58365         (__m128i_strloadu_tolower): Likewise.
58366         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
58367         (__m128i_strloadu_tolower): Likewise.
58368         * time/mktime.c (ydhms_diff): Likewise.
58369         * locale/elem-hash.h (elem_hash): Likewise.
58370         * locale/setlocale.c (setdata): Likewise.
58371         * posix/regex_internal.h (re_string_char_size_at): Likewise.
58372         (re_string_wchar_at): Likewise.
58373         (bitset_not, bitset_merge, bitset_mask): Likewise.
58374         [!(__GNUC__ > 3)] (inline): Remove macro.
58375         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
58376         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
58377         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
58378         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
58379         * string/memcmp.c (memcmp_bytes): Likewise.
58380         * locale/programs/locarchive.c (compute_hashval): Likewise.
58381         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
58382         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
58383         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
58384         * nss/getent.c (print_rpc, print_protocols): Likewise.
58385         (print_passwd, print_group, print_aliases): Likewise.
58386         * nis/nss-nisplus.h (niserr2nss): Likewise.
58387         * nscd/connections.c (restart_p): Likewise.
58388         Change return type to bool.
58389
58390 2013-02-05  Roland McGrath  <roland@hack.frob.com>
58391
58392         * Makeconfig (all-Depend-files): Add existing
58393         $(sorted-subdirs:=/Depend) files.
58394         (all-subdirs): Remove nss.
58395         * sysdeps/unix/inet/Subdirs: Add it here instead.
58396         * hesiod/Depend: New file.
58397
58398         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
58399         instead of calling alloca.
58400
58401         * io/lseek.c (__lseek): Rename to __libc_lseek.
58402         Define __lseek as an alias.
58403
58404         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
58405
58406 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
58407
58408         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
58409         else clause and remove check for non-standard endianness.
58410
58411 2013-02-04  David S. Miller  <davem@davemloft.net>
58412
58413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58414
58415 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
58416
58417         [BZ #13550]
58418         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
58419         (__ubp_memchr): Remove prototype.
58420         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
58421         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58422         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
58423         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
58424         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
58425         Remove alias.
58426         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
58427         (__ubp_memchr): Likewise.
58428         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
58429         (__ubp_memchr): Likewise.
58430         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
58431         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
58432         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
58433         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
58434         CHECK_STRING.
58435         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
58436         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
58437         (__getcwd): Do not use CHECK_STRING.
58438         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
58439         <bp-checks.h>.
58440         (__real_chown): Do not use CHECK_STRING.
58441         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
58442         <bp-checks.h>.
58443         (fchownat): Do not use CHECK_STRING.
58444         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
58445         CHECK_STRING.
58446         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
58447         <bp-checks.h>.
58448         (__lchown): Do not use CHECK_STRING.
58449         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
58450         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
58451         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
58452         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
58453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
58454         include <bp-checks.h>.
58455         (truncate64): Do not use CHECK_STRING.
58456         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
58457         <bp-checks.h>.
58458         (__real_chown): Do not use CHECK_STRING.
58459         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
58460         <bp-checks.h>.
58461         (__lchown): Do not use CHECK_STRING.
58462         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
58463         <bp-checks.h>.
58464         (__chown): Do not use CHECK_STRING.
58465         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
58466         <bp-checks.h>.
58467         (truncate64): Do not use CHECK_STRING.
58468         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
58469         Likewise.
58470         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
58471         (__xmknod): Do not use CHECK_STRING.
58472         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
58473         <bp-checks.h>.
58474         (__xmknodat): Do not use CHECK_STRING.
58475         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
58476         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
58477
58478 2013-02-04  Andreas Schwab  <schwab@suse.de>
58479
58480         [BZ #14142]
58481         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
58482         * include/netdb.h: Likewise for h_errno.
58483         * elf/tst-stackguard1.c: Include <tls.h>.
58484
58485 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
58486
58487         * elf/link.h (struct link_map): Extend the l_addr comment.
58488         * include/link.h (struct link_map): Likewise.
58489
58490 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
58491
58492         [BZ #13550]
58493         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
58494         (BOUNDED_1): Remove macro.
58495         * debug/backtrace.c: Don't include <bp-checks.h>.
58496         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
58497         (__backtrace): Likewise.
58498         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
58499         <bp-checks.h>.
58500         (__backtrace): Don't use BOUNDED_1.
58501         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
58502         <bp-checks.h>.
58503         (__backtrace): Don't use BOUNDED_1.
58504         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
58505         (__backtrace): Don't use BOUNDED_1.
58506         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
58507         (shmat): Don't use BOUNDED_N.
58508
58509 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
58510
58511         [BZ #13550]
58512         * sysdeps/generic/bp-start.h: Remove file.
58513         * csu/libc-start.c: Don't include <bp-start.h>.
58514         (LIBC_START_MAIN): Set up __environ directly instead of using
58515         INIT_ARGV_and_ENVIRON.
58516         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
58517         <bp-start.h>.
58518
58519         [BZ #13550]
58520         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
58521         definitions.
58522         (CHECK_FCNTL): Likewise.
58523         (CHECK_N_PAGES): Likewise.
58524
58525         [BZ #13550]
58526         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
58527         definitions.
58528         (CHECK_SIGSET_NULL_OK): Likewise.
58529         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
58530         <bp-checks.h>.
58531         (sigpending): Don't use CHECK_SIGSET.
58532         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
58533         <bp-checks.h>.
58534         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58535         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
58536         <bp-checks.h>.
58537         (do_sigsuspend): Don't use CHECK_SIGSET.
58538         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
58539         use CHECK_SIGSET.
58540         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
58541         (do_sigwait): Don't use CHECK_SIGSET.
58542         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
58543         use CHECK_SIGSET.
58544         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
58545         include <bp-checks.h>.
58546         (sigpending): Don't use CHECK_SIGSET.
58547         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
58548         include <bp-checks.h>.
58549         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58550         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
58551         <bp-checks.h>.
58552         (sigpending): Don't use CHECK_SIGSET.
58553         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
58554         <bp-checks.h>.
58555         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
58556
58557         [BZ #13550]
58558         * sysdeps/generic/bp-semctl.h: Remove file.
58559         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
58560         <bp-checks.h> and <bp-semctl.h>.
58561         (__old_semctl): Don't use CHECK_SEMCTL.
58562         (__new_semctl): Likewise.
58563         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
58564         and <bp-semctl.h>.
58565         (__old_semctl): Don't use CHECK_SEMCTL.
58566         (__new_semctl): Likewise.
58567         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
58568         <bp-checks.h> and <bp-semctl.h>.
58569         (__old_semctl): Don't use CHECK_SEMCTL.
58570         (__new_semctl): Likewise.
58571         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
58572         <bp-checks.h> and <bp-semctl.h>.
58573         (semctl): Don't use CHECK_SEMCTL.
58574
58575         [BZ #13550]
58576         * Makerules (elide-bp-thunks): Remove variable.
58577         (elide-routines.oS): Don't use $(elide-bp-thunks).
58578         (elide-routines.os): Likewise.
58579         (elide-routines.o): Likewise.
58580         (elide-routines.op): Likewise.
58581         (elide-routines.og): Likewise.
58582         (objects): Don't use $(bp-thunks).
58583         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
58584         include.
58585         (common-generated): Do not add s-proto-bp.d.
58586         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
58587         (int): Likewise.
58588         (typ): Likewise.
58589         Do not generate makefile rules for bounded-pointer thunks.
58590         * sysdeps/generic/bp-thunks.h: Remove file.
58591         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
58592         * sysdeps/unix/s-proto-bp.S: Likewise.
58593
58594         [BZ #15062]
58595         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
58596         parts of result separately when argument is not close to line from
58597         -i to i and one part of argument is small.
58598         * math/k_casinhf.c (__kernel_casinhf): Likewise.
58599         * math/k_casinhl.c (__kernel_casinhl): Likewise.
58600         * math/libm-test.inc (cacos_test): Add more tests.
58601         (casin_test): Likewise.
58602         (casinh_test): Likewise.
58603         * sysdeps/i386/fpu/libm-test-ulps: Update.
58604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58605
58606 2013-01-31  David S. Miller  <davem@davemloft.net>
58607
58608         * po/de.po: Update from translation team.
58609
58610 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
58611
58612         * time/tzfile.c: Include stdint.h for SIZE_MAX.
58613
58614 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
58615
58616         * configure.in (_AC_PROG_CC_C89): New definition.
58617         * configure: Regenerate.
58618
58619         * configure.in (AC_PROG_CPP): New definition.
58620         * configure: Regenerate.
58621
58622 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58623
58624         * debug/tst-backtrace.h: New file.
58625         * debug/tst-backtrace2.c: Include tst-backtrace.h.
58626         (ret): Remove variable.
58627         (x): Likewise.
58628         (FAIL): Remove macro.
58629         (NO_INLINE): Likewise.
58630         (fn1): Use match function instead of strstr.
58631         * debug/tst-backtrace3.c: Include tst-backtrace.h.
58632         (ret): Remove variable.
58633         (x): Likewise.
58634         (FAIL): Remove macro.
58635         (NO_INLINE): Likewise.
58636         (fn): Use match function instead of strstr.
58637         * debug/tst-backtrace4.c: Include tst-backtrace.h.
58638         (ret): Remove variable.
58639         (x): Likewise.
58640         (FAIL): Remove macro.
58641         (NO_INLINE): Likewise.
58642         (handle_signal): Use match function instead of strstr.
58643         * debug/tst-backtrace5.c: Include tst-backtrace.h.
58644         (ret): Remove variable.
58645         (x): Likewise.
58646         (FAIL): Remove macro.
58647         (NO_INLINE): Likewise.
58648         (handle_signal): Use match function instead of strstr.
58649
58650 2013-01-23  Roland McGrath  <roland@hack.frob.com>
58651
58652         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
58653
58654 2013-01-23  David S. Miller  <davem@davemloft.net>
58655
58656         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
58657         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
58658         argument of CAS if possible.
58659         * sysdeps/sparc/sparc64/bits/atomic.h
58660         (__arch_compare_and_exchange_val_32_acq): Likewise.
58661         (__arch_compare_and_exchange_val_64_acq): Likewise.
58662
58663 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
58664
58665         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
58666         * sysdeps/posix/ulimit.c: ... this.
58667         Include <limits.h>.
58668         * sysdeps/unix/bsd/ulimit.c: Remove file.
58669
58670 2013-01-23  Adam Conrad  <adconrad@0c3.net>
58671
58672         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
58673         (LDFLAGS-tst-array5): Likewise.
58674
58675 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
58676
58677         [BZ #15036]
58678         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
58679         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
58680         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
58681         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
58682
58683 2013-01-21  David S. Miller  <davem@davemloft.net>
58684
58685         * sysdeps/sparc/backtrace.c: New file.
58686         * sysdeps/sparc/sparc32/backtrace.h: New file.
58687         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
58688         * sysdeps/sparc/sparc64/backtrace.h: New file.
58689         * sysdeps/sparc/sparc64/backtrace.c: Delete.
58690         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
58691         -funwind-tables.
58692
58693 2013-01-21  Andreas Schwab  <schwab@suse.de>
58694
58695         [BZ #15020]
58696         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
58697         closed its stdout.
58698
58699 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
58700
58701         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
58702         "mpa2.h".
58703         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58704
58705 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
58706             Mark Mitchell  <mark@codesourcery.com>
58707             Tom de Vries  <tom@codesourcery.com>
58708             Paul Pluzhnikov  <ppluzhnikov@google.com>
58709
58710         * debug/tst-backtrace2.c: New file.
58711         * debug/tst-backtrace3.c: Likewise.
58712         * debug/tst-backtrace4.c: Likewise.
58713         * debug/tst-backtrace5.c: Likewise.
58714         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
58715         (CFLAGS-tst-backtrace3.c): Likewise.
58716         (CFLAGS-tst-backtrace4.c): Likewise.
58717         (CFLAGS-tst-backtrace5.c): Likewise.
58718         (LDFLAGS-tst-backtrace2): Likewise.
58719         (LDFLAGS-tst-backtrace3): Likewise.
58720         (LDFLAGS-tst-backtrace4): Likewise.
58721         (LDFLAGS-tst-backtrace5): Likewise.
58722         (tests): Add new tests tst-backtrace2, tst-backtrace3,
58723         tst-backtrace4 and tst-backtrace5.
58724
58725 2013-01-18  Anton Blanchard  <anton@samba.org>
58726             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
58727
58728         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
58729         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
58730         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
58731         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
58732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
58733         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
58734         "+r" and remove output regs list as redundant.  Add explicit inline
58735         asm to specify register of return val to work around compiler codegen
58736         bug.  Remove (int) cast on return value.  Add return type parameter to
58737         use in macro so that this macro does not truncate return value for
58738         64-bit values.
58739         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
58740         pass to INTERNAL_VSYSCALL_NCS.
58741         (INLINE_VSYSCALL): Add 'long int' as return type to
58742         INTERNAL_VSYSCALL_NCS macro invocation.
58743         (INTERNAL_VSYSCALL): Add 'long int' as return type to
58744         INTERNAL_VSYSCALL_NCS macro invocation.
58745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
58746
58747 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58748
58749         [BZ #14496]
58750         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
58751         Fix application of SIMD FP exception mask.
58752
58753         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
58754         mp_no from a power of two.
58755         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
58756         __mpexp_twomm1.  Use __pow_mp.
58757
58758         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
58759         multiplication.
58760
58761 2013-01-17  David S. Miller  <davem@davemloft.net>
58762
58763         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58764
58765 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
58766
58767         [BZ #15023]
58768         * include/complex.h: Condition contents on [!_COMPLEX_H].
58769         (__kernel_casinhf): New prototype.
58770         (__kernel_casinh): Likewise.
58771         (__kernel_casinhl): Likewise.
58772         * math/Makefile (libm_calls): Add k_casinh.
58773         * math/k_casinh.c: New file.
58774         * math/k_casinhf.c: Likewise.
58775         * math/k_casinhl.c: Likewise.
58776         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
58777         finite nonzero arguments.
58778         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
58779         finite nonzero arguments.
58780         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
58781         finite nonzero arguments.
58782         * math/s_casinh.c: Do not include <float.h>.
58783         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
58784         * math/s_casinhf.c: Do not include <float.h>.
58785         (__casinhf): Move code for finite nonzero arguments to
58786         k_casinhf.c.
58787         * math/s_casinhl.c: Do not include <float.h>.
58788         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
58789         redefine.
58790         (__casinhl): Move code for finite nonzero arguments to
58791         k_casinhl.c.
58792         * math/libm-test.inc (cacos_test): Add more tests.
58793         * sysdeps/i386/fpu/libm-test-ulps: Update.
58794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58795
58796 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
58797
58798         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
58799         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
58800         [!HAVE_MREMAP]: Remove [defined linux] case.
58801         * malloc/arena.c: Do not include <malloc-sysdep.h>.
58802
58803 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
58804
58805         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
58806
58807 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
58808
58809         * elf/elf.h (R_386_SIZE32): New relocation.
58810         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
58811         R_386_SIZE32.
58812         (elf_machine_rela): Likewise.
58813         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
58814         R_X86_64_SIZE64 and R_X86_64_SIZE32.
58815
58816 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
58817
58818         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
58819         (FP_FAST_FMA): Do not define.
58820         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
58821         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
58822         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
58823         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
58824         !_SOFT_FLOAT]: Likewise.
58825         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
58826         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
58827         value.
58828         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
58829         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
58830         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
58831         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
58832         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
58833         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
58834         file.
58835
58836 2013-01-16  Andreas Schwab  <schwab@suse.de>
58837
58838         [BZ #14327]
58839         * include/stdlib.h (__mktemp): Add declaration.
58840         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
58841         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
58842
58843 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
58844
58845         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
58846         definitions.
58847         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
58848         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
58849         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
58850         definitions here.
58851         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
58852         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
58853         definitions.
58854         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
58855         and ONE.
58856         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
58857         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
58858         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
58859         definitions.
58860         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
58861         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
58862         definitions.
58863         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
58864
58865         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
58866
58867 2013-01-15  David S. Miller  <davem@davemloft.net>
58868
58869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
58870         trunc{,f} to libm-sysdep_routes.
58871         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
58872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
58873         file.
58874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
58875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
58876         file.
58877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
58878         file.
58879         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
58880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
58881         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
58882         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
58883         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
58884         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
58885         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
58886         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
58887
58888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
58889         nearbyint{,f} to libm-sysdep_routes.
58890         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
58891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
58892         New file.
58893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
58894         file.
58895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
58896         New file.
58897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
58898         file.
58899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
58900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
58901         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
58902         file.
58903         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
58904         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
58905         file.
58906         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
58907         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
58908         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
58909
58910         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
58911         libc_feholdexcept and libc_fesetenv.
58912
58913 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
58914
58915         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
58916
58917 2013-01-14  David S. Miller  <davem@davemloft.net>
58918
58919         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
58920         (SPARC_ASM_VIS2_IFUNC): Likewise.
58921         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
58922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
58923         use of 'siam' instruction.
58924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
58925         Likewise.
58926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
58927         Likewise.
58928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
58929         Likewise.
58930         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
58931         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
58932         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
58933         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
58934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
58935         file.
58936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
58937         file.
58938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
58939         file.
58940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
58941         file.
58942         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
58943         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
58944         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
58945         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
58946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
58947         new VIS2 routines.
58948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
58949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
58950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
58951         Likewise.
58952         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
58953         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
58954         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
58955         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
58956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
58957         routines to libm-sysdep_routines.
58958         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
58959
58960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
58961         fdim/fdimf to libm-sysdep_routines.
58962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
58963         file.
58964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
58965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
58966         file.
58967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
58968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
58969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
58970         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
58971         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
58972         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
58973         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
58974
58975 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
58976
58977         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
58978         to optimize copies.
58979
58980         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
58981         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
58982         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
58983
58984         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
58985         local variable MPTWO.
58986         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
58987         Likewise.
58988
58989 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
58990
58991         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
58992         GLOB_NOESCAPE.
58993
58994 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
58995
58996         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
58997
58998 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
58999
59000         * manual/pattern.texi (glob_t): Document gl_flags.
59001         (glob64_t): Likewise.
59002
59003 2013-01-11  David S. Miller  <davem@davemloft.net>
59004
59005         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
59006         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
59007         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
59008         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
59009         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
59010         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
59011         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
59012         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
59013         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
59014         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
59015         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
59016         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
59017         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
59018
59019         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59020         sparc V9 rather than using V8 code.
59021         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59022         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59023
59024         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
59025         Move to...
59026         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
59027         Here.
59028
59029 2013-01-11  Roland McGrath  <roland@hack.frob.com>
59030
59031         [BZ #14941]
59032         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
59033         not in the main loop.
59034         * configure: Regenerated.
59035
59036 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
59037
59038         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
59039         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
59040         to just #else.
59041         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
59042         [!__GLIBC_HAVE_LONG_LONG] case.
59043         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
59044         condition to just #else.
59045         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
59046         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
59047         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
59048         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
59049         unconditional.
59050         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
59051         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59052         #elif condition to just #else.
59053         * sysdeps/unix/sysv/linux/sys/sysmacros.h
59054         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
59055         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
59056         #elif condition to just #else.
59057
59058 2013-01-11  Steve Ellcey  <sellcey@mips.com>
59059
59060         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
59061         (EF_MIPS_ARCH_64): Fix value.
59062         (EF_MIPS_ARCH_32R2): New.
59063         (EF_MIPS_ARCH_64R2): New.
59064
59065 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
59066
59067         * Makeconfig (+link-pie-before-libc): New.
59068         (+link-pie-after-libc): Likewise.
59069         (+link-pie-tests): Likewise.
59070         (+link-pie): Rewritten.
59071         (link-before-libc): Remove $(config-LDFLAGS).
59072         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
59073         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
59074         (config-LDFLAGS): Renamed to ...
59075         (rtld-LDFLAGS): This.
59076         (rtld-tests-LDFLAGS): New macro.
59077         (link-libc-rpath-link): Likewise.
59078         (link-libc-tests-rpath-link): Likewise.
59079         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
59080         (link-libc): Prepand $(link-libc-rpath-link).
59081         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
59082         (test-program-prefix): New macro.
59083         (test-via-rtld-prefix): Likewise.
59084         (test-program-cmd): Likewise.
59085         (host-test-program-cmd): Likewise.
59086         * Makefile ($(common-objpfx)testrun.sh): Replace
59087         $(run-program-prefix) with $(test-program-prefix).
59088         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
59089         $(rtld-LDFLAGS).
59090         ($(common-objpfx)shlib.lds): Likewise.
59091         (build-module-helper): Likewise.
59092         ($(common-objpfx)format.lds): Likewise.
59093         * Rules (binaries-pie-tests): New.
59094         (binaries-pie-notests): Likewise.
59095         (binaries-pie): Rewritten.
59096         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
59097         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
59098         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
59099         (make-test-out): Replace $(host-built-program-cmd) with
59100         $(host-test-program-cmd).
59101         * config.make.in (build-hardcoded-path-in-tests): New variable.
59102         * configure.in (--enable-hardcoded-path-in-tests): New configure
59103         option.
59104         (hardcoded_path_in_tests): New AC_SUBST.
59105         * configure: Regenerated.
59106         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
59107         $(built-program-cmd) with $(test-program-cmd).
59108         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
59109         (test_program_cmd): This.
59110         * elf/Makefile ($(objpfx)order.out): Run test with
59111         $(test-program-prefix).
59112         ($(objpfx)order2.out): Likewise.
59113         ($(objpfx)tst-initorder.out): Likewise.
59114         ($(objpfx)tst-initorder2.out): Likewise.
59115         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
59116         $(test-program-cmd).
59117         ($(objpfx)tst-array1-static.out): Likewise.
59118         ($(objpfx)tst-array2.out): Likewise.
59119         ($(objpfx)tst-array3.out): Likewise.
59120         ($(objpfx)tst-array4.out): Likewise.
59121         ($(objpfx)tst-array5.out): Likewise.
59122         ($(objpfx)tst-array5-static.out): Likewise.
59123         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
59124         $(test-program-cmd).
59125         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
59126         $(run-program-prefix) with $(test-program-prefix).
59127         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
59128         (test_program_prefix): This.
59129         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
59130         $(run-program-prefix) with $(test-program-prefix).
59131         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
59132         (test_program_prefix): This.
59133         * iconvdata/tst-tables.sh: Likewise.
59134         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
59135         $(run-program-prefix) with $(test-program-prefix).
59136         ($(objpfx)tst-translit.out): Likewise.
59137         ($(objpfx)tst-gettext2.out): Likewise.
59138         ($(objpfx)tst-gettext4.out): Likewise.
59139         ($(objpfx)tst-gettext6.out): Likewise.
59140         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
59141         (test_program_prefix): This.
59142         * intl/tst-gettext2.sh: Likewise.
59143         * intl/tst-gettext4.sh  Likewise.
59144         * intl/tst-gettext6.sh: Likewise.
59145         * intl/tst-translit.sh: Likewise.
59146         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
59147         with $(test-program-cmd).
59148         * libio/Makefile ($(objpfx)test-freopen.out): Replace
59149         $(run-program-prefix) with $(test-program-prefix).
59150         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
59151         (test_program_prefix): This.
59152         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
59153         $(run-program-prefix) with $(test-program-prefix).
59154         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
59155         (test_program_prefix): This.
59156         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
59157         * posix/Makefile ($(objpfx)globtest.out): Replace
59158         $(run-via-rtld-prefix) and $(test-wrapper) with
59159         $(test-program-prefix) and $(test-via-rtld-prefix).
59160         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
59161         $(test-program-prefix).
59162         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
59163         $(host-test-program-cmd).
59164         (tst-spawn-ARGS): Likewise.
59165         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
59166         $(test-program-prefix).
59167         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
59168         (test_via_rtld_prefix): This.
59169         (test_wrapper): Renamed to ...
59170         (test_program_prefix): This.
59171         (run_program_prefix): Replaced by test_program_prefix.
59172         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
59173         (test_program_prefix): This.
59174         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
59175         with $(host-test-program-cmd).
59176         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
59177         $(run-program-prefix) with $(test-program-prefix).
59178         ($(objpfx)tst-printf.out): Likewise.
59179         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
59180         $(test-program-cmd).
59181         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
59182         (test_program_prefix): This.
59183         * stdio-common/tst-unbputc.sh: Likewise.
59184         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
59185         $(run-program-prefix) with $(test-program-prefix).
59186         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
59187         (test_program_prefix): This.
59188         * string/Makefile ($(objpfx)tst-svc.out):  Replace
59189         $(built-program-cmd) with $(test-program-cmd).
59190
59191 2013-01-11  Andreas Jaeger  <aj@suse.de>
59192
59193         [BZ #15003]
59194         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
59195         value. Sync with Linux 3.7.
59196
59197 2013-01-10  David S. Miller  <davem@davemloft.net>
59198
59199         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
59200         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59201         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59202
59203 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59204
59205         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
59206         never set.
59207         * configure: Regenerated.
59208
59209 2013-01-10  David S. Miller  <davem@davemloft.net>
59210
59211         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
59212         sparc V9 rather than using V8 code.
59213         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
59214         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
59215
59216 2013-01-10  Roland McGrath  <roland@hack.frob.com>
59217
59218         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
59219         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
59220         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
59221         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
59222         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
59223         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
59224         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
59225         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
59226         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
59227         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
59228         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
59229         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
59230         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
59231         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
59232         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
59233         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
59234         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
59235         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
59236         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
59237         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
59238         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
59239         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
59240         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
59241         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
59242         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
59243         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
59244         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
59245
59246 2013-01-10  David S. Miller  <davem@davemloft.net>
59247
59248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59249
59250 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59251
59252         * posix/Makefile (tests-static): New variable.
59253         (tests): Add $(tests-static).
59254         (tst-exec-static-ARGS): New variable.
59255         (tst-spawn-static-ARGS): Likewise.
59256         * posix/tst-exec-static.c: New file.
59257         * posix/tst-spawn-static.c: Likewise.
59258         * posix/tst-exec.c: Support run directly.
59259         * posix/tst-spawn.c: Likewise.
59260
59261 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
59262
59263         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
59264         long.
59265         * math/bits/mathcalls.h (llrint): Likewise.
59266         (llround): Likewise.
59267         * stdlib/stdlib.h (struct drand48_data): Likewise.
59268         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
59269         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
59270         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
59271         Likewise.
59272         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
59273         Likewise.
59274         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
59275         (elf_greg_t): Likewise.
59276         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
59277         (__jmp_buf): Likewise.
59278         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
59279         definitions.
59280         (llrint): Likewise, for all definitions.
59281         (llrintl): Likewise.
59282
59283         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
59284         Remove [__GNUC__] condition.
59285         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
59286         condition to just [__USE_ISOC99].
59287         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
59288
59289 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
59290
59291         [BZ #14200]
59292         * sysdeps/unix/sysv/linux/x86/bits/environments.h
59293         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
59294         defined.
59295         (_POSIX_V6_ILP32_OFF32): Likewise.
59296         (_XBS5_ILP32_OFF32): Likewise.
59297         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
59298         (__ILP32_OFFBIG_LDFLAGS): Likewise.
59299
59300 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59301
59302         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
59303
59304         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
59305         doubles __mpexp_twomm1.  Adjust usage.
59306         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
59307         Remove.
59308
59309 2013-01-10  Andreas Schwab  <schwab@suse.de>
59310
59311         [BZ #14964]
59312         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
59313         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
59314
59315 2013-01-09  David S. Miller  <davem@davemloft.net>
59316
59317         [BZ #15003]
59318         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
59319         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
59320         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
59321         (TCP_FASTOPEN): Define.
59322         (tcp_repair_opt): New structure.
59323         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
59324         enum values.
59325         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
59326         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
59327         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
59328         (tcp_cookie_transactions): New structure.
59329
59330 2013-01-09  Anton Blanchard  <anton@samba.org>
59331
59332         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
59333         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
59334         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
59335         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
59336
59337 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
59338
59339         * include/features.h (__USE_ANSI): Remove.
59340
59341 2013-01-09  Roland McGrath  <roland@hack.frob.com>
59342
59343         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
59344
59345         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
59346
59347 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
59348
59349         * sysdeps/s390/fpu/libm-test-ulps: Update.
59350
59351         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59352
59353         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
59354         (__acr): Likewise.
59355         (__cpy): Likewise.
59356         (norm): Likewise.
59357         (denorm): Likewise.
59358         (__mp_dbl): Likewise.
59359         (__dbl_mp): Likewise.
59360         (add_magnitudes): Likewise.
59361         (sub_magnitudes): Likewise.
59362         (__add): Likewise.
59363         (__sub): Likewise.
59364         (__mul): Likewise.
59365         (__inv): Likewise.
59366         (__dvd): Likewise.
59367         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
59368         (__acr): Likewise.
59369         (__cpy): Likewise.
59370         (norm): Likewise.
59371         (denorm): Likewise.
59372         (__mp_dbl): Likewise.
59373         (__dbl_mp): Likewise.
59374         (add_magnitudes): Likewise.
59375         (sub_magnitudes): Likewise.
59376         (__add): Likewise.
59377         (__sub): Likewise.
59378         (__mul): Likewise.
59379         (__inv): Likewise.
59380         (__dvd): Likewise.
59381         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
59382         (__acr): Likewise.
59383         (__cpy): Likewise.
59384         (norm): Likewise.
59385         (denorm): Likewise.
59386         (__mp_dbl): Likewise.
59387         (__dbl_mp): Likewise.
59388         (add_magnitudes): Likewise.
59389         (sub_magnitudes): Likewise.
59390         (__add): Likewise.
59391         (__sub): Likewise.
59392         (__mul): Likewise.
59393         (__inv): Likewise.
59394         (__dvd): Likewise.
59395
59396 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
59397
59398         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
59399         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
59400         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
59401         2 && __USE_EXTERN_INLINES]: Likewise.
59402
59403 2013-01-08  Andreas Jaeger  <aj@suse.de>
59404
59405         [BZ# 14985]
59406         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
59407         Remove.
59408         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59409         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
59410
59411 2013-01-07  Anton Blanchard  <anton@samba.org>
59412
59413         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
59414         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
59415         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
59416         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
59417         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
59418         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
59419         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
59420         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59421         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59422         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59423         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
59424         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
59425         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
59426         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
59427         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
59428         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
59429         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
59430         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
59431         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
59432         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
59433         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
59434         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
59435         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
59436         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
59437         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
59438         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
59439         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
59440         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
59441         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
59442         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
59443         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
59444         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59445         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59446         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
59447         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
59448         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
59449         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
59450         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
59451         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
59452         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
59453         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
59454         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
59455         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
59456
59457 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
59458
59459         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
59460         (__MALLOC_PMT): Likewise.
59461         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
59462         [__GNUC__], only on [_LIBC].
59463         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59464         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
59465         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
59466         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
59467         forward declaration.
59468         (realloc_hook_ini): Likewise.
59469         (memalign_hook_ini): Likewise.
59470         (__libc_memalign): Do not use __MALLOC_PMT in variable
59471         declaration.
59472         (__libc_valloc): Likewise.
59473         (__libc_pvalloc): Likewise.
59474         (__libc_calloc): Likewise.
59475         (__posix_memalign): Likewise.
59476
59477         [BZ #14996]
59478         * math/s_casinh.c: Include <float.h>.
59479         (__casinh): Do not do computation with squaring and square root
59480         for large arguments.
59481         * math/s_casinhf.c: Include <float.h>.
59482         (__casinhf): Do not do computation with squaring and square root
59483         for large arguments.
59484         * math/s_casinhl.c: Include <float.h>.
59485         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
59486         (__casinhl): Do not do computation with squaring and square root
59487         for large arguments.
59488         * math/libm-test.inc (casin_test): Add more tests.
59489         (casinh_test): Likewise.
59490         * sysdeps/i386/fpu/libm-test-ulps: Update.
59491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59492
59493 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
59494
59495         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
59496         (__x86_64_raw_data_cache_size): Likewise.
59497         (__x86_64_data_cache_size_half): Likewise.
59498         (__x86_64_raw_data_cache_size_half): Likewise.
59499         (__x86_64_shared_cache_size): Likewise.
59500         (__x86_64_raw_shared_cache_size): Likewise.
59501         (__x86_64_shared_cache_size_half): Likewise.
59502         (__x86_64_raw_shared_cache_size_half): Likewise.
59503         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
59504         to ...
59505         (__x86_data_cache_size): This.
59506         (__x86_64_raw_data_cache_size): Renamed to ...
59507         (__x86_raw_data_cache_size): This.
59508         (__x86_64_data_cache_size_half): Renamed to ...
59509         (__x86_data_cache_size_half): This.
59510         (__x86_64_raw_data_cache_size_half): Renamed to ...
59511         (__x86_raw_data_cache_size_half): This.
59512         (__x86_64_shared_cache_size): Renamed to ...
59513         (__x86_shared_cache_size): This.
59514         (__x86_64_raw_shared_cache_size): Renamed to ...
59515         (__x86_raw_shared_cache_size): This.
59516         (__x86_64_shared_cache_size_half): Renamed to ...
59517         (__x86_shared_cache_size_half): This.
59518         (__x86_64_raw_shared_cache_size_half): Renamed to ...
59519         (__x86_raw_shared_cache_size_half): This.
59520         * sysdeps/x86_64/memcpy.S: Updated.
59521         * sysdeps/x86_64/memset.S: Likewise.
59522         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
59523         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
59524         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
59525
59526 2013-01-04  David S. Miller  <davem@davemloft.net>
59527
59528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59529
59530 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
59531
59532         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
59533         1 to avoid redefinition warning.
59534         (__USE_GNU): Don't define.
59535         (init_signaling_nan): Protoize.
59536
59537         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59538
59539 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59540
59541         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
59542         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
59543         (__cpymn): Likewise.
59544         (norm): Remove commented code.
59545         (denorm): Likewise.
59546         (__mp_dbl): Likewise.
59547         (__inv): Likewise.
59548         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
59549         (__cpymn): Likewise.
59550         (norm): Remove commented code.
59551         (denorm): Likewise.
59552         (__mp_dbl): Likewise.
59553         (__inv): Likewise.
59554
59555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
59556         mp_no value for 1.0 and 2.0.
59557         (norm): Use RADIXI instead of radixi.d.
59558         (denorm): Likewise.
59559         (__mul): Use 0.0 instead of zero.d.
59560         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
59561         mp_no value for 1.0 and 2.0.
59562         (norm): Use RADIXI instead of radixi.d.
59563         (denorm): Likewise.
59564         (__mul): Use 0.0 instead of zero.d.
59565
59566 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
59567
59568         [BZ #14994]
59569         * math/s_casinh.c (__casinh): Reduce finite argument to first
59570         quadrant then set signs of results at the end.
59571         * math/s_casinhf.c (__casinhf): Likewise.
59572         * math/s_casinhl.c (__casinhl): Likewise.
59573         * math/libm-test.inc (casin_test): Add more tests.
59574         (casinh_test): Likewise.
59575         * sysdeps/i386/fpu/libm-test-ulps: Update.
59576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59577
59578 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59579
59580         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
59581
59582         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
59583
59584         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
59585         declarations.
59586         (denorm): Likewise.
59587         (__mp_dbl): Likewise.
59588         (__inv): Likewise.
59589
59590         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
59591         and adjust the header comment.
59592
59593         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
59594         variable name from declaration.
59595
59596 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
59597
59598         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59599         Initialize COMMON_CPUID_INDEX_7 element.
59600         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
59601         (CPUID_RTM): Likewise.
59602         (HAS_RTM): Likewise.
59603         (COMMON_CPUID_INDEX_7): New enum.
59604
59605 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
59606
59607         [BZ #14981]
59608         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
59609         size is zero, record memory as freed.
59610
59611 2013-01-03  Andreas Jaeger  <aj@suse.de>
59612
59613         * po/ia.po: Add new Interlingua translation.
59614
59615 2012-01-03  Allan McRae  <allan@archlinux.org>
59616
59617         * locale/programs/localedef.c: Fix description of '--posix' flag.
59618
59619 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
59620
59621         * NEWS: Update dates in second copyright notice.
59622         * README: Update copyright dates in example.
59623         * manual/libc.texinfo: Update copyright dates.
59624         * scripts/test-installation.pl: Update copyright date in --version
59625         output.
59626
59627         * hurd/ctty-input.c: Fix copyright notice formatting.
59628         * hurd/ctty-output.c: Likewise.
59629         * hurd/dtable.c: Likewise.
59630         * hurd/hurd-raise.c: Likewise.
59631         * hurd/hurdprio.c: Likewise.
59632         * hurd/msgportdemux.c: Likewise.
59633         * misc/sys/file.h: Likewise.
59634         * misc/sys/ioctl.h: Likewise.
59635         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
59636         * sysdeps/mach/hurd/chdir.c: Likewise.
59637         * sysdeps/mach/hurd/fchdir.c: Likewise.
59638         * sysdeps/mach/hurd/rename.c: Likewise.
59639         * sysdeps/mach/hurd/rmdir.c: Likewise.
59640         * sysdeps/mach/hurd/seekdir.c: Likewise.
59641         * sysdeps/mach/hurd/setsid.c: Likewise.
59642         * sysdeps/posix/wait3.c: Likewise.
59643
59644         * All files with FSF copyright notices: Update copyright dates
59645         using scripts/update-copyrights.
59646         * intl/plural.c: Regenerated.
59647         * locale/programs/charmap-kw.h: Likewise.
59648         * locale/programs/locfile-kw.h: Likewise.
59649
59650 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
59651
59652         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
59653         four values.
59654
59655         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
59656         calculation loop and add branch prediction.
59657
59658         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
59659         check access beyond bounds of m1np.
59660
59661         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59662         MPTWO.
59663         (__inv): Remove local variable MPTWO to use the global
59664         constant.
59665         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
59666         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59667         variable MPTWO.
59668         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
59669         MP3HALFS static const.
59670
59671 2013-01-01  David S. Miller  <davem@davemloft.net>
59672
59673         * po/ca.po: Update from translation team.
59674
59675 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
59676
59677         * scripts/update-copyrights: New file.
59678         * Makeconfig: Reformat copyright notice.
59679         * ctype/ctype.h: Likewise.
59680         * debug/swprintf_chk.c: Likewise.
59681         * elf/dl-cache.c: Likewise.
59682         * elf/dl-debug.c: Likewise.
59683         * elf/dl-object.c: Likewise.
59684         * grp/initgroups.c: Likewise.
59685         * hurd/Makefile: Likewise.
59686         * hurd/hurd/signal.h: Likewise.
59687         * hurd/hurdfault.c: Likewise.
59688         * hurd/hurdioctl.c: Likewise.
59689         * hurd/hurdlookup.c: Likewise.
59690         * hurd/intr-msg.c: Likewise.
59691         * iconv/gconv_open.c: Likewise.
59692         * libio/swprintf.c: Likewise.
59693         * locale/lc-ctype.c: Likewise.
59694         * locale/nl_langinfo.c: Likewise.
59695         * mach/Machrules: Likewise.
59696         * mach/Makefile: Likewise.
59697         * malloc/obstack.h: Likewise.
59698         * manual/Makefile: Likewise.
59699         * manual/tsort.awk: Likewise.
59700         * misc/bits/stab.def: Likewise.
59701         * nis/nis_print_group_entry.c: Likewise.
59702         * nis/nis_table.c: Likewise.
59703         * nis/nss_compat/compat-pwd.c: Likewise.
59704         * nis/nss_compat/compat-spwd.c: Likewise.
59705         * po/Makefile: Likewise.
59706         * posix/fnmatch.c: Likewise.
59707         * posix/regex.h: Likewise.
59708         * resolv/Makefile: Likewise.
59709         * resolv/nss_dns/dns-network.c: Likewise.
59710         * resolv/res_hconf.c: Likewise.
59711         * scripts/gen-sorted.awk: Likewise.
59712         * soft-fp/soft-fp.h: Likewise.
59713         * stdio-common/printf.h: Likewise.
59714         * stdlib/monetary.h: Likewise.
59715         * stdlib/random.c: Likewise.
59716         * stdlib/random_r.c: Likewise.
59717         * sysdeps/generic/Makefile: Likewise.
59718         * sysdeps/gnu/Makefile: Likewise.
59719         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
59720         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
59721         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
59722         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
59723         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
59724         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
59725         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
59726         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
59727         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
59728         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
59729         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
59730         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
59731         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
59732         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
59733         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
59734         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
59735         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
59736         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
59737         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
59738         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
59739         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
59740         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
59741         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
59742         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
59743         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
59744         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
59745         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
59746         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
59747         * sysdeps/mach/hurd/errnos.awk: Likewise.
59748         * sysdeps/mach/hurd/fork.c: Likewise.
59749         * sysdeps/mach/hurd/getcwd.c: Likewise.
59750         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
59751         * sysdeps/mach/hurd/mmap.c: Likewise.
59752         * sysdeps/mach/hurd/utimes.c: Likewise.
59753         * sysdeps/mach/hurd/xmknod.c: Likewise.
59754         * sysdeps/posix/profil.c: Likewise.
59755         * sysdeps/posix/readdir_r.c: Likewise.
59756         * sysdeps/powerpc/bits/mathdef.h: Likewise.
59757         * sysdeps/powerpc/bits/setjmp.h: Likewise.
59758         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
59759         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
59760         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
59761         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
59762         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
59763         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59764         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
59765         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
59766         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
59767         * sysdeps/pthread/lio_listio.c: Likewise.
59768         * sysdeps/sparc/dl-procinfo.h: Likewise.
59769         * sysdeps/unix/i386/sysdep.S: Likewise.
59770         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
59771         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
59772         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
59773         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
59774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
59775         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
59776         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
59777         * sysdeps/unix/sysv/linux/speed.c: Likewise.
59778         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
59779         * sysdeps/wordsize-32/divdi3.c: Likewise.
59780         * time/sys/time.h: Likewise.
59781         * wcsmbs/Makefile: Likewise.
59782
59783 2013-01-01  David S. Miller  <davem@davemloft.net>
59784
59785         * po/fr.po: Update from translation team.
59786
59787         * catgets/gencat.c: Update copyright year.
59788         * csu/version.c: Likewise.
59789         * debug/catchsegv.sh: Likewise.
59790         * debug/pcprofiledump.c: Likewise.
59791         * debug/xtrace.sh: Likewise.
59792         * elf/ldconfig.c: Likewise.
59793         * elf/ldd.bash.in: Likewise.
59794         * elf/pldd.c: Likewise.
59795         * elf/sotruss.ksh: Likewise.
59796         * elf/sprof.c: Likewise.
59797         * iconv/iconv_prog.c: Likewise.
59798         * iconv/iconvconfig.c: Likewise.
59799         * locale/programs/locale.c: Likewise.
59800         * locale/programs/localedef.c: Likewise.
59801         * login/programs/pt_chown.c: Likewise.
59802         * malloc/memusage.sh: Likewise.
59803         * malloc/memusagestat.c: Likewise.
59804         * malloc/mtrace.pl: Likewise.
59805         * nscd/nscd.c: Likewise.
59806         * nss/getent.c: Likewise.
59807         * nss/makedb.c: Likewise.
59808         * posix/getconf.c: Likewise.
59809
59810 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
59811
59812         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
59813         numbers.
59814
59815 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
59816
59817         * math/bits/mathcalls.h (modf): Use __nonnull.
59818
59819 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
59820
59821         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
59822         (split): Use macro CN instead of the bare value.
59823         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
59824         could be used.
59825         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
59826         instead of the bare value.
59827         (power1): Likewise.
59828
59829 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
59830
59831         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
59832         __ATAN_TWOM.
59833         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
59834
59835         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
59836         their values.
59837         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
59838         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
59839         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
59840         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
59841
59842 2012-12-28  Andreas Jaeger  <aj@suse.de>
59843
59844         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
59845         values are from Linux 3.7.
59846
59847         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
59848         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
59849
59850 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
59851
59852         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
59853         TRUE case.
59854
59855         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
59856         (norm): Likewise.
59857         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
59858         variables with preprocessor constants.
59859         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
59860         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
59861         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
59862
59863 2012-12-27  Bruno Haible  <bruno@clisp.org>
59864
59865         [BZ #14317]
59866         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
59867         only if needed.
59868
59869 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
59870
59871         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
59872         and use variable directly.
59873         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
59874
59875         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
59876         MPONE.
59877         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
59878         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
59879         variable MPONE.
59880         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
59881         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
59882         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
59883         include directive.  Remove local variable MPONE.
59884         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
59885         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
59886         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
59887
59888 2012-12-25  David S. Miller  <davem@davemloft.net>
59889
59890         * version.h (RELEASE): Set to "development".
59891         (VERSION): Set to "2.17.90".
59892         * NEWS: Add 2.18 section.
59893
59894 2012-12-21  David S. Miller  <davem@davemloft.net>
59895
59896         * po/hr.po: Update from translation team.
59897
59898 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59899
59900         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
59901
59902 2012-12-19  Steve Ellcey  <sellcey@mips.com>
59903
59904         * NEWS:  Mention new memcpy for MIPS.
59905
59906 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
59907
59908         * manual/contrib.texi (Contributors): Spelling correction.
59909
59910 2012-12-15  David S. Miller  <davem@davemloft.net>
59911
59912         * po/ru.po: Update from translation team.
59913
59914 2012-12-13  David S. Miller  <davem@davemloft.net>
59915
59916         * NEWS: Mention IFUNC testsuite enhancements.
59917
59918         * po/pl.po: Update from translation team.
59919         * po/bg.po: Likewise.
59920
59921         * manual/contrib.texi (Contributors): Update entries for Hongjiu
59922         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
59923
59924 2012-12-11  David S. Miller  <davem@davemloft.net>
59925
59926         * po/sv.po: Update from translation team.
59927
59928         * po/vi.po: Update from translation team.
59929
59930         * po/cs.po: Update from translation team.
59931
59932         * po/de.po: Update from translation team.
59933         * po/eo.po: Likewise.
59934         * po/nl.po: Likewise.
59935
59936 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59937
59938         [BZ #14246]
59939         * manual/argp.texi (Argp Helper Functions): Move node to follow
59940         Argp Parsing State.
59941
59942         [BZ #14872]
59943         * manual/conf.texi (Limits on File System Capacity): Mention if
59944         terminating null is included in the max size.
59945
59946 2012-12-10  Andreas Jaeger  <aj@suse.de>
59947
59948         * po/cs.po: Update from translation team.
59949
59950 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
59951
59952         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
59953         void pointer and cast to uintptr_t.
59954         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
59955         path.
59956         * sysdeps/s390/s390-64/memcpy.S: Likewise.
59957         * sysdeps/s390/s390-64/memset.S: Likewise.
59958
59959 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
59960
59961         [BZ #14833]
59962         * menual/message.texi (Message Translation): Fix typos.
59963         (Helper programs for gettext): Likewise.
59964
59965 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
59966
59967         [BZ #14898]
59968         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
59969         Change to -1.
59970
59971 2012-12-07  David S. Miller  <davem@davemloft.net>
59972
59973         * po/libc.pot: Update.
59974
59975 2012-12-07  Richard Henderson  <rth@redhat.com>
59976
59977         [BZ #10114]
59978         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
59979         normal/normal case to before the switch.
59980         (_FP_DIV): Likewise.
59981
59982 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
59983             Mike Frysinger  <vapier@gentoo.org>
59984
59985         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
59986         check for __NR_fadvise64_64.
59987
59988 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
59989
59990         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
59991         0, not just to plain "0" as a statement.
59992         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
59993         with cw.
59994
59995 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
59996
59997         * NEWS: Use sourceware.org in Bugzilla URL.
59998
59999 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60000
60001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
60002         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60003
60004         * stdio-common/tst-put-error.c (do_test): Add newline to the
60005         padded test to ensure flush.
60006
60007 2012-12-05  Jeff Law  <law@redhat.com>
60008
60009         * sunrpc/etc.rpc (fedfs_admin): Add entry.
60010
60011 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
60012
60013         * README: Don't refer to ports add-on as distributed separately.
60014         Mention AArch64 in list of systems supported in the ports add-on.
60015
60016         * LICENSES: Add more non-FSF copyright and license notices.
60017
60018         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
60019         ((unused)).
60020
60021         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
60022
60023         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
60024         10000 as width of padded output.
60025
60026 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60027
60028         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
60029
60030         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
60031         variable LX with __attribute__ ((unused)).
60032         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
60033         Likewise.
60034         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
60035         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60036         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
60037         with __attribute__ ((unused)).
60038
60039 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
60040
60041         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
60042
60043 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
60044
60045         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
60046         (CFLAGS-nldbl-acos.c): New variable.
60047         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
60048         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
60049         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
60050         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
60051         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
60052         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
60053         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
60054         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
60055         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
60056         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
60057         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
60058         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
60059         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
60060         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
60061         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
60062         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
60063         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
60064         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
60065         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
60066         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
60067         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
60068         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
60069         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
60070         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
60071         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
60072         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
60073         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
60074         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
60075         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
60076         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
60077         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
60078         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
60079         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
60080         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
60081         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
60082         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
60083         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
60084         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
60085         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
60086         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
60087         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
60088         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
60089         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
60090         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
60091         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
60092         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
60093         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
60094         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
60095         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
60096         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
60097         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
60098         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
60099         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
60100         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
60101         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
60102         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
60103         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
60104         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
60105         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
60106         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
60107         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
60108         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
60109         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
60110         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
60111         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
60112         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
60113         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
60114         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
60115         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
60116         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
60117         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
60118         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
60119         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
60120         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
60121         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
60122         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
60123         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
60124         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
60125         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
60126         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
60127         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
60128         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
60129         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
60130         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
60131         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
60132         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
60133         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
60134         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
60135         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
60136         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
60137         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
60138         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
60139         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
60140         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
60141         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
60142         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
60143         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
60144
60145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
60146         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
60147
60148         [BZ #14914]
60149         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
60150         whole low double instead of just low 47 bits when splitting values
60151         into two parts.
60152
60153 2012-12-03  Allan McRae  <allan@archlinux.org>
60154
60155         * manual/stdio.texi (Predefined Printf Handlers): Remove
60156         @hsep and @vsep usage.
60157
60158 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
60159
60160         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
60161         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
60162
60163 2012-12-03  Jeff Law  <law@redhat.com>
60164
60165         * time/sys/time.h (settimeofday): Do not mark TV argument
60166         as __nonnull.
60167
60168 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
60169
60170         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
60171         when currently writing and seek to current position when not.
60172         * libio/Makefile (tests): Remove bug-fclose1.
60173         * libio/bug-fclose1.c: Delete.
60174
60175 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
60176
60177         * manual/arith.texi (feenableexcept): Fix typo.
60178         (fedisableexcept): Likewise.
60179
60180 2012-11-30  Roland McGrath  <roland@hack.frob.com>
60181
60182         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
60183         second, differently-typed declaration, rather than a cast.
60184
60185 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
60186
60187         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
60188         * include/rpc/svc.h: ... here.
60189
60190 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
60191
60192         [BZ #13013]
60193         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
60194         depending n and resplen2 to catch cases where answer
60195         equals answerp2.
60196
60197 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
60198
60199         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
60200         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
60201
60202 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
60203
60204         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
60205
60206 2012-11-29  Roland McGrath  <roland@hack.frob.com>
60207
60208         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
60209
60210 2012-11-28  Jeff Law  <law@redhat.com>
60211
60212         [BZ #13761]
60213         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
60214         dataset_temporary.  Track alloca usage into alloca_used.
60215         If dataset is large allocate and release it via malloc/free.
60216
60217 2012-06-04  Florian Weimer  <fweimer@redhat.com>
60218
60219         [BZ #14197]
60220         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
60221
60222 2012-11-28  David S. Miller  <davem@davemloft.net>
60223
60224         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60225
60226 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60227
60228         [BZ #14803]
60229         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
60230         of pi/2 rounded to nearest to 64 bits.
60231         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
60232         nearest to 64 bits.
60233         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
60234         bits.
60235
60236 2012-11-28  Jeff Law <law@redhat.com>
60237             Martin Osvald <mosvald@redhat.com>
60238
60239         [BZ #14889]
60240         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
60241         * sunrpc/svc.c: Include time.h.
60242         (__svc_accept_failed): New function.
60243         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
60244         any reason other than EINTR, call __svc_accept_failed.
60245         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
60246         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
60247
60248 2012-11-28  Andreas Schwab  <schwab@suse.de>
60249
60250         * scripts/abilist.awk: Also handle indirect functions in .opd
60251         section.
60252
60253 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
60254
60255         [BZ #13881]
60256         * sysdeps/x86/fpu/powl_helper.c: New file.
60257         * sysdeps/x86/fpu/Makefile: Likewise.
60258         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
60259         (p3): New object.
60260         (__ieee754_powl): Use __powl_helper for finite arguments except
60261         integer exponents below 8.
60262         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
60263         (p3): New object.
60264         (__ieee754_powl): Use __powl_helper for finite arguments except
60265         integer exponents below 8.
60266         * math/libm-test.inc (pow_test): Add more tests and enable some
60267         previously disabled tests.
60268         * sysdeps/i386/fpu/libm-test-ulps: Update.
60269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60270
60271 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
60272             Carlos O'Donell  <carlos_odonell@mentor.com>
60273
60274         * nss/makedb.c (is_prime): Assert that input is odd and greater
60275         than 4.  Note that fact in a comment too.
60276         (next_prime): Add 4 to input.
60277
60278 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
60279
60280         [BZ #11741]
60281         * libio/Makefile (tests): Add test case tst-fwrite-error.
60282         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
60283         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
60284         * libio/tst-fwrite-error.c: New test case.
60285
60286 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
60287
60288         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
60289         before casting to void *.
60290         * include/libc-internal.h (__pointer_type): New macro.
60291         (__integer_if_pointer_type_sub): Likewise.
60292         (__integer_if_pointer_type): Likewise.
60293         (cast_to_integer): Likewise.
60294         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
60295         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
60296         before casting to atomic64_t.
60297         (atomic_exchange_acq): Likewise.
60298         (__arch_exchange_and_add_body): Likewise.
60299         (__arch_add_body): Likewise.
60300         (atomic_add_negative): Likewise.
60301         (atomic_add_zero): Likewise.
60302
60303 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
60304
60305         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
60306         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
60307         (add_fdes): Likewise.
60308         (linear_search_fdes): Likewise.
60309         (binary_search_unencoded_fdes): Likewise.
60310
60311 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
60312
60313         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
60314
60315 2012-11-24  Adam Conrad  <adconrad@0c3.net>
60316
60317         * configure.in: Autodetect C++ header directories.
60318         * configure: Regenerated.
60319
60320 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
60321
60322         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
60323
60324 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
60325
60326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60327
60328 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
60329
60330         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
60331         LDBL_MANT_DIG == 106]: Disable some tests.
60332         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60333         Likewise.
60334         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
60335         Likewise.
60336
60337         [BZ #14871]
60338         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
60339         input for small inputs.  Return +/- pi/2 for large inputs.
60340         * math/libm-test.inc (atan_test): Add more tests.
60341
60342         * sysdeps/generic/unwind-dw2-fde-glibc.c
60343         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
60344         __attribute__ ((unused)).
60345
60346         [BZ #14645]
60347         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
60348         x * y if x and y are nonzero and z is zero.
60349
60350         [BZ #14811]
60351         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
60352         nonzero exponents with absolute value below 0x1p-117 to +/-
60353         0x1p-117.
60354
60355         [BZ #14869]
60356         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
60357         up arguments below 2**-450, not just those below 2**-500.
60358         * math/libm-test.inc (hypot_test): Add another test.
60359
60360         [BZ #14868]
60361         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
60362         Return a+b for ratio over 2**120, not 2**60.
60363         * math/libm-test.inc (hypot_test): Add another test.
60364
60365         * math/libm-test.inc (clog_test): Use
60366         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
60367         (clog10_test): Likewise.
60368
60369         [BZ #6778]
60370         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
60371
60372 2012-11-22  Andreas Schwab  <schwab@suse.de>
60373
60374         * sysdeps/i386/fpu/libm-test-ulps: Update.
60375
60376 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
60377
60378         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
60379         printf output with newline.
60380
60381 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60382
60383         [BZ #14865]
60384         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
60385         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
60386         -z nodlopen, -z initfirst and -z execstack support.
60387         * configure: Regenerated.
60388
60389         * elf/elf.h (DF_1_NODIRECT): New macro.
60390         (DF_1_IGNMULDEF): Likewise.
60391         (DF_1_NOKSYMS): Likewise.
60392         (DF_1_NOHDR): Likewise.
60393         (DF_1_EDITED): Likewise.
60394         (DF_1_NORELOC): Likewise.
60395         (DF_1_SYMINTPOSE): Likewise.
60396         (DF_1_GLOBAUDIT): Likewise.
60397         (DF_1_SINGLETON): Likewise.
60398         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
60399         DT_1_SUPPORTED_MASK bits.
60400         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
60401
60402 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
60403
60404         * sysdeps/unix/make-syscalls.sh: Document prefixes.
60405
60406 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
60407
60408         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
60409         macro.
60410
60411         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
60412         (sendmmsg): Move declarations...
60413         * socket/sys/socket.h: ... here.
60414         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
60415         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
60416         include it from...
60417         * socket/recvmmsg.c: ... this new file.
60418         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
60419         (sendmmsg): Rename to __sendmmsg, create weak alias and make
60420         definition of __sendmmsg hidden.
60421         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
60422         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
60423         Move ENOSYS stub into and include it from...
60424         * socket/sendmmsg.c: ... this new file.
60425         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
60426         (sysdep_routines): Move recvmmsg and sendmmsg...
60427         * socket/Makefile (routines): ... here.
60428         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
60429         (GLIBC_PRIVATE): Add __sendmmsg.
60430         * include/sys/socket.h (__sendmmsg): Add declarations.
60431         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
60432         sendmmsg.
60433
60434 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
60435
60436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
60437         variable I1 with __attribute__ ((unused)).
60438         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
60439
60440 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60441
60442         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
60443         DUMMY variables with __attribute__ ((unused)).
60444
60445         * bits/byteswap.h: Include <bits/types.h>.
60446         (__bswap_64): Use __uint64_t instead of unsigned long long int.
60447
60448 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60449
60450         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
60451         string_t.  Do not manually set errno.
60452         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
60453         length with __strnlen.  Make sure to both set errno and return it on
60454         failure.
60455
60456 2012-11-19  David S. Miller  <davem@davemloft.net>
60457
60458         With help from Joseph Myers.
60459         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
60460         very large arguments properly.
60461         * math/libm-test.inc (atan_test): New tests.
60462         (atan2_test): New tests.
60463         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60464         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60465
60466 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
60467
60468         [BZ #14856]
60469         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
60470         Define to 3.
60471
60472         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
60473         [POSIX] (EADDRNOTAVAIL): Likewise.
60474         [POSIX] (EAFNOSUPPORT): Likewise.
60475         [POSIX] (EALREADY): Likewise.
60476         [POSIX] (ECONNABORTED): Likewise.
60477         [POSIX] (ECONNREFUSED): Likewise.
60478         [POSIX] (ECONNRESET): Likewise.
60479         [POSIX] (EDESTADDRREQ): Likewise.
60480         [POSIX] (EDQUOT): Likewise.
60481         [POSIX] (EHOSTUNREACH): Likewise.
60482         [POSIX] (EIDRM): Likewise.
60483         [POSIX] (EISCONN): Likewise.
60484         [POSIX] (ELOOP): Likewise.
60485         [POSIX] (EMULTIHOP): Likewise.
60486         [POSIX] (ENETDOWN): Likewise.
60487         [POSIX] (ENETUNREACH): Likewise.
60488         [POSIX] (ENOBUFS): Likewise.
60489         [POSIX] (ENODATA): Likewise.
60490         [POSIX] (ENOLINK): Likewise.
60491         [POSIX] (ENOMSG): Likewise.
60492         [POSIX] (ENOPROTOOPT): Likewise.
60493         [POSIX] (ENOSR): Likewise.
60494         [POSIX] (ENOSTR): Likewise.
60495         [POSIX] (ENOTCONN): Likewise.
60496         [POSIX] (ENOTSOCK): Likewise.
60497         [POSIX] (EOPNOTSUPP): Likewise.
60498         [POSIX] (EOVERFLOW): Likewise.
60499         [POSIX] (EPROTO): Likewise.
60500         [POSIX] (EPROTONOSUPPORT): Likewise.
60501         [POSIX] (EPROTOTYPE): Likewise.
60502         [POSIX] (ESTALE): Likewise.
60503         [POSIX] (ETIME): Likewise.
60504         [POSIX] (ETXTBSY): Likewise.
60505         [POSIX] (EWOULDBLOCK): Likewise.
60506         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
60507         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
60508         [POSIX] (SEEK_CUR): Likewise.
60509         [POSIX] (SEEK_END): Likewise.
60510         [POSIX || UNIX98] (mode_t): Do not require.
60511         [POSIX] (off_t): Likewise.
60512         [POSIX] (pid_t): Likewise.
60513         [POSIX] (sys/stat.h): Do not allow header.
60514         [POSIX] (unistd.h): Likewise.
60515         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
60516         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
60517         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
60518         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
60519         require.
60520         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
60521         sigevent): Specify elements.
60522         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
60523         entry.
60524         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
60525         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
60526
60527         * conform/data/cpio.h-data [POSIX]: Disable whole file.
60528         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
60529         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
60530         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
60531         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
60532         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
60533         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
60534         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
60535         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
60536         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
60537         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
60538         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
60539         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
60540         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
60541         Likewise.
60542         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
60543         Likewise.
60544         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
60545         Likewise.
60546         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
60547         Likewise.
60548         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
60549         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
60550         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
60551         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
60552         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
60553         Specify lower bound on value.
60554         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
60555         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
60556         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
60557         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
60558         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
60559         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
60560         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
60561         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
60562         value.
60563         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
60564         as optional.
60565         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
60566         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
60567         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
60568         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
60569         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
60570         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
60571         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
60572         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
60573         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
60574         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
60575         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
60576         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
60577         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
60578         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
60579         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
60580         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
60581         entry.
60582         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
60583         optional.
60584         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
60585         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
60586         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
60587         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
60588         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
60589         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
60590         Likewise.
60591         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
60592         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
60593         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
60594         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
60595         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
60596         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
60597         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
60598         as optional.
60599         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
60600         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
60601         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
60602         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
60603         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
60604         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
60605         specify as optional.
60606         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
60607         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
60608         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
60609         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
60610         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
60611         [XPG3] (NL_LANGMAX): Likewise.
60612         [POSIX || XPG3] (NL_MSGMAX): Likewise.
60613         [POSIX || XPG3] (NL_NMAX): Likewise.
60614         [POSIX || XPG3] (NL_SETMAX): Likewise.
60615         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
60616         [XPG3] (NZERO): Likewise.
60617         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
60618         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
60619         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
60620         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
60621         (REG_ERANGE): Expect.
60622         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
60623         optional-constant.
60624         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
60625         Use (void) in prototype.
60626         [POSIX] (*_t): Allow.
60627         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
60628         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
60629         (WRDE_BADVAL): Expect.
60630
60631         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
60632         expect.
60633         [XPG3 || XPG4] (O_RSYNC): Likewise.
60634         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
60635         Likewise.
60636         [XPG3 || XPG4] (pthread_sigmask): Likewise.
60637         [XPG3 || XPG4] (sigqueue): Likewise.
60638         [XPG3 || XPG4] (sigtimedwait): Likewise.
60639         [XPG3 || XPG4] (sigwaitinfo): Likewise.
60640         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
60641         [XPG3 || XPG4] (vsnprintf): Likewise.
60642         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
60643         Likewise.
60644         [XPG3 || XPG4] (blksize_t): Likewise.
60645         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
60646         Likewise.
60647         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
60648         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
60649         [XPG3 || XPG4] (struct itimerspec): Likewise.
60650         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
60651         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
60652         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
60653         [XPG3 || XPG4] (clockid_t): Likewise.
60654         [XPG3 || XPG4] (timer_t): Likewise.
60655         [XPG3 || XPG4] (clock_getres): Likewise.
60656         [XPG3 || XPG4] (clock_gettime): Likewise.
60657         [XPG3 || XPG4] (clock_settime): Likewise.
60658         [XPG3 || XPG4] (nanosleep): Likewise.
60659         [XPG3 || XPG4] (timer_create): Likewise.
60660         [XPG3 || XPG4] (timer_delete): Likewise.
60661         [XPG3 || XPG4] (timer_gettime): Likewise.
60662         [XPG3 || XPG4] (timer_getoverrun): Likewise.
60663         [XPG3 || XPG4] (timer_settime): Likewise.
60664         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
60665         [XPG3 || XPG4] (getlogin_r): Likewise.
60666         [XPG3 || XPG4] (pread): Likewise.
60667         [XPG3 || XPG4] (pthread_atfork): Likewise.
60668         [XPG3 || XPG4] (pwrite): Likewise.
60669
60670         [BZ #14835]
60671         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
60672         <bits/siginfo.h>.
60673
60674 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
60675
60676         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
60677         finalizing MALLSTREAM.
60678
60679         * sysdeps/mach/hurd/syncfs.c: New file.
60680
60681 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
60682
60683         [BZ #14719]
60684         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
60685         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
60686         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
60687         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
60688         (_nss_dns_gethostbyname4_r): Likewise.
60689         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
60690         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
60691
60692 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
60693
60694         [BZ #13763]
60695         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
60696
60697 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
60698
60699         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
60700         * elf/cache.c (print_entry): Print ",AArch64" for
60701         FLAG_AARCH64_LIB64
60702
60703         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
60704         * elf/cache.c (print_entry): Print ",hard-float" for
60705         FLAG_ARM_LIBHF.
60706
60707 2012-11-18  David S. Miller  <davem@davemloft.net>
60708
60709         With help from Joseph Myers.
60710         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
60711         cutoff to 2**-13.
60712         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
60713         cutoff to 2**-25.
60714         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
60715         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
60716         small.
60717         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
60718         * math/libm-test.inc (y0_test): New tests.
60719         (y1_test): New tests.
60720         * sysdeps/i386/fpu/libm-test-ulps: Update.
60721         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
60722         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60723
60724 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
60725
60726         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
60727         64-bit targets.
60728         * configure: Regenerated.
60729
60730 2012-11-17  David S. Miller  <davem@davemloft.net>
60731
60732         [BZ #14811]
60733         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
60734         nonzero exponents with absolute value below 0x1p-128 to +/-
60735         0x1p-128.
60736
60737 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
60738
60739         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
60740
60741         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
60742
60743         * posix/getconf-speclist.c: New file.
60744         * posix/posix-envs.def: Likewise.
60745         * posix/confstr.c (START_ENV_GROUP): New macro.
60746         (END_ENV_GROUP): Likewise.
60747         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60748         (KNOWN_PRESENT_ENV_STRING): Likewise.
60749         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60750         (UNKNOWN_ENVIRONMENT): Likewise.
60751         (confstr): Include posix-envs.def instead of handling
60752         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
60753         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
60754         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
60755         (END_ENV_GROUP): Likewise.
60756         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
60757         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
60758         (UNKNOWN_ENVIRONMENT): Likewise.
60759         (__sysconf): Include posix-envs.def instead of handling associated
60760         cases directly here.
60761         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
60762         preprocessing getconf-speclist.c rather than running getconf or
60763         generating empty file.
60764
60765 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
60766
60767         * scripts/check-local-headers.sh: Ignore 'mach' headers.
60768
60769 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
60770
60771         [BZ #14672]
60772         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
60773
60774 2012-11-16  David S. Miller  <davem@davemloft.net>
60775
60776         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
60777         smaller than LDBL_EPSILON/2.0L, just return xm1.
60778
60779 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
60780
60781         * elf/tst-array1.c (init): Set constructor priority to 1000.
60782         (fini): Set destructor priority to 1000.
60783         * elf/tst-array2dep.c: Likewise.
60784
60785 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60786
60787         [BZ #11741]
60788         * libio/fileops.c (_IO_new_file_write): Correctly return error.
60789         (_IO_new_file_xsputn): Also return EOF if none of the input
60790         data was written when overflow failed.
60791         * libio/iopadn.c (_IO_padn): Likewise.
60792         * libio/iowpadn.c (_IO_wpadn): Likewise.
60793         * stdio-common/tst-put-error.c: Add copyright notice.
60794         (do_test): Add case for printing padded string.
60795         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
60796         _IO_padn returned error.
60797         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
60798         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
60799         return EOF.
60800
60801 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
60802
60803         * libio/libioP.h: Add comment note that the references to C++
60804         bits are now obsolete.
60805
60806 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60807
60808         * math/libm-test.inc (check_complex): Use asprintf.
60809
60810 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
60811
60812         * debug/pcprofiledump.c (print_version): Update copyright year.
60813         * malloc/memusagestat.c (print_version): Likewise.
60814
60815 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
60816
60817         [BZ #14831]
60818         * elf/Makefile (tests): Add tst-audit8.
60819         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
60820         ($(objpfx)tst-audit8.out): New target.
60821         (tst-audit8-ENV): New variable.
60822         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
60823         audit if l_reloc_result is NULL.
60824         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
60825         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
60826         * elf/tst-audit8.c: New file.
60827
60828 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60829
60830         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
60831         * misc/Makefile (CFLAGS-select.c): Define.
60832         * posix/Makefile (CFLAGS-pause.c): Define.
60833
60834 2012-11-13  David S. Miller  <davem@davemloft.net>
60835
60836         * crypt/Makefile: Move test targets after toplevel Rules
60837         inclusion.  Grab any necessary sysdep routines when linking.
60838         * crypt/md5.c (md5_process_block): Remove define, we will always
60839         name it __md5_process_block.
60840         (md5_finish_ctx): Update md5_process_block call.
60841         (md5_stream): Likewise.
60842         (md5_process_bytes): Likewise.
60843         (md5_process_block): Rename to __md5_process_block and move to ...
60844         * crypt/md5-block.c: ... here.
60845         * crypt/sha256.c (sha256_process_block): Move to ...
60846         * crypt/sha256-block.c: ... here.
60847         * crypt/sha512.c (sha512_process_block): Move to ...
60848         * crypt/sha512-block.c: ... here.
60849         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
60850         path.
60851         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
60852         * sysdeps/sparc/sparc64/multiarch/Makefile
60853         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
60854         crypt subdir.
60855         (localedef-aux): Add md5 crypto assembler when in locale subdir.
60856         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
60857         multiarch changes.
60858         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
60859         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
60860         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
60861         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
60862         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
60863         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
60864         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
60865         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
60866         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
60867         file.
60868         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
60869         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
60870         file.
60871         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
60872
60873 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
60874
60875         * timezone/tzselect.ksh: Update from tzcode git revision
60876         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
60877         * timezone/zdump.c: Likewise.
60878         * timezone/zic.c: Likewise.
60879         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
60880         in TZVERSION setting, not $(PKGVERSION).
60881         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
60882         REPORT_BUGS_TO settings.
60883
60884         [BZ #14838]
60885         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
60886         macro.
60887
60888 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
60889
60890         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
60891         detection to immediately after _FP_ROUND().
60892         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
60893         bits are 0.
60894
60895 2012-11-11  David S. Miller  <davem@davemloft.net>
60896
60897         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
60898         inttypes.h
60899         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
60900         __close rather than their public counterparts.
60901
60902 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
60903
60904         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
60905         file.
60906         [UNIX98] (sem_timedwait): Do not expect.
60907         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
60908         [XPG4 || UNIX98] (sockatmark): Do not expect.
60909         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
60910         (clock_getcpuclockid): Do not expect.
60911         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
60912         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
60913         Do not expect.
60914         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
60915         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
60916         [UNIX98] (vwscanf): Likewise.
60917         [UNIX98] (vswscanf): Likewise.
60918
60919 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
60920
60921         * timezone/version.h: Remove file.
60922         * timezone/README: Do not refer to version.h.
60923         * timezone/Makefile ($(objpfx)zic.o): New dependency on
60924         $(objpfx)version.h.
60925         ($(objpfx)zdump.o): Likewise.
60926         ($(objpfx)version.h): New target.
60927
60928         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
60929         2012i.
60930         * timezone/README: Don't mention modification to tzselect.ksh.
60931         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
60932         work on unmodified tzselect.ksh.  Substitute version numbers in
60933         tzselect.ksh.
60934
60935         * Makefile (format-me): Remove.
60936         (INSTALL): Adjust indentation.  Use commands directly instead of
60937         using $(format-me).
60938
60939         * aclocal.m4 (ACX_PKGVERSION): New macro.
60940         (ACX_BUGURL): Likewise.
60941         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
60942         (PKGVERSION): New AC_DEFINE_UNQUOTED.
60943         (REPORT_BUGS_TO): Likewise.
60944         * configure: Regenerated.
60945         * config.h.in (PKGVERSION): New macro.
60946         (REPORT_BUGS_TO): Likewise.
60947         * config.make.in (PKGVERSION): New variable.
60948         (PKGVERSION_TEXI): Likewise.
60949         (REPORT_BUGS_TO): Likewise.
60950         (REPORT_BUGS_TEXI): Likewise.
60951         * Makefile (format-me): Use -I$(common-objpfx)manual.
60952         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
60953         ($(common-objpfx)manual/%): New target.
60954         (manual/%): Remove target.
60955         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
60956         (print_version): Use PKGVERSION.
60957         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
60958         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
60959         and REPORT_BUGS_TO.
60960         ($(objpfx)xtrace): Likewise.
60961         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
60962         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
60963         (print_version): Use PKGVERSION.
60964         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
60965         (do_version): Use PKGVERSION.
60966         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
60967         REPORT_BUGS_TO.
60968         (common-ldd-rewrite): Likewise.
60969         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
60970         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
60971         (print_version): Use PKGVERSION.
60972         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
60973         * elf/pldd.c (argp_program_bug_address): Remove variable.
60974         (more_help): New function.
60975         (argp): Use more_help.
60976         (print_version): Use PKGVERSION.
60977         * elf/sln.c (main): Use PKGVERSION.
60978         (usage): Use REPORT_BUGS_TO.
60979         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
60980         (top level): Use PKGVERSION.
60981         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
60982         (print_version): Use PKGVERSION.
60983         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
60984         (print_version): Use PKGVERSION.
60985         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
60986         (print_version): Use PKGVERSION.
60987         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
60988         (print_version): Use PKGVERSION.
60989         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
60990         (print_version): Use PKGVERSION.
60991         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
60992         (print_version): Use PKGVERSION.
60993         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
60994         and BUGURL.
60995         ($(objpfx)memusage): Likewise.
60996         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
60997         (do_version): Use PKGVERSION.
60998         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
60999         (print_version): Use PKGVERSION.
61000         * malloc/mtrace.pl ($PACKAGE): Remove variable.
61001         ($PKGVERSION): New variable.
61002         ($REPORT_BUGS_TO): Likewise.
61003         (usage): Use $REPORT_BUGS_TO.
61004         (top level): Use $PKGVERSION.
61005         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
61006         ($(objpfx)pkgvers.texi): New rule.
61007         ($(objpfx)stamp-pkgvers): Likewise.
61008         * manual/install.texi: Include pkgvers.texi.
61009         (--with-pkgversion): Document new configure option.
61010         (--with-bugurl): Likewise.
61011         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
61012         than necessarily for this particular distribution.  Use
61013         REPORT_BUGS_TO for where to report bugs.
61014         * INSTALL: Regenerated.
61015         * manual/libc.texinfo: Include pkgvers.texi.
61016         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
61017         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
61018         (print_version): Use PKGVERSION.
61019         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
61020         (print_version): Use PKGVERSION.
61021         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
61022         (print_version): Use PKGVERSION.
61023         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
61024         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
61025         macro.
61026         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
61027         (print_version): Use PKGVERSION.
61028         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
61029         (print_version): Use PKGVERSION.
61030         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
61031         and PKGVERSION.
61032
61033         * timezone/checktab.awk: Update from tzcode 2012i.
61034         * timezone/ialloc.c: Likewise.
61035         * timezone/private.h: Likewise.
61036         * timezone/scheck.c: Likewise.
61037         * timezone/tzfile.h: Likewise.
61038         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
61039         (TZVERSION): Hardcode tzcode version number.
61040         * timezone/zdump.c: Update from tzcode 2012i.
61041         * timezone/zic.c: Likewise.
61042         * timezone/version.h: New file.
61043         * timezone/README: Describe version.h.  Update upstream location.
61044
61045         [BZ #14824]
61046         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
61047         (mktemp): Enable declaration.
61048         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
61049         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
61050         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
61051         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
61052         Likewise.
61053         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
61054         Likewise.
61055         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
61056         Likewise.
61057         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
61058         Likewise.
61059         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
61060         Likewise.
61061         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
61062         Likewise.
61063
61064         [BZ #14821]
61065         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
61066         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
61067         for copies of such integer values.
61068         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
61069         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
61070
61071 2012-11-09  Andreas Jaeger  <aj@suse.de>
61072
61073         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
61074         definitions and declarations that are provided by
61075         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
61076
61077 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61078
61079         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
61080         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
61081         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
61082         definition.
61083
61084 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61085
61086         * elf/elf.h: Update comment before AArch64 relocations.
61087
61088 2012-11-07  David S. Miller  <davem@davemloft.net>
61089
61090         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
61091         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
61092         (__start_context): Declare.
61093         (__makecontext_ret): Delete.
61094         (__makecontext): Hook up __start_context instead of
61095         __makecontext_ret.
61096         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
61097         (sysdep_routines): Add __start_context when in stdlib.
61098
61099 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61100
61101         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
61102         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
61103         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
61104         hardcoded "nm".
61105         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
61106         (READELF): New variable.  Use it instead of hardcoded "readelf".
61107
61108 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
61109
61110         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
61111         * sysdeps/x86/Makefile: Here.
61112         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
61113         * sysdeps/x86/tst-xmmymm.sh: This.
61114
61115 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61116
61117         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
61118         expectations.
61119         [UNIX98] (pthread_barrier_t): Do not expect.
61120         [UNIX98] (pthread_barrierattr_t): Likewise.
61121         [UNIX98] (pthread_spinlock_t): Likewise.
61122         [UNIX98] (pthread_barrier_destroy): Likewise.
61123         [UNIX98] (pthread_barrier_init): Likewise.
61124         [UNIX98] (pthread_barrier_wait): Likewise.
61125         [UNIX98] (pthread_barrierattr_destroy): Likewise.
61126         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
61127         [UNIX98] (pthread_barrierattr_init): Likewise.
61128         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
61129         [UNIX98] (pthread_getcpuclockid): Likewise.
61130         [UNIX98] (pthread_mutex_timedlock): Likewise.
61131         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
61132         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
61133         [UNIX98] (pthread_sigmask): Likewise.
61134         [UNIX98] (pthread_spin_destroy): Likewise.
61135         [UNIX98] (pthread_spin_init): Likewise.
61136         [UNIX98] (pthread_spin_lock): Likewise.
61137         [UNIX98] (pthread_spin_trylock): Likewise.
61138         [UNIX98] (pthread_spin_unlock): Likewise.
61139         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
61140         Do not expect.
61141         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
61142         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
61143         [XPG3 || XPG4] (pthread_cond_t): Likewise.
61144         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
61145         [XPG3 || XPG4] (pthread_key_t): Likewise.
61146         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
61147         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
61148         [XPG3 || XPG4] (pthread_once_t): Likewise.
61149         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
61150         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
61151         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
61152         [XPG3 || XPG4] (pthread_t): Likewise.
61153
61154         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
61155         not expect.
61156         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
61157
61158         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
61159         Change function return type to int.
61160
61161         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
61162         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
61163         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
61164         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
61165         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
61166         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
61167         [!POSIX] (posix_madvise): Likewise.
61168         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
61169         && !UNIX98].
61170         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
61171         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
61172         (mode_t): Likewise.
61173         (posix_mem_offset): Likewise.
61174         (posix_typed_mem_get_info): Likewise.
61175         (posix_typed_mem_open): Likewise.
61176
61177         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
61178         Change condition to [XOPEN2K8].
61179
61180         * conform/conformtest.pl: Preprocess allow-header data with -x c
61181         instead of from stdin.
61182         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
61183         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
61184         [C99-based standards] (cerfc): Likewise.
61185         [C99-based standards] (cexp2): Likewise.
61186         [C99-based standards] (cexpm1): Likewise.
61187         [C99-based standards] (clog10): Likewise.
61188         [C99-based standards] (clog1p): Likewise.
61189         [C99-based standards] (clog2): Likewise.
61190         [C99-based standards] (clgamma): Likewise.
61191         [C99-based standards] (ctgamma): Likewise.
61192         [C99-based standards] (cerff): Likewise.
61193         [C99-based standards] (cerfcf): Likewise.
61194         [C99-based standards] (cexp2f): Likewise.
61195         [C99-based standards] (cexpm1f): Likewise.
61196         [C99-based standards] (clog10f): Likewise.
61197         [C99-based standards] (clog1pf): Likewise.
61198         [C99-based standards] (clog2f): Likewise.
61199         [C99-based standards] (clgammaf): Likewise.
61200         [C99-based standards] (ctgammaf): Likewise.
61201         [C99-based standards] (cerfl): Likewise.
61202         [C99-based standards] (cerfcl): Likewise.
61203         [C99-based standards] (cexp2l): Likewise.
61204         [C99-based standards] (cexpm1l): Likewise.
61205         [C99-based standards] (clog10l): Likewise.
61206         [C99-based standards] (clog1pl): Likewise.
61207         [C99-based standards] (clog2l): Likewise.
61208         [C99-based standards] (clgammal): Likewise.
61209         [C99-based standards] (ctgammal): Likewise.
61210         * conform/data/inttypes.h-data [C99-based standards]: Include
61211         stdint.h-data.  Remove all expectations for stdint.h contents.
61212         [C99-based standards] (PRI*): Do not allow.
61213         [C99-based standards] (SCN*): Likewise.
61214         [C99-based standards] (*_t): Likewise.
61215         [C99-based-standards] (PRId8): Expect macro.
61216         [C99-based-standards] (PRIi8): Likewise.
61217         [C99-based-standards] (PRIo8): Likewise.
61218         [C99-based-standards] (PRIu8): Likewise.
61219         [C99-based-standards] (PRIx8): Likewise.
61220         [C99-based-standards] (PRIX8): Likewise.
61221         [C99-based-standards] (SCNd8): Likewise.
61222         [C99-based-standards] (SCNi8): Likewise.
61223         [C99-based-standards] (SCNo8): Likewise.
61224         [C99-based-standards] (SCNu8): Likewise.
61225         [C99-based-standards] (SCNx8): Likewise.
61226         [C99-based-standards] (PRIdLEAST8): Likewise.
61227         [C99-based-standards] (PRIiLEAST8): Likewise.
61228         [C99-based-standards] (PRIoLEAST8): Likewise.
61229         [C99-based-standards] (PRIuLEAST8): Likewise.
61230         [C99-based-standards] (PRIxLEAST8): Likewise.
61231         [C99-based-standards] (PRIXLEAST8): Likewise.
61232         [C99-based-standards] (SCNdLEAST8): Likewise.
61233         [C99-based-standards] (SCNiLEAST8): Likewise.
61234         [C99-based-standards] (SCNoLEAST8): Likewise.
61235         [C99-based-standards] (SCNuLEAST8): Likewise.
61236         [C99-based-standards] (SCNxLEAST8): Likewise.
61237         [C99-based-standards] (PRIdFAST8): Likewise.
61238         [C99-based-standards] (PRIiFAST8): Likewise.
61239         [C99-based-standards] (PRIoFAST8): Likewise.
61240         [C99-based-standards] (PRIuFAST8): Likewise.
61241         [C99-based-standards] (PRIxFAST8): Likewise.
61242         [C99-based-standards] (PRIXFAST8): Likewise.
61243         [C99-based-standards] (SCNdFAST8): Likewise.
61244         [C99-based-standards] (SCNiFAST8): Likewise.
61245         [C99-based-standards] (SCNoFAST8): Likewise.
61246         [C99-based-standards] (SCNuFAST8): Likewise.
61247         [C99-based-standards] (SCNxFAST8): Likewise.
61248         [C99-based-standards] (PRId16): Likewise.
61249         [C99-based-standards] (PRIi16): Likewise.
61250         [C99-based-standards] (PRIo16): Likewise.
61251         [C99-based-standards] (PRIu16): Likewise.
61252         [C99-based-standards] (PRIx16): Likewise.
61253         [C99-based-standards] (PRIX16): Likewise.
61254         [C99-based-standards] (SCNd16): Likewise.
61255         [C99-based-standards] (SCNi16): Likewise.
61256         [C99-based-standards] (SCNo16): Likewise.
61257         [C99-based-standards] (SCNu16): Likewise.
61258         [C99-based-standards] (SCNx16): Likewise.
61259         [C99-based-standards] (PRIdLEAST16): Likewise.
61260         [C99-based-standards] (PRIiLEAST16): Likewise.
61261         [C99-based-standards] (PRIoLEAST16): Likewise.
61262         [C99-based-standards] (PRIuLEAST16): Likewise.
61263         [C99-based-standards] (PRIxLEAST16): Likewise.
61264         [C99-based-standards] (PRIXLEAST16): Likewise.
61265         [C99-based-standards] (SCNdLEAST16): Likewise.
61266         [C99-based-standards] (SCNiLEAST16): Likewise.
61267         [C99-based-standards] (SCNoLEAST16): Likewise.
61268         [C99-based-standards] (SCNuLEAST16): Likewise.
61269         [C99-based-standards] (SCNxLEAST16): Likewise.
61270         [C99-based-standards] (PRIdFAST16): Likewise.
61271         [C99-based-standards] (PRIiFAST16): Likewise.
61272         [C99-based-standards] (PRIoFAST16): Likewise.
61273         [C99-based-standards] (PRIuFAST16): Likewise.
61274         [C99-based-standards] (PRIxFAST16): Likewise.
61275         [C99-based-standards] (PRIXFAST16): Likewise.
61276         [C99-based-standards] (SCNdFAST16): Likewise.
61277         [C99-based-standards] (SCNiFAST16): Likewise.
61278         [C99-based-standards] (SCNoFAST16): Likewise.
61279         [C99-based-standards] (SCNuFAST16): Likewise.
61280         [C99-based-standards] (SCNxFAST16): Likewise.
61281         [C99-based-standards] (PRId32): Likewise.
61282         [C99-based-standards] (PRIi32): Likewise.
61283         [C99-based-standards] (PRIo32): Likewise.
61284         [C99-based-standards] (PRIu32): Likewise.
61285         [C99-based-standards] (PRIx32): Likewise.
61286         [C99-based-standards] (PRIX32): Likewise.
61287         [C99-based-standards] (SCNd32): Likewise.
61288         [C99-based-standards] (SCNi32): Likewise.
61289         [C99-based-standards] (SCNo32): Likewise.
61290         [C99-based-standards] (SCNu32): Likewise.
61291         [C99-based-standards] (SCNx32): Likewise.
61292         [C99-based-standards] (PRIdLEAST32): Likewise.
61293         [C99-based-standards] (PRIiLEAST32): Likewise.
61294         [C99-based-standards] (PRIoLEAST32): Likewise.
61295         [C99-based-standards] (PRIuLEAST32): Likewise.
61296         [C99-based-standards] (PRIxLEAST32): Likewise.
61297         [C99-based-standards] (PRIXLEAST32): Likewise.
61298         [C99-based-standards] (SCNdLEAST32): Likewise.
61299         [C99-based-standards] (SCNiLEAST32): Likewise.
61300         [C99-based-standards] (SCNoLEAST32): Likewise.
61301         [C99-based-standards] (SCNuLEAST32): Likewise.
61302         [C99-based-standards] (SCNxLEAST32): Likewise.
61303         [C99-based-standards] (PRIdFAST32): Likewise.
61304         [C99-based-standards] (PRIiFAST32): Likewise.
61305         [C99-based-standards] (PRIoFAST32): Likewise.
61306         [C99-based-standards] (PRIuFAST32): Likewise.
61307         [C99-based-standards] (PRIxFAST32): Likewise.
61308         [C99-based-standards] (PRIXFAST32): Likewise.
61309         [C99-based-standards] (SCNdFAST32): Likewise.
61310         [C99-based-standards] (SCNiFAST32): Likewise.
61311         [C99-based-standards] (SCNoFAST32): Likewise.
61312         [C99-based-standards] (SCNuFAST32): Likewise.
61313         [C99-based-standards] (SCNxFAST32): Likewise.
61314         [C99-based-standards] (PRId64): Likewise.
61315         [C99-based-standards] (PRIi64): Likewise.
61316         [C99-based-standards] (PRIo64): Likewise.
61317         [C99-based-standards] (PRIu64): Likewise.
61318         [C99-based-standards] (PRIx64): Likewise.
61319         [C99-based-standards] (PRIX64): Likewise.
61320         [C99-based-standards] (SCNd64): Likewise.
61321         [C99-based-standards] (SCNi64): Likewise.
61322         [C99-based-standards] (SCNo64): Likewise.
61323         [C99-based-standards] (SCNu64): Likewise.
61324         [C99-based-standards] (SCNx64): Likewise.
61325         [C99-based-standards] (PRIdLEAST64): Likewise.
61326         [C99-based-standards] (PRIiLEAST64): Likewise.
61327         [C99-based-standards] (PRIoLEAST64): Likewise.
61328         [C99-based-standards] (PRIuLEAST64): Likewise.
61329         [C99-based-standards] (PRIxLEAST64): Likewise.
61330         [C99-based-standards] (PRIXLEAST64): Likewise.
61331         [C99-based-standards] (SCNdLEAST64): Likewise.
61332         [C99-based-standards] (SCNiLEAST64): Likewise.
61333         [C99-based-standards] (SCNoLEAST64): Likewise.
61334         [C99-based-standards] (SCNuLEAST64): Likewise.
61335         [C99-based-standards] (SCNxLEAST64): Likewise.
61336         [C99-based-standards] (PRIdFAST64): Likewise.
61337         [C99-based-standards] (PRIiFAST64): Likewise.
61338         [C99-based-standards] (PRIoFAST64): Likewise.
61339         [C99-based-standards] (PRIuFAST64): Likewise.
61340         [C99-based-standards] (PRIxFAST64): Likewise.
61341         [C99-based-standards] (PRIXFAST64): Likewise.
61342         [C99-based-standards] (SCNdFAST64): Likewise.
61343         [C99-based-standards] (SCNiFAST64): Likewise.
61344         [C99-based-standards] (SCNoFAST64): Likewise.
61345         [C99-based-standards] (SCNuFAST64): Likewise.
61346         [C99-based-standards] (SCNxFAST64): Likewise.
61347         [C99-based-standards] (PRIdMAX): Likewise.
61348         [C99-based-standards] (PRIiMAX): Likewise.
61349         [C99-based-standards] (PRIoMAX): Likewise.
61350         [C99-based-standards] (PRIuMAX): Likewise.
61351         [C99-based-standards] (PRIxMAX): Likewise.
61352         [C99-based-standards] (PRIXMAX): Likewise.
61353         [C99-based-standards] (SCNdMAX): Likewise.
61354         [C99-based-standards] (SCNiMAX): Likewise.
61355         [C99-based-standards] (SCNoMAX): Likewise.
61356         [C99-based-standards] (SCNuMAX): Likewise.
61357         [C99-based-standards] (SCNxMAX): Likewise.
61358         [C99-based-standards] (PRIdPTR): Likewise.
61359         [C99-based-standards] (PRIiPTR): Likewise.
61360         [C99-based-standards] (PRIoPTR): Likewise.
61361         [C99-based-standards] (PRIuPTR): Likewise.
61362         [C99-based-standards] (PRIxPTR): Likewise.
61363         [C99-based-standards] (PRIXPTR): Likewise.
61364         [C99-based-standards] (SCNdPTR): Likewise.
61365         [C99-based-standards] (SCNiPTR): Likewise.
61366         [C99-based-standards] (SCNoPTR): Likewise.
61367         [C99-based-standards] (SCNuPTR): Likewise.
61368         [C99-based-standards] (SCNxPTR): Likewise.
61369         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
61370         allow.
61371         * conform/data/stdint.h-data: Update comments to clarify
61372         requirements.
61373         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
61374         type.
61375         [C99-based standards] (INT8_MAX): Likewise.
61376         [C99-based standards] (INT16_MIN): Likewise.
61377         [C99-based standards] (INT16_MAX): Likewise.
61378         [C99-based standards] (INT32_MIN): Likewise.
61379         [C99-based standards] (INT32_MAX): Likewise.
61380         [C99-based standards] (INT64_MIN): Likewise.
61381         [C99-based standards] (INT64_MAX): Likewise.
61382         [C99-based standards] (UINT8_MAX): Likewise.
61383         [C99-based standards] (UINT16_MAX): Likewise.
61384         [C99-based standards] (UINT32_MAX): Likewise.
61385         [C99-based standards] (UINT64_MAX): Likewise.
61386         [C99-based standards] (INT_LEAST8_MIN): Likewise.
61387         [C99-based standards] (INT_LEAST8_MAX): Likewise.
61388         [C99-based standards] (INT_LEAST16_MIN): Likewise.
61389         [C99-based standards] (INT_LEAST16_MAX): Likewise.
61390         [C99-based standards] (INT_LEAST32_MIN): Likewise.
61391         [C99-based standards] (INT_LEAST32_MAX): Likewise.
61392         [C99-based standards] (INT_LEAST64_MIN): Likewise.
61393         [C99-based standards] (INT_LEAST64_MAX): Likewise.
61394         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
61395         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
61396         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
61397         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
61398         [C99-based standards] (INT_FAST8_MIN): Likewise.
61399         [C99-based standards] (INT_FAST8_MAX): Likewise.
61400         [C99-based standards] (INT_FAST16_MIN): Likewise.
61401         [C99-based standards] (INT_FAST16_MAX): Likewise.
61402         [C99-based standards] (INT_FAST32_MIN): Likewise.
61403         [C99-based standards] (INT_FAST32_MAX): Likewise.
61404         [C99-based standards] (INT_FAST64_MIN): Likewise.
61405         [C99-based standards] (INT_FAST64_MAX): Likewise.
61406         [C99-based standards] (UINT_FAST8_MAX): Likewise.
61407         [C99-based standards] (UINT_FAST16_MAX): Likewise.
61408         [C99-based standards] (UINT_FAST32_MAX): Likewise.
61409         [C99-based standards] (UINT_FAST64_MAX): Likewise.
61410         [C99-based standards] (INTPTR_MIN): Likewise.
61411         [C99-based standards] (INTPTR_MAX): Likewise.
61412         [C99-based standards] (UINTPTR_MAX): Likewise.
61413         [C99-based standards] (INTMAX_MIN): Likewise.
61414         [C99-based standards] (INTMAX_MAX): Likewise.
61415         [C99-based standards] (UINTMAX_MAX): Likewise.
61416         [C99-based standards] (PTRDIFF_MIN): Likewise.
61417         [C99-based standards] (PTRDIFF_MAX): Likewise.
61418         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
61419         [C99-based standards] (SIZE_MAX): Likewise.
61420         [C99-based standards] (WCHAR_MAX): Likewise.
61421         [C99-based standards] (WINT_MAX): Likewise.
61422         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
61423         constraint on value.
61424         [C99-based standards] (WCHAR_MIN): Likewise.
61425         [C99-based standards] (WINT_MIN): Likewise.
61426         [C99-based standards] (*_t): Allow.
61427         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
61428         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
61429         Include math.h-data and complex.h-data.  Remove all expectations
61430         of math.h and complex.h contents.
61431         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
61432         at end of line.
61433         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
61434         (struct tm): Expect tag.
61435         [C99-based-standards] (wcstof): Expect function.
61436         [C99-based-standards] (wcstold): Likewise.
61437         [C99-based-standards] (wcstoll): Likewise.
61438         [C99-based-standards] (wcstoull): Likewise.
61439         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
61440         macro-int-constant.  Specify type.
61441         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
61442         constraint on value.
61443         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61444         Specify type.
61445         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
61446         Specify value.
61447         [ISO C standards]: Do not allow headers.
61448         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
61449         wcs[abcdefghijklmnopqrstuvwxyz]*.
61450         [ISO C standards] (*_t): Do not allow.
61451         * conform/data/wctype.h-data [C99-based standards] (iswblank):
61452         Expect function.
61453         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
61454         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
61455         Specify type.
61456         [ISO C standards]: Do not allow headers.
61457         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
61458         is[abcdefghijklmnopqrstuvwxyz]*.
61459         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
61460         to[abcdefghijklmnopqrstuvwxyz]*.
61461         [ISO C standards] (*_t): Do not allow.
61462         * conform/data/stdalign.h-data: New file.
61463         * conform/data/stdbool.h-data: Likewise.
61464         * conform/data/stdnoreturn.h-data: Likewise.
61465
61466 2012-11-07  Roland McGrath  <roland@hack.frob.com>
61467
61468         [BZ #14815]
61469         * manual/filesys.texi (Directory Entries): Typo fix.
61470         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
61471
61472 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
61473
61474         * elf/elf.h (EM_AARCH64): New macro.
61475         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
61476         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
61477         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
61478         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
61479         (R_AARCH64_TLSDESC): Likewise.
61480         (NT_ARM_TLS): Likewise.
61481         (NT_ARM_HW_BREAK): Likewise.
61482         (NT_ARM_HW_WATCH): Likewise.
61483
61484 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61485
61486         [BZ #14811]
61487         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
61488         (__ieee754_powl): Saturate nonzero exponents with absolute value
61489         below 0x1p-79 to +/- 0x1p-79.
61490         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
61491         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
61492         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
61493         nonzero exponents with absolute value below 0x1p-32 to +/-
61494         0x1p-32.
61495         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
61496         (__ieee754_powl): Saturate nonzero exponents with absolute value
61497         below 0x1p-79 to +/- 0x1p-79.
61498         * math/libm-test.inc (pow_test): Add more tests.
61499
61500 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61501
61502         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
61503         _dl_s390_cap_flags with kernel. Increase string length.
61504         (_dl_s390_platforms): Add z196 and zEC12.
61505
61506 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
61507
61508         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
61509         Change XOPEN21K to XOPEN2K.
61510
61511 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
61512
61513         * string/memmove.c: Use memcpy when possible.
61514
61515 2012-11-06  Andreas Jaeger  <aj@suse.de>
61516
61517         * po/eo.po: Update from translation team.
61518
61519 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
61520
61521         [BZ #14793]
61522         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
61523         exponent and small x and y exponents, scale x or y up.  Increase
61524         by 2 the exponent used in scaling up.
61525         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61526         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61527         * math/libm-test.inc (fma_test): Add more tests.
61528         (fma_test_towardzero): Likewise.
61529         (fma_test_downward): Likewise.
61530         (fma_test_upward): Likewise.
61531
61532 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
61533
61534         [BZ #14805]
61535         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
61536         fenv_t *.
61537
61538         [BZ #14801]
61539         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
61540         namespace for names of struct fields.
61541         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
61542         fenv_t fields.
61543         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
61544         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
61545
61546 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
61547
61548         [BZ #3665]
61549         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
61550
61551 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61552
61553         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
61554         PTR_DEMANGLE.
61555
61556         [BZ #5246]
61557         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
61558         PTR_DEMANGLE.
61559
61560 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
61561
61562         [BZ #14797]
61563         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
61564         definitely overflow as x * y not x * y + z.
61565         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61566         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
61567         * math/libm-test.inc (fma_test): Add more tests.
61568         (fma_test_towardzero): Likewise.
61569         (fma_test_downward): Likewise.
61570         (fma_test_upward): Likewise.
61571
61572 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
61573
61574         [BZ #157]
61575
61576         * include/stub-tag.h: Remove file.
61577         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
61578         '#include' of it.
61579         * manual/maint.texi (Porting): Don't reference it.
61580         * Makerules ($(objpfx)stubs): Likewise.
61581         * dirent/closedir.c: Don't include <stub-tag.h>.
61582         * dirent/dirfd.c: Likewise.
61583         * dirent/fdopendir.c: Likewise.
61584         * dirent/getdents.c: Likewise.
61585         * dirent/getdents64.c: Likewise.
61586         * dirent/opendir.c: Likewise.
61587         * dirent/readdir.c: Likewise.
61588         * dirent/readdir64.c: Likewise.
61589         * dirent/readdir64_r.c: Likewise.
61590         * dirent/readdir_r.c: Likewise.
61591         * dirent/rewinddir.c: Likewise.
61592         * dirent/seekdir.c: Likewise.
61593         * dirent/telldir.c: Likewise.
61594         * gmon/profil.c: Likewise.
61595         * grp/setgroups.c: Likewise.
61596         * inet/if_index.c: Likewise.
61597         * io/access.c: Likewise.
61598         * io/chdir.c: Likewise.
61599         * io/chmod.c: Likewise.
61600         * io/chown.c: Likewise.
61601         * io/close.c: Likewise.
61602         * io/dup.c: Likewise.
61603         * io/dup2.c: Likewise.
61604         * io/dup3.c: Likewise.
61605         * io/euidaccess.c: Likewise.
61606         * io/faccessat.c: Likewise.
61607         * io/fchdir.c: Likewise.
61608         * io/fchmod.c: Likewise.
61609         * io/fchmodat.c: Likewise.
61610         * io/fchown.c: Likewise.
61611         * io/fchownat.c: Likewise.
61612         * io/fcntl.c: Likewise.
61613         * io/flock.c: Likewise.
61614         * io/fstatfs.c: Likewise.
61615         * io/fstatfs64.c: Likewise.
61616         * io/fstatvfs.c: Likewise.
61617         * io/fstatvfs64.c: Likewise.
61618         * io/futimens.c: Likewise.
61619         * io/fxstat.c: Likewise.
61620         * io/fxstat64.c: Likewise.
61621         * io/fxstatat.c: Likewise.
61622         * io/fxstatat64.c: Likewise.
61623         * io/getcwd.c: Likewise.
61624         * io/isatty.c: Likewise.
61625         * io/lchmod.c: Likewise.
61626         * io/lchown.c: Likewise.
61627         * io/link.c: Likewise.
61628         * io/linkat.c: Likewise.
61629         * io/lseek.c: Likewise.
61630         * io/lseek64.c: Likewise.
61631         * io/lxstat64.c: Likewise.
61632         * io/mkdir.c: Likewise.
61633         * io/mkdirat.c: Likewise.
61634         * io/mkfifo.c: Likewise.
61635         * io/mkfifoat.c: Likewise.
61636         * io/open.c: Likewise.
61637         * io/open64.c: Likewise.
61638         * io/openat.c: Likewise.
61639         * io/openat64.c: Likewise.
61640         * io/pipe.c: Likewise.
61641         * io/pipe2.c: Likewise.
61642         * io/poll.c: Likewise.
61643         * io/posix_fadvise.c: Likewise.
61644         * io/posix_fadvise64.c: Likewise.
61645         * io/posix_fallocate.c: Likewise.
61646         * io/posix_fallocate64.c: Likewise.
61647         * io/read.c: Likewise.
61648         * io/readlink.c: Likewise.
61649         * io/readlinkat.c: Likewise.
61650         * io/rmdir.c: Likewise.
61651         * io/sendfile.c: Likewise.
61652         * io/sendfile64.c: Likewise.
61653         * io/statfs.c: Likewise.
61654         * io/statfs64.c: Likewise.
61655         * io/statvfs.c: Likewise.
61656         * io/statvfs64.c: Likewise.
61657         * io/symlink.c: Likewise.
61658         * io/symlinkat.c: Likewise.
61659         * io/ttyname.c: Likewise.
61660         * io/ttyname_r.c: Likewise.
61661         * io/umask.c: Likewise.
61662         * io/unlink.c: Likewise.
61663         * io/unlinkat.c: Likewise.
61664         * io/utime.c: Likewise.
61665         * io/utimensat.c: Likewise.
61666         * io/write.c: Likewise.
61667         * io/xmknod.c: Likewise.
61668         * io/xmknodat.c: Likewise.
61669         * io/xstat.c: Likewise.
61670         * io/xstat64.c: Likewise.
61671         * login/getpt.c: Likewise.
61672         * login/grantpt.c: Likewise.
61673         * login/unlockpt.c: Likewise.
61674         * math/e_acoshl.c: Likewise.
61675         * math/e_acosl.c: Likewise.
61676         * math/e_asinl.c: Likewise.
61677         * math/e_atan2l.c: Likewise.
61678         * math/e_atanhl.c: Likewise.
61679         * math/e_coshl.c: Likewise.
61680         * math/e_expl.c: Likewise.
61681         * math/e_fmodl.c: Likewise.
61682         * math/e_gammal_r.c: Likewise.
61683         * math/e_hypotl.c: Likewise.
61684         * math/e_j0l.c: Likewise.
61685         * math/e_j1l.c: Likewise.
61686         * math/e_jnl.c: Likewise.
61687         * math/e_lgammal_r.c: Likewise.
61688         * math/e_log10l.c: Likewise.
61689         * math/e_log2l.c: Likewise.
61690         * math/e_logl.c: Likewise.
61691         * math/e_powl.c: Likewise.
61692         * math/e_rem_pio2l.c: Likewise.
61693         * math/e_sinhl.c: Likewise.
61694         * math/e_sqrtl.c: Likewise.
61695         * math/fclrexcpt.c: Likewise.
61696         * math/fedisblxcpt.c: Likewise.
61697         * math/feenablxcpt.c: Likewise.
61698         * math/fegetenv.c: Likewise.
61699         * math/fegetexcept.c: Likewise.
61700         * math/fegetround.c: Likewise.
61701         * math/feholdexcpt.c: Likewise.
61702         * math/fesetenv.c: Likewise.
61703         * math/fesetround.c: Likewise.
61704         * math/feupdateenv.c: Likewise.
61705         * math/fgetexcptflg.c: Likewise.
61706         * math/fraiseexcpt.c: Likewise.
61707         * math/fsetexcptflg.c: Likewise.
61708         * math/ftestexcept.c: Likewise.
61709         * math/k_cosl.c: Likewise.
61710         * math/k_rem_pio2l.c: Likewise.
61711         * math/k_sinl.c: Likewise.
61712         * math/k_tanl.c: Likewise.
61713         * math/s_asinhl.c: Likewise.
61714         * math/s_atanl.c: Likewise.
61715         * math/s_cbrtl.c: Likewise.
61716         * math/s_erfl.c: Likewise.
61717         * math/s_expm1l.c: Likewise.
61718         * math/s_log1pl.c: Likewise.
61719         * math/s_tanhl.c: Likewise.
61720         * misc/acct.c: Likewise.
61721         * misc/brk.c: Likewise.
61722         * misc/chflags.c: Likewise.
61723         * misc/chroot.c: Likewise.
61724         * misc/fchflags.c: Likewise.
61725         * misc/fgetxattr.c: Likewise.
61726         * misc/flistxattr.c: Likewise.
61727         * misc/fremovexattr.c: Likewise.
61728         * misc/fsetxattr.c: Likewise.
61729         * misc/fsync.c: Likewise.
61730         * misc/ftruncate.c: Likewise.
61731         * misc/futimes.c: Likewise.
61732         * misc/futimesat.c: Likewise.
61733         * misc/getdomain.c: Likewise.
61734         * misc/getdtsz.c: Likewise.
61735         * misc/gethostid.c: Likewise.
61736         * misc/gethostname.c: Likewise.
61737         * misc/getloadavg.c: Likewise.
61738         * misc/getpagesize.c: Likewise.
61739         * misc/getsysstats.c: Likewise.
61740         * misc/getxattr.c: Likewise.
61741         * misc/gtty.c: Likewise.
61742         * misc/ioctl.c: Likewise.
61743         * misc/lgetxattr.c: Likewise.
61744         * misc/listxattr.c: Likewise.
61745         * misc/llistxattr.c: Likewise.
61746         * misc/lremovexattr.c: Likewise.
61747         * misc/lsetxattr.c: Likewise.
61748         * misc/lutimes.c: Likewise.
61749         * misc/madvise.c: Likewise.
61750         * misc/mincore.c: Likewise.
61751         * misc/mlock.c: Likewise.
61752         * misc/mlockall.c: Likewise.
61753         * misc/mmap.c: Likewise.
61754         * misc/mprotect.c: Likewise.
61755         * misc/msync.c: Likewise.
61756         * misc/munlock.c: Likewise.
61757         * misc/munlockall.c: Likewise.
61758         * misc/munmap.c: Likewise.
61759         * misc/preadv.c: Likewise.
61760         * misc/preadv64.c: Likewise.
61761         * misc/ptrace.c: Likewise.
61762         * misc/pwritev.c: Likewise.
61763         * misc/pwritev64.c: Likewise.
61764         * misc/readv.c: Likewise.
61765         * misc/reboot.c: Likewise.
61766         * misc/remap_file_pages.c: Likewise.
61767         * misc/removexattr.c: Likewise.
61768         * misc/revoke.c: Likewise.
61769         * misc/select.c: Likewise.
61770         * misc/setdomain.c: Likewise.
61771         * misc/setegid.c: Likewise.
61772         * misc/seteuid.c: Likewise.
61773         * misc/sethostid.c: Likewise.
61774         * misc/sethostname.c: Likewise.
61775         * misc/setregid.c: Likewise.
61776         * misc/setreuid.c: Likewise.
61777         * misc/setxattr.c: Likewise.
61778         * misc/sstk.c: Likewise.
61779         * misc/stty.c: Likewise.
61780         * misc/swapoff.c: Likewise.
61781         * misc/swapon.c: Likewise.
61782         * misc/sync.c: Likewise.
61783         * misc/syncfs.c: Likewise.
61784         * misc/syscall.c: Likewise.
61785         * misc/truncate.c: Likewise.
61786         * misc/ualarm.c: Likewise.
61787         * misc/usleep.c: Likewise.
61788         * misc/ustat.c: Likewise.
61789         * misc/utimes.c: Likewise.
61790         * misc/vhangup.c: Likewise.
61791         * misc/writev.c: Likewise.
61792         * posix/_exit.c: Likewise.
61793         * posix/alarm.c: Likewise.
61794         * posix/execve.c: Likewise.
61795         * posix/fexecve.c: Likewise.
61796         * posix/fork.c: Likewise.
61797         * posix/fpathconf.c: Likewise.
61798         * posix/getaddrinfo.c: Likewise.
61799         * posix/getegid.c: Likewise.
61800         * posix/geteuid.c: Likewise.
61801         * posix/getgid.c: Likewise.
61802         * posix/getgroups.c: Likewise.
61803         * posix/getlogin.c: Likewise.
61804         * posix/getlogin_r.c: Likewise.
61805         * posix/getpgid.c: Likewise.
61806         * posix/getpid.c: Likewise.
61807         * posix/getppid.c: Likewise.
61808         * posix/getresgid.c: Likewise.
61809         * posix/getresuid.c: Likewise.
61810         * posix/getsid.c: Likewise.
61811         * posix/getuid.c: Likewise.
61812         * posix/glob64.c: Likewise.
61813         * posix/nanosleep.c: Likewise.
61814         * posix/pathconf.c: Likewise.
61815         * posix/pause.c: Likewise.
61816         * posix/posix_madvise.c: Likewise.
61817         * posix/pread.c: Likewise.
61818         * posix/pread64.c: Likewise.
61819         * posix/pwrite.c: Likewise.
61820         * posix/pwrite64.c: Likewise.
61821         * posix/sched_getaffinity.c: Likewise.
61822         * posix/sched_getp.c: Likewise.
61823         * posix/sched_gets.c: Likewise.
61824         * posix/sched_primax.c: Likewise.
61825         * posix/sched_primin.c: Likewise.
61826         * posix/sched_rr_gi.c: Likewise.
61827         * posix/sched_setaffinity.c: Likewise.
61828         * posix/sched_setp.c: Likewise.
61829         * posix/sched_sets.c: Likewise.
61830         * posix/sched_yield.c: Likewise.
61831         * posix/setgid.c: Likewise.
61832         * posix/setlogin.c: Likewise.
61833         * posix/setpgid.c: Likewise.
61834         * posix/setresgid.c: Likewise.
61835         * posix/setresuid.c: Likewise.
61836         * posix/setsid.c: Likewise.
61837         * posix/setuid.c: Likewise.
61838         * posix/sleep.c: Likewise.
61839         * posix/spawni.c: Likewise.
61840         * posix/sysconf.c: Likewise.
61841         * posix/times.c: Likewise.
61842         * posix/wait.c: Likewise.
61843         * posix/wait3.c: Likewise.
61844         * posix/wait4.c: Likewise.
61845         * posix/waitpid.c: Likewise.
61846         * resolv/gai_sigqueue.c: Likewise.
61847         * resource/getpriority.c: Likewise.
61848         * resource/getrlimit.c: Likewise.
61849         * resource/getrusage.c: Likewise.
61850         * resource/nice.c: Likewise.
61851         * resource/setpriority.c: Likewise.
61852         * resource/setrlimit.c: Likewise.
61853         * resource/ulimit.c: Likewise.
61854         * rt/aio_cancel.c: Likewise.
61855         * rt/aio_fsync.c: Likewise.
61856         * rt/aio_read.c: Likewise.
61857         * rt/aio_sigqueue.c: Likewise.
61858         * rt/aio_suspend.c: Likewise.
61859         * rt/aio_write.c: Likewise.
61860         * rt/clock_getres.c: Likewise.
61861         * rt/clock_gettime.c: Likewise.
61862         * rt/clock_nanosleep.c: Likewise.
61863         * rt/clock_settime.c: Likewise.
61864         * rt/lio_listio.c: Likewise.
61865         * rt/mq_close.c: Likewise.
61866         * rt/mq_getattr.c: Likewise.
61867         * rt/mq_notify.c: Likewise.
61868         * rt/mq_open.c: Likewise.
61869         * rt/mq_receive.c: Likewise.
61870         * rt/mq_send.c: Likewise.
61871         * rt/mq_setattr.c: Likewise.
61872         * rt/mq_timedreceive.c: Likewise.
61873         * rt/mq_timedsend.c: Likewise.
61874         * rt/mq_unlink.c: Likewise.
61875         * rt/shm_open.c: Likewise.
61876         * rt/shm_unlink.c: Likewise.
61877         * rt/timer_create.c: Likewise.
61878         * rt/timer_delete.c: Likewise.
61879         * rt/timer_getoverr.c: Likewise.
61880         * rt/timer_gettime.c: Likewise.
61881         * rt/timer_settime.c: Likewise.
61882         * setjmp/__longjmp.c: Likewise.
61883         * setjmp/setjmp.c: Likewise.
61884         * signal/kill.c: Likewise.
61885         * signal/killpg.c: Likewise.
61886         * signal/raise.c: Likewise.
61887         * signal/sigaction.c: Likewise.
61888         * signal/sigaltstack.c: Likewise.
61889         * signal/sigblock.c: Likewise.
61890         * signal/sigignore.c: Likewise.
61891         * signal/sigintr.c: Likewise.
61892         * signal/signal.c: Likewise.
61893         * signal/sigpause.c: Likewise.
61894         * signal/sigpending.c: Likewise.
61895         * signal/sigqueue.c: Likewise.
61896         * signal/sigreturn.c: Likewise.
61897         * signal/sigset.c: Likewise.
61898         * signal/sigsetmask.c: Likewise.
61899         * signal/sigstack.c: Likewise.
61900         * signal/sigsuspend.c: Likewise.
61901         * signal/sigtimedwait.c: Likewise.
61902         * signal/sigvec.c: Likewise.
61903         * signal/sigwait.c: Likewise.
61904         * signal/sigwaitinfo.c: Likewise.
61905         * signal/sysv_signal.c: Likewise.
61906         * socket/accept.c: Likewise.
61907         * socket/accept4.c: Likewise.
61908         * socket/bind.c: Likewise.
61909         * socket/connect.c: Likewise.
61910         * socket/getpeername.c: Likewise.
61911         * socket/getsockname.c: Likewise.
61912         * socket/getsockopt.c: Likewise.
61913         * socket/isfdtype.c: Likewise.
61914         * socket/listen.c: Likewise.
61915         * socket/recv.c: Likewise.
61916         * socket/recvfrom.c: Likewise.
61917         * socket/recvmsg.c: Likewise.
61918         * socket/send.c: Likewise.
61919         * socket/sendmsg.c: Likewise.
61920         * socket/sendto.c: Likewise.
61921         * socket/setsockopt.c: Likewise.
61922         * socket/shutdown.c: Likewise.
61923         * socket/sockatmark.c: Likewise.
61924         * socket/socket.c: Likewise.
61925         * socket/socketpair.c: Likewise.
61926         * stdio-common/ctermid.c: Likewise.
61927         * stdio-common/cuserid.c: Likewise.
61928         * stdio-common/remove.c: Likewise.
61929         * stdio-common/rename.c: Likewise.
61930         * stdio-common/renameat.c: Likewise.
61931         * stdio-common/tempname.c: Likewise.
61932         * stdlib/getcontext.c: Likewise.
61933         * stdlib/makecontext.c: Likewise.
61934         * stdlib/setcontext.c: Likewise.
61935         * stdlib/swapcontext.c: Likewise.
61936         * stdlib/system.c: Likewise.
61937         * streams/fattach.c: Likewise.
61938         * streams/fdetach.c: Likewise.
61939         * streams/getmsg.c: Likewise.
61940         * streams/getpmsg.c: Likewise.
61941         * streams/putmsg.c: Likewise.
61942         * streams/putpmsg.c: Likewise.
61943         * sysdeps/unix/bsd/getpt.c: Likewise.
61944         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
61945         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
61946         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
61947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
61948         Likewise.
61949         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
61950         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
61951         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
61952         * sysvipc/msgctl.c: Likewise.
61953         * sysvipc/msgget.c: Likewise.
61954         * sysvipc/msgrcv.c: Likewise.
61955         * sysvipc/msgsnd.c: Likewise.
61956         * sysvipc/semctl.c: Likewise.
61957         * sysvipc/semget.c: Likewise.
61958         * sysvipc/semop.c: Likewise.
61959         * sysvipc/semtimedop.c: Likewise.
61960         * sysvipc/shmat.c: Likewise.
61961         * sysvipc/shmctl.c: Likewise.
61962         * sysvipc/shmdt.c: Likewise.
61963         * sysvipc/shmget.c: Likewise.
61964         * termios/tcdrain.c: Likewise.
61965         * termios/tcflow.c: Likewise.
61966         * termios/tcflush.c: Likewise.
61967         * termios/tcgetattr.c: Likewise.
61968         * termios/tcgetpgrp.c: Likewise.
61969         * termios/tcsendbrk.c: Likewise.
61970         * termios/tcsetattr.c: Likewise.
61971         * termios/tcsetpgrp.c: Likewise.
61972         * time/adjtime.c: Likewise.
61973         * time/clock.c: Likewise.
61974         * time/getitimer.c: Likewise.
61975         * time/gettimeofday.c: Likewise.
61976         * time/setitimer.c: Likewise.
61977         * time/settimeofday.c: Likewise.
61978         * time/stime.c: Likewise.
61979         * time/time.c: Likewise.
61980
61981 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
61982
61983         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
61984         /usr/old/bin.
61985
61986         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
61987         instead of spaces.
61988         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
61989
61990 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
61991
61992         [BZ #14796]
61993         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
61994         FE_TONEAREST before applying Dekker multiplication and Knuth
61995         addition.  Clear inexact exceptions and check for exact zero
61996         results afterwards.
61997         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
61998         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
61999         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62000         * math/libm-test.inc (fma_test): Add more tests.
62001         (fma_test_towardzero): Likewise.
62002         (fma_test_downward): Likewise.
62003         (fma_test_upward): Likewise.
62004         * sysdeps/generic/math_private.h (default_libc_fesetround): New
62005         function.
62006         (libc_fesetround): New macro.
62007         (libc_fesetroundf): Likewise.
62008         (libc_fesetroundl): Likewise.
62009         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
62010         function.
62011         (libc_fesetround_387): Likewise.
62012         (libc_fesetroundf): New macro.
62013         (libc_fesetround): Likewise.
62014         (libc_fesetroundl): Likewise.
62015         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
62016         function.
62017         (libc_fesetroundf): New macro.
62018         (libc_fesetround): Likewise.
62019         (libc_fesetroundl): Likewise.
62020         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
62021         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
62022         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
62023         libm_hidden_ver.
62024         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
62025         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
62026         libm_hidden_def.
62027         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
62028         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
62029         libm_hidden_ver.
62030         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
62031         libm_hidden_def.
62032
62033         [BZ #3439]
62034         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
62035         integer constant usable in #if and use that to give value to enum
62036         constant.
62037         (FE_DIVBYZERO): Likewise.
62038         (FE_UNDERFLOW): Likewise.
62039         (FE_OVERFLOW): Likewise.
62040         (FE_INVALID): Likewise.
62041         (FE_INVALID_SNAN): Likewise.
62042         (FE_INVALID_ISI): Likewise.
62043         (FE_INVALID_IDI): Likewise.
62044         (FE_INVALID_ZDZ): Likewise.
62045         (FE_INVALID_IMZ): Likewise.
62046         (FE_INVALID_COMPARE): Likewise.
62047         (FE_INVALID_SOFTWARE): Likewise.
62048         (FE_INVALID_SQRT): Likewise.
62049         (FE_INVALID_INTEGER_CONVERSION): Likewise.
62050         (FE_TONEAREST): Likewise.
62051         (FE_TOWARDZERO): Likewise.
62052         (FE_UPWARD): Likewise.
62053         (FE_DOWNWARD): Likewise.
62054         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
62055         (FE_DIVBYZERO): Likewise.
62056         (FE_OVERFLOW): Likewise.
62057         (FE_UNDERFLOW): Likewise.
62058         (FE_INEXACT): Likewise.
62059         (FE_TONEAREST): Likewise.
62060         (FE_DOWNWARD): Likewise.
62061         (FE_UPWARD): Likewise.
62062         (FE_TOWARDZERO): Likewise.
62063         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
62064         (FE_UNDERFLOW): Likewise.
62065         (FE_OVERFLOW): Likewise.
62066         (FE_DIVBYZERO): Likewise.
62067         (FE_INVALID): Likewise.
62068         (FE_TONEAREST): Likewise.
62069         (FE_TOWARDZERO): Likewise.
62070         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
62071         (FE_OVERFLOW): Likewise.
62072         (FE_UNDERFLOW): Likewise.
62073         (FE_DIVBYZERO): Likewise.
62074         (FE_INEXACT): Likewise.
62075         (FE_TONEAREST): Likewise.
62076         (FE_TOWARDZERO): Likewise.
62077         (FE_UPWARD): Likewise.
62078         (FE_DOWNWARD): Likewise.
62079         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
62080         (FE_DIVBYZERO): Likewise.
62081         (FE_OVERFLOW): Likewise.
62082         (FE_UNDERFLOW): Likewise.
62083         (FE_INEXACT): Likewise.
62084         (FE_TONEAREST): Likewise.
62085         (FE_DOWNWARD): Likewise.
62086         (FE_UPWARD): Likewise.
62087         (FE_TOWARDZERO): Likewise.
62088
62089 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
62090
62091         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
62092
62093 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
62094
62095         * scripts/cross-test-ssh.sh (command): Use newlines to separate
62096         commands.  Quote $PWD.
62097         (blacklist_exports): Don't use remove_newlines.  Replace "declare
62098         -x" by "export".
62099         (remove_newlines): Remove.
62100
62101 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
62102
62103         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
62104         * stdlib/stdlib.h (atof): Moved to ...
62105         * include/bits/stdlib-float.h: Here.  New file.
62106         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
62107         * stdlib/bits/stdlib-float.h: New file.
62108         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
62109         -mno-sse -mno-mmx.
62110         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
62111         <xmmintrin.h>.
62112
62113 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62114
62115         * conform/conformtest.pl (@headers): Add fenv.h.
62116         * conform/data/fenv.h-data: New file.
62117         * include/fenv.h [_ISOMAC]: Disable all contents of file except
62118         include of <math/fenv.h>.
62119
62120         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
62121         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
62122         && !UNIX98].  Enables tests for XOPEN2K8.
62123         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
62124         POSIX2008]: Likewise.
62125
62126         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
62127         (struct rusage): Do not expect type or its members.
62128
62129         [BZ #3439]
62130         * math/math.h (FP_NAN): Define macro to integer constant usable in
62131         #if and use that to give value to enum constant.
62132         (FP_INFINITE): Likewise.
62133         (FP_ZERO): Likewise.
62134         (FP_SUBNORMAL): Likewise.
62135         (FP_NORMAL): Likewise.
62136
62137 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
62138
62139         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
62140         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
62141         arguments.
62142
62143 2012-11-02  Roland McGrath  <roland@hack.frob.com>
62144
62145         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
62146         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
62147         autoconf-time if not.
62148         * configure.in: Remove AC_PREREQ.
62149
62150 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62151
62152         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
62153         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
62154         of the internal implementation.
62155
62156 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
62157
62158         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
62159         except include of <misc/sys/syslog.h>.
62160
62161 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62162
62163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
62164         function returns with a NULL context exit with zero.
62165
62166 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62167
62168         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
62169
62170 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
62171
62172         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
62173         (run_program_cmd): This.
62174         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
62175         (tst_langinfo): New variable.  Use it.
62176
62177 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
62178
62179         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
62180         floating point opcodes.
62181
62182 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62183
62184         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62185         variable.
62186
62187         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
62188
62189         * sysdeps/mach/hurd/powerpc: Remove directory.
62190         * sysdeps/mach/powerpc: Likewise.
62191
62192 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62193
62194         * scripts/check-local-headers.sh: Ignore c++ headers.
62195
62196 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62197
62198         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
62199         __libc_cleanup_region_start argument.
62200
62201 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
62202
62203         [BZ #14784]
62204         [BZ #14785]
62205         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
62206         x * y using scaling, not as x * y + z.
62207         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62208         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62209         * math/libm-test.inc (fma_test): Add more tests.
62210         (fma_test_towardzero): Likewise.
62211         (fma_test_downward): Likewise.
62212         (fma_test_upward): Likewise.
62213
62214 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
62215
62216         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
62217
62218 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62219
62220         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
62221         New variable.
62222
62223 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
62224
62225         * rt/tst-shm.c (worker): Correct checking for mmap failure.
62226
62227 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62228
62229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62230         Fix sort order.
62231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62232         Likewise.
62233
62234 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62235
62236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62237         Fix the order of the list for glibc 2.17.
62238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62239         Likewise.
62240
62241 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
62242
62243         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62244
62245 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
62246
62247         [BZ #14610]
62248         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
62249         for low part of x being zero before using __atanl (y).
62250         * math/libm-test.inc (atan2_test): Add another test.
62251
62252         * manual/install.texi (Configuring and compiling): Document
62253         general use of test-wrapper and test-wrapper-env.
62254         * INSTALL: Regenerated.
62255
62256         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
62257         (__fma): Do not extract and scale down low bits on after-rounding
62258         systems when result rounded to normal precision would have normal
62259         exponent.
62260         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
62261         (__fmal): Do not extract and scale down low bits on after-rounding
62262         systems when result rounded to normal precision would have normal
62263         exponent.
62264         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
62265         (__fmal): Do not extract and scale down low bits on after-rounding
62266         systems when result rounded to normal precision would have normal
62267         exponent.
62268         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
62269         macro.
62270         (fma_test): Add more tests.
62271         (fma_test_towardzero): Likewise.
62272         (fma_test_downward): Likewise.
62273         (fma_test_upward): Likewise.
62274
62275 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
62276
62277         * sysdeps/i386/tininess.h: Renamed to ...
62278         * sysdeps/x86/tininess.h: This.
62279         * sysdeps/x86_64/tininess.h: Removed.
62280
62281 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62282
62283         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
62284         input.  Use $(build-program-cmd).
62285         ($(objpfx)tst-array1-static.out): Likewise.
62286         ($(objpfx)tst-array2.out): Likewise.
62287         ($(objpfx)tst-array3.out): Likewise.
62288         ($(objpfx)tst-array4.out): Likewise.
62289         ($(objpfx)tst-array5.out): Likewise.
62290         ($(objpfx)tst-array5-static.out): Likewise.
62291
62292 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
62293
62294         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
62295         if defined.
62296
62297         * nss/nsswitch.h (nss_interface_function): Provide new
62298         macro for use with NSS functions.
62299         * grp/initgroups.c: Use new macro.
62300         * nss/getXXbyYY.c: Likewise.
62301         * nss/getXXbyYY_r.c: Likewise.
62302         * nss/getXXent.c: Likewise.
62303         * nss/getXXent_r.c: Likewise.
62304         * sysdeps/posix/getaddrinfo.c: Likewise.
62305
62306 2012-10-30  Andreas Jaeger  <aj@suse.de>
62307
62308         * po/ru.po: Update Russion translation from translation project.
62309
62310 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62311
62312         [BZ #14152]
62313         [BZ #14783]
62314         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62315         result and shift together with sticky bit instead of replicating
62316         round-to-nearest rounding.
62317         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
62318         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
62319         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
62320         missing underflow exceptions.
62321         (fma_test_towardzero): Add more tests.
62322         (fma_test_downward): Likewise.
62323         (fma_test_upward): Likewise.
62324
62325         [BZ #14047]
62326         * sysdeps/generic/tininess.h: New file.
62327         * sysdeps/i386/tininess.h: Likewise.
62328         * sysdeps/sh/tininess.h: Likewise.
62329         * sysdeps/x86_64/tininess.h: Likewise.
62330         * stdlib/tst-strtod-underflow.c: Likewise.
62331         * stdlib/tst-tininess.c: Likewise.
62332         * stdlib/strtod_l.c: Include <tininess.h>.
62333         (round_and_return): Do not set errno for exact underflow cases.
62334         Force an underflow exception when setting errno for underflow.
62335         Determine underflow based on rounding to normal precision if
62336         TININESS_AFTER_ROUNDING.
62337         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
62338         ERANGE for exact underflow cases.
62339         * stdlib/Makefile (tests): Add tst-tininess and
62340         tst-strtod-underflow.
62341         ($(objpfx)tst-tininess): Use $(link-libm).
62342         ($(objpfx)tst-strtod-underflow): Likewise.
62343
62344 2012-10-30  Andreas Jaeger  <aj@suse.de>
62345
62346         [BZ#14767]
62347         * elf/Makefile (tests): Remove conditional for have-initfini-array
62348         since this is now always required and the variable does not exist
62349         anymore.
62350         (tests-static): Likewise.
62351         (modules-names): Likewise.
62352
62353         * po/eo.po: Add Esperanto translation from translation project.
62354
62355         * elf/tst-array1.c (fini_array): Make writeable so that it can be
62356         merged with constructor/destructor.
62357         (init_array): Likewise.
62358         * elf/tst-array2dep.c (fini_array): Likewise.
62359         (init_array): Likewise.
62360
62361 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
62362
62363         * manual/message.texi: Delete @cartouche tags.
62364
62365 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
62366
62367         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
62368         EOPNOTSUPP.
62369         * sysdeps/mach/hurd/fsync.c: Likewise.
62370
62371         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
62372         [_POSIX_REALTIME_SIGNALS]: Change condition to
62373         [_POSIX_REALTIME_SIGNALS > 0].
62374
62375 2012-10-27  Andreas Jaeger  <aj@suse.de>
62376
62377         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
62378         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
62379         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
62380         [__WORDSIZE != 64]: Likewise.
62381
62382 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
62383
62384         *  iconvdata/tst-table.sh: Remove ${SHELL}.
62385         *  iconvdata/tst-tables.sh: Likewise.
62386
62387 2012-10-25  David S. Miller  <davem@davemloft.net>
62388
62389         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62390         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
62391         of strtoull.
62392
62393         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
62394         ifunc-impl-list.c
62395         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
62396         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
62397         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
62398         file.
62399
62400 2012-10-25  Roland McGrath  <roland@hack.frob.com>
62401
62402         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62403         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
62404         __getdirentries.
62405
62406 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62407             Jim Blandy  <jimb@codesourcery.com>
62408
62409         * scripts/cross-test-ssh.sh: New file.
62410         * manual/install.texi (Configuring and compiling): Document use of
62411         cross-test-ssh.sh.
62412         * INSTALL: Regenerated.
62413
62414 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
62415
62416         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
62417         EOPNOTSUPP.
62418
62419 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
62420
62421         * Makeconfig (run-program-prefix): Fix comment.
62422
62423 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62424             Jim Blandy  <jimb@codesourcery.com>
62425
62426         * Makeconfig (test-wrapper): New variable,
62427         (test-wrapper-env): Likewise.
62428         [$(cross-compiling) = yes && $(test-wrapper) != ""]
62429         (run-built-tests): Define to yes.
62430         (run-program-prefix): Use $(test-wrapper).
62431         (built-program-cmd): Likewise.
62432         * Rules (make-test-out): Use $(test-wrapper-env) and
62433         $(host-built-program-cmd).
62434         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
62435         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
62436         tst-pathopt.sh.
62437         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
62438         $(test-wrapper-env) to tst-rtld-load-self.sh.
62439         ($(objpfx)order2.out): Use $(test-wrapper).
62440         ($(objpfx)tst-initorder.out): Likewise.
62441         ($(objpfx)tst-initorder2.out): Likewise.
62442         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
62443         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
62444         (test_wrapper_env): New variable.  Use it to run ld.so.
62445         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
62446         Use it to run ld.so.
62447         (test_wrapper_env): Likewise.
62448         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
62449         $(test-wrapper) to run-iconv-test.sh.
62450         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
62451         (ICONV): Use $test_wrapper.
62452         * posix/Makefile ($(objpfx)globtest.out): Pass
62453         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
62454         globtest.sh, not $(run-program-prefix).
62455         * posix/globtest.sh (run_via_rtld_prefix): New variable.
62456         (test_wrapper): Likewise.
62457         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
62458         set together with run_via_rtld_prefix.
62459         (run_program_prefix): Define in terms of test_wrapper and
62460         run_via_rtld_prefix.
62461
62462 2012-10-24  Roland McGrath  <roland@hack.frob.com>
62463
62464         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
62465         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
62466         Targets removed.
62467
62468         [BZ #14743]
62469         * include/time.h: Remove librt_hidden_proto (clock_gettime).
62470         Declare __clock_getres, __clock_gettime, __clock_settime,
62471         __clock_nanosleep, and __clock_getcpuclockid.
62472         * rt/clock_gettime.c: Define __clock_gettime as an alias.
62473         Remove librt_hidden_def (clock_gettime).
62474         * sysdeps/unix/clock_gettime.c: Likewise.
62475         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
62476         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
62477         * rt/clock_getres.c: Define __clock_getres as an alias.
62478         * sysdeps/posix/clock_getres.c: Likewise.
62479         * rt/clock_settime.c: Define __clock_settime as an alias.
62480         * sysdeps/unix/clock_settime.c: Likewise.
62481         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
62482         * sysdeps/unix/clock_nanosleep.c: Likewise.
62483         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
62484         * rt/clock-compat.c: New file.
62485         * rt/Makefile (librt-routines): Add clock-compat and move
62486         $(clock-routines) to ...
62487         (routines): ... here, new variable.
62488         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
62489         Don't add get_clockfreq here.
62490         * rt/Versions (libc: GLIBC_2.17): New version set.
62491         Add clock_* symbols here.
62492         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
62493         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
62494         (GLIBC_2.17): Add clock_* symbols.
62495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
62496         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
62497         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
62498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
62499         Likewise.
62500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62501         Likewise.
62502         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
62503         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
62504         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
62505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
62506         * NEWS: Mention the move.
62507
62508         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
62509         Use __open, __read, __close rather than their public counterparts.
62510         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
62511         (__get_clockfreq_via_cpuinfo): Likewise.
62512         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
62513         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
62514
62515         * config.h.in (HAVE_IFUNC): New #undef.
62516         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
62517         was successful.
62518         * configure: Regenerated.
62519
62520 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62521
62522         * configure.in: Move READELF check to start of file.
62523         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
62524         libc_cv_asm_gnu_indirect_function in the process.
62525         * configure: Regenerated.
62526
62527 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
62528
62529         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
62530         send the output to /dev/null.
62531         (libc_cv_cc_with_libunwind): Likewise.
62532         (libc_cv_as_noexecstack): Likewise.
62533         * configure: Regenerate.
62534
62535 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
62536
62537         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
62538
62539         * posix/globtest.sh (TMPDIR): Do not set.
62540         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
62541         (testout): Likewise.
62542
62543 2012-10-24  Andreas Jaeger  <aj@suse.de>
62544
62545         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
62546         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
62547         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
62548         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
62549         posix_fadvise64, posix_fallocate64.
62550
62551         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
62552         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
62553         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
62554         Likewise.
62555         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
62556         Likewise.
62557         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
62558
62559         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
62560         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
62561         <bits/fcntl-linux.h>.
62562         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
62563
62564         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
62565         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
62566         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
62567         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
62568         [__WORDSIZE != 64]: Likewise.
62569
62570 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62571
62572         * Makeconfig (run-built-tests): New variable.
62573         * Rules [$(cross-compiling) = yes]: Change condition to
62574         [$(run-built-tests) = no].
62575         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
62576         to [$(run-built-tests) = yes].
62577         * elf/Makefile [$(cross-compiling) = no]: Likewise.
62578         * grp/Makefile [$(cross-compiling) = no]: Likewise.
62579         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
62580         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
62581         * intl/Makefile [$(cross-compiling) = no]: Likewise.
62582         * io/Makefile [$(cross-compiling) = no]: Likewise.
62583         * libio/Makefile [$(cross-compiling) = no]: Likewise.
62584         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
62585         * misc/Makefile [$(cross-compiling) = no]: Likewise.
62586         * posix/Makefile [$(cross-compiling) = no]: Likewise.
62587         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
62588         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
62589         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
62590         * string/Makefile [$(cross-compiling) = no]: Likewise.
62591
62592         * posix/Makefile ($(objpfx)globtest.out): Pass
62593         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
62594         $(rtld-installed-name).
62595         * posix/globtest.sh (elf_objpfx): Remove variable.
62596         (rtld_installed_name): Likewise.
62597         (library_path): Likewise.
62598         (run_program_prefix): New variable.  Use for running globtest
62599         binary.
62600
62601 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
62602             Joseph Myers  <joseph@codesourcery.com>
62603
62604         * Makeconfig (host-built-program-cmd): New variable.
62605         * elf/Makefile (tst-stackguard1-ARGS): Use
62606         $(host-built-program-cmd).
62607         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
62608         (tst-spawn-ARGS): Likewise.
62609         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
62610
62611 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
62612             Jim Blandy  <jimb@codesourcery.com>
62613
62614         * Makeconfig (run-via-rtld-prefix): New variable.
62615         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
62616         (built-program-cmd): Likewise.
62617
62618 2012-10-22  Andreas Jaeger  <aj@suse.de>
62619
62620         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
62621         __O_RSYNC if it exists, otherwise to O_SYNC.
62622
62623 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
62624             Joseph Myers  <joseph@codesourcery.com>
62625
62626         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
62627         /dev/null.
62628         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
62629         from /dev/null
62630         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
62631         /dev/null.
62632
62633 2012-10-22  Andreas Jaeger  <aj@suse.de>
62634
62635         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
62636         Define always.
62637         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
62638
62639         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
62640         bits/fcntl-linux.h.
62641
62642         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
62643         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
62644
62645         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
62646         to __O_LARGEFILE.
62647         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
62648         to __O_LARGEFILE.
62649
62650 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
62651             Joseph Myers  <joseph@codesourcery.com>
62652
62653         * config.make.in (NM): New variable.
62654
62655 2012-10-21  Andreas Jaeger  <aj@suse.de>
62656
62657         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
62658         definitions and declarations that are provided by
62659         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
62660
62661 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62662
62663         [BZ #14683]
62664         * elf/Makefile (tests-static): Add tst-leaks1-static.
62665         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
62666         ($(objpfx)tst-leaks1-static): New rule.
62667         ($(objpfx)tst-leaks1-static-mem): Likewise.
62668         (tst-leaks1-static-ENV): New macro.
62669         * elf/dl-open.c (dl_open_worker): Check the main application
62670         only if SHARED is defined.
62671         * elf/tst-leaks1-static.c: New file.
62672
62673 2012-10-20  Andreas Jaeger  <aj@suse.de>
62674
62675         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
62676         generic values for Linux.
62677         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
62678         and declarations that are provided by <bits/fcntl-linux.h> and
62679         include <bits/fcntl-linux.h>.
62680         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
62681         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
62682
62683 2012-10-20  Roland McGrath  <roland@hack.frob.com>
62684
62685         * io/fcntl.h: Move include of <bits/types.h> to the top and
62686         include it unconditionally.
62687
62688 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
62689
62690         * wcsmbs/Makefile (tests-ifunc): New variable.
62691         (tests): Add $(tests-ifunc).
62692         * wcsmbs/test-wcschr-ifunc.c: New file.
62693         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
62694         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
62695         * wcsmbs/test-wcslen-ifunc.c: Likewise.
62696         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
62697         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
62698
62699         * string/Makefile (tests-ifunc): New variable.
62700         (tests): Add $(tests-ifunc).
62701         * string/test-memccpy.c (TEST_NAME): New macro.
62702         * string/test-memchr.c (TEST_NAME): Likewise.
62703         * string/test-memcmp.c (TEST_NAME): Likewise.
62704         * string/test-memcpy.c (TEST_NAME): Likewise.
62705         * string/test-memmem.c (TEST_NAME): Likewise.
62706         * string/test-memmove.c (TEST_NAME): Likewise.
62707         * string/test-memset.c (TEST_NAME): Likewise.
62708         * string/test-rawmemchr.c (TEST_NAME): Likewise.
62709         * string/test-stpcpy.c (TEST_NAME): Likewise.
62710         * string/test-stpncpy.c (TEST_NAME): Likewise.
62711         * string/test-strcasecmp.c (TEST_NAME): Likewise.
62712         * string/test-strcasestr.c (TEST_NAME): Likewise.
62713         * string/test-strcat.c (TEST_NAME): Likewise.
62714         * string/test-strchr.c (TEST_NAME): Likewise.
62715         * string/test-strcmp.c(TEST_NAME): Likewise.
62716         * string/test-strcpy.c (TEST_NAME): Likewise.
62717         * string/test-strcspn.c (TEST_NAME): Likewise.
62718         * string/test-strlen.c (TEST_NAME): Likewise.
62719         * string/test-strncasecmp.c (TEST_NAME): Likewise.
62720         * string/test-strncmp.c (TEST_NAME): Likewise.
62721         * string/test-strncpy.c (TEST_NAME): Likewise.
62722         * string/test-strnlen.c (TEST_NAME): Likewise.
62723         * string/test-strpbrk.c (TEST_NAME): Likewise.
62724         * string/test-strrchr.c (TEST_NAME): Likewise.
62725         * string/test-strspn.c (TEST_NAME): Likewise.
62726         * string/test-strstr.c (TEST_NAME): Likewise.
62727         * string/test-bcopy-ifunc.c: New file.
62728         * string/test-bzero-ifunc.c: Likewise.
62729         * string/test-memccpy-ifunc.c: Likewise.
62730         * string/test-memchr-ifunc.c: Likewise.
62731         * string/test-memcmp-ifunc.c: Likewise.
62732         * string/test-memcpy-ifunc.c: Likewise.
62733         * string/test-memmem-ifunc.c: Likewise.
62734         * string/test-memmove-ifunc.c: Likewise.
62735         * string/test-mempcpy-ifunc.c: Likewise.
62736         * string/test-memset-ifunc.c: Likewise.
62737         * string/test-rawmemchr-ifunc.c: Likewise.
62738         * string/test-stpcpy-ifunc.c: Likewise.
62739         * string/test-stpncpy-ifunc.c: Likewise.
62740         * string/test-strcasecmp-ifunc.c: Likewise.
62741         * string/test-strcasestr-ifunc.c: Likewise.
62742         * string/test-strcat-ifunc.c: Likewise.
62743         * string/test-strchr-ifunc.c: Likewise.
62744         * string/test-strchrnul-ifunc.c: Likewise.
62745         * string/test-strcmp-ifunc.c: Likewise.
62746         * string/test-strcpy-ifunc.c: Likewise.
62747         * string/test-strcspn-ifunc.c: Likewise.
62748         * string/test-strlen-ifunc.c: Likewise.
62749         * string/test-strncasecmp-ifunc.c: Likewise.
62750         * string/test-strncat-ifunc.c: Likewise.
62751         * string/test-strncmp-ifunc.c: Likewise.
62752         * string/test-strncpy-ifunc.c: Likewise.
62753         * string/test-strnlen-ifunc.c: Likewise.
62754         * string/test-strpbrk-ifunc.c: Likewise.
62755         * string/test-strrchr-ifunc.c: Likewise.
62756         * string/test-strspn-ifunc.c: Likewise.
62757         * string/test-strstr-ifunc.c: Likewise.
62758
62759         * debug/Makefile (tests-ifunc): New variable.
62760         (tests): Add $(tests-ifunc).
62761         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
62762         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
62763         * debug/test-stpcpy_chk-ifunc.c: New file.
62764         * debug/test-strcpy_chk-ifunc.c: Likewise.
62765
62766 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
62767
62768         [BZ #13601]
62769         * elf/dl-load.c (open_verify): Retry read if the entire ELF
62770         header is not read in.
62771
62772 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
62773
62774         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
62775         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
62776         directly.  Pass built executable to script as
62777         $(built-program-cmd).
62778         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
62779         $testprogram without using LD_LIBRARY_PATH and $ldso.
62780
62781         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
62782         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
62783         $(rtld-installed-name).
62784         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
62785         (rtld_installed_name): Likewise.
62786         (library_path): Likewise.
62787         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
62788         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
62789         $(run-program-prefix) to tst-tables.sh.
62790         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
62791         it to run tst-table-from and tst-table-to.
62792         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
62793         Pass it to tst-table.sh.
62794         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
62795         $(run-program-prefix) to tst-gettext.sh.
62796         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
62797         tst-translit.sh.
62798         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
62799         tst-gettext2.sh.
62800         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
62801         to run tst-gettext.
62802         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
62803         to run tst-gettext2.
62804         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
62805         to run tst-translit.
62806         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
62807         $(run-program-prefix) to tst-mtrace.sh.
62808         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
62809         to run tst-mtrace.
62810         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
62811         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
62812         $(rtld-installed-name).
62813         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
62814         (rtld_installed_name): Likewise.
62815         (run_program_prefix): New variable.  Use it to run wordexp-test.
62816
62817         * Makeconfig (ARCH): Remove all definitions.
62818         (machine): Likewise.
62819         [ARCH]: Remove conditional code.
62820         [!objdir]: Give error.
62821         [!objdir] (objpfx): Remove.
62822         [!objdir] (common-objpfx): Likewise.
62823         [!objdir] (common-objdir): Likewise.
62824         * configure.in (config_makefile): Remove.  Hardcode Makefile in
62825         AC_CONFIG_FILES call.
62826         * configure: Regenerated.
62827
62828         [BZ #13888]
62829         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
62830         or TMPDIR.
62831         (testout): Likewise.
62832
62833         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
62834         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
62835         $(rtld-installed-name).
62836         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
62837         (rtld_installed_name): Likwise.
62838         (runit): Remove function.
62839         (run_getconf): New variable,  Use it for running getconf binary.
62840
62841 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
62842
62843         [BZ #14716]
62844         * string/test-memmem.c (check_result): New function.
62845         (do_one_test): Use it.
62846         (check1): New function.
62847         (test_main): Use it.
62848
62849 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
62850
62851         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
62852
62853 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
62854
62855         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
62856         (_G_LSEEK64): Likewise.
62857         (_G_MMAP64): Likewise.
62858         (_G_FSTAT64): Likewise.
62859         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
62860         (_G_LSEEK64): Likewise.
62861         (_G_MMAP64): Likewise.
62862         (_G_FSTAT64): Likewise.
62863         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
62864         unconditional.  Call __mmap64 directly.
62865         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
62866         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
62867         __lseek64 directly.
62868         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
62869         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
62870         __mmap64 directly.
62871         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
62872         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
62873         __lseek64 directly.
62874         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
62875         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
62876         __lseek64 directly.
62877         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
62878         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
62879         __lseek64 directly.
62880         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
62881         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
62882         __fxstat64 directly.
62883         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
62884         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
62885         unconditional.
62886         (freopen64) [!_G_OPEN64]: Remove conditional code.
62887         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
62888         unconditional.
62889         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
62890         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
62891         unconditional.
62892         (ftello64) [!_G_LSEEK64]: Remove conditional code.
62893         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
62894         unconditional.
62895         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
62896         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
62897         unconditional.
62898         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
62899         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
62900         unconditional.
62901         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
62902         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
62903         unconditional.
62904         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
62905         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
62906         unconditional.
62907         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
62908
62909 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
62910
62911         [BZ #12140]
62912         * manual/memory.texi (Malloc Tunable Parameters): Add note
62913         about free list pointers overwriting some perturb bytes.
62914         Wording suggested by Roland McGrath.
62915
62916 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
62917
62918         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
62919         (lgamma_test): Likewise.
62920         (tgamma_test): Likewise.
62921
62922 2012-10-16  Florian Weimer  <fweimer@redhat.com>
62923
62924         [BZ #14700]
62925         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
62926         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
62927
62928 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
62929
62930         * NEWS: Mention BZ #14716.
62931         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
62932         when removing AVAILABLE1_USES_J macro.
62933
62934 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
62935
62936         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
62937         (__bswap_64): __uint64_t for unsigned 64-bit int.
62938
62939 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
62940
62941         * include/string.h (memmem): Declare libc hidden alias.
62942         * string/memmem.c (memmem): Define libc hidden alias.
62943         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
62944         __read, __close instead of open, read, close.
62945
62946 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
62947
62948         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
62949         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
62950         global and hidden.
62951         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
62952         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
62953         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
62954         Likewise.
62955         (__rawmemchr_sse2): Likewise.
62956         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
62957         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
62958         (__strchr_sse2): Likewise.
62959         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
62960         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
62961         (__strcasecmp_sse2): Likewise.
62962         (__strncasecmp_sse2): Likewise.
62963         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
62964         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
62965         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
62966         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
62967         (__strrchr_sse2): Likewise.
62968         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
62969         ifunc-impl-list.c.
62970         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
62971         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
62972         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
62973         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
62974         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
62975         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
62976         * sysdeps/x86_64/multiarch/memset.S: Likewise.
62977         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
62978         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
62979         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
62980         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
62981         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
62982         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
62983         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
62984         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
62985         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
62986         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
62987         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
62988         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
62989         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
62990         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
62991         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
62992         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
62993         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
62994         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
62995         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
62996         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
62997         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
62998         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
62999         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
63000
63001         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
63002         global and hidden.
63003         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
63004         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
63005         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
63006         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
63007         Likewise.
63008         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
63009         Likewise.
63010         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
63011         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
63012         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
63013         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
63014         ifunc-impl-list.c.
63015         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
63016         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
63017         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
63018         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
63019         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
63020         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
63021         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
63022         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
63023         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
63024         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
63025         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
63026         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
63027         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
63028         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
63029         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
63030         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
63031         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
63032         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
63033         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
63034         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
63035         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
63036         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
63037         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
63038         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
63039         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
63040         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
63041         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
63042         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
63043         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
63044         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
63045         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
63046         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
63047         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
63048         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
63049         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
63050         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
63051         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
63052         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
63053         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
63054         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
63055         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
63056
63057         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
63058         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
63059         * include/ifunc-impl-list.h: New file.
63060         * misc/ifunc-impl-list.c: Likewise.
63061         * misc/Makefile (routines): Add ifunc-impl-list.
63062         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
63063         * string/test-string.h: Include <ifunc-impl-list.h>.
63064         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
63065         TEST_NAME]: New variables.
63066         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
63067         are defined.
63068         (test_init): Call __libc_ifunc_impl_list to initialize
63069         func_list if TEST_IFUNC and TEST_NAME are defined.
63070
63071         * string/Makefile (strop-tests): Add bcopy and bzero.
63072         * string/test-bcopy.c: New file.
63073         * string/test-bzero.c: Likewise.
63074         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
63075         defined.
63076         * string/test-memset.c: Support bzero test if TEST_BZERO is
63077         defined.
63078         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
63079         __libc_memmove.
63080         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
63081         __libc_memset.
63082         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
63083         of memset.
63084
63085 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
63086
63087         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
63088         * configure: Regenerated.
63089
63090         * Makeconfig (+link-static-before-libc): Don't include
63091         $(link-static-libc).
63092
63093         * libio/libio.h (_IO_pos_t): Remove.
63094
63095 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63096
63097         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
63098         McGrath.
63099
63100 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63101
63102         * crypt/crypt-entry.c: Include fips-private.h.
63103         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
63104         * crypt/md5c-test.c (main): Tolerate disabled MD5.
63105         * sysdeps/unix/sysv/linux/fips-private.h: New file.
63106         * sysdeps/generic/fips-private.h: New file, dummy fallback.
63107
63108 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
63109
63110         * crypt/crypt-private.h: Include stdbool.h.
63111         (_ufc_setup_salt_r): Return bool.
63112         * crypt/crypt-entry.c: Include errno.h.
63113         (__crypt_r): Return NULL with EINVAL for bad salt.
63114         * crypt/crypt_util.c (bad_for_salt): New.
63115         (_ufc_setup_salt_r): Check that salt is long enough and within
63116         the specified alphabet.
63117         * crypt/badsalttest.c: New file.
63118         * crypt/Makefile (tests): Add it.
63119         ($(objpfx)badsalttest): New.
63120
63121 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
63122
63123         * NEWS: Add entry for BZ #14602.
63124
63125 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63126
63127         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
63128         type-generic.
63129         * math/libm-test.inc: Update comment listing what functions and
63130         macros are tested.
63131         (isgreater_test): New function.
63132         (isgreaterequal_test): Likewise.
63133         (isless_test): Likewise.
63134         (islessequal_test): Likewise.
63135         (islessgreater_test): Likewise.
63136         (isunordered_test): Likewise.
63137         (main): Call the new functions.
63138
63139 2012-10-09  Roland McGrath  <roland@hack.frob.com>
63140
63141         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
63142         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
63143         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
63144         * sysdeps/i386/configure: Regenerated.
63145         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
63146         * sysdeps/mach/configure: Regenerated.
63147         * sysdeps/mach/hurd/configure: Regenerated.
63148         * sysdeps/powerpc/configure: Regenerated.
63149         * sysdeps/powerpc/powerpc32/configure: Regenerated.
63150         * sysdeps/powerpc/powerpc64/configure: Regenerated.
63151         * sysdeps/s390/s390-32/configure: Regenerated.
63152         * sysdeps/s390/s390-64/configure: Regenerated.
63153         * sysdeps/sh/configure: Regenerated.
63154         * sysdeps/sparc/configure: Regenerated.
63155         * sysdeps/unix/sysv/linux/configure: Regenerated.
63156         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
63157         * sysdeps/x86_64/configure: Regenerated.
63158
63159         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
63160         defined.  Don't check if MAP is NULL.
63161
63162 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
63163
63164         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
63165         (_G_stat64): Likewise.
63166         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
63167         (_G_stat64): Likewise.
63168         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
63169         instead of struct _G_stat64.
63170         * libio/fileops.c (mmap_remap_check): Likewise.
63171         (decide_maybe_mmap): Likewise.
63172         (_IO_new_file_seekoff): Likewise.
63173         (_IO_file_stat): Likewise.
63174         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
63175         _G_off64_t.
63176         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
63177         instead of struct _G_stat64.
63178         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63179
63180 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
63181
63182         [BZ #14602]
63183         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63184         Replace with ...
63185         (CHECK_EOL): New macro.
63186         (two_way_short_needle): Check beginning of haystack for EOL.  Use
63187         CHECK_EOL.
63188         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63189         Replace with CHECK_EOL.
63190         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
63191         Replace with CHECK_EOL.
63192
63193 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
63194
63195         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
63196         type-generic.
63197         * math/libm-test.inc: Update comment listing what functions and
63198         macros are tested.
63199         (finite_test): New function.
63200         (isinf_test): Likewise.
63201         (isnan_test): Likewise.
63202         (fpclassify_test): Test subnormal input.
63203         (isfinite_test): Likewise.
63204         (isnormal_test): Likewise.
63205         (main): Call the new functions.
63206
63207 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
63208
63209         [BZ #14660]
63210         * Makerules (%.dynsym): Force C locale when running
63211         $(OBJDUMP) --dynamic-syms.
63212
63213 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
63214
63215         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
63216         <stdint.h>.
63217
63218 2012-10-06  David S. Miller  <davem@davemloft.net>
63219
63220         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
63221         upper 32-bits of the length value in %o2 since we use branch-on-register
63222         tests which consider the entire 64-bit register.
63223
63224 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
63225
63226         * string/test-strstr.c (check2): Add a test for page boundary.
63227
63228 2012-10-05  David S. Miller  <davem@davemloft.net>
63229
63230         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
63231         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
63232         file.
63233         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63234         sysdep_routines.
63235         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63236         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
63237         and bzero when HWCAP_SPARC_CRYPTO is present.
63238
63239 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
63240
63241         [BZ #14602]
63242         * string/test-strstr.c (check2): New function.
63243         (test_main): Call check2.
63244
63245         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
63246         and bug-strchr1.
63247         * string/bug-strcasestr1.c (do_test): Moved to ...
63248         * string/test-strcasestr.c (check1): Here.  New function.
63249         (do_one_test): Break out result checking code into ...
63250         (check_result): This.  New function.
63251         (do_one_test): Call check_result.
63252         (test_main): Call check1.
63253         * string/bug-strchr1.c (do_test): Moved to ...
63254         * string/test-strchr.c (check1): Here.  New function.
63255         (do_one_test): Break out result checking code into ...
63256         (check_result): This.  New function.
63257         (do_one_test): Call check_result.
63258         (test_main): Call check1.
63259         * string/bug-strstr1.c (main): Moved to ...
63260         * string/test-strstr.c (check1): Here.  New function.
63261         (do_one_test): Break out result checking code into ...
63262         (check_result): This.  New function.
63263         (do_one_test): Call check_result.
63264         (test_main): Call check1.
63265         * string/bug-strcasestr1.c: Removed.
63266         * string/bug-strchr1.c: Likewise.
63267         * string/bug-strstr1.c: Likewise.
63268
63269         * elf/Makefile (dl-routines): Add hwcaps.
63270         * elf/dl-support.c (_dl_important_hwcaps): Removed.
63271         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
63272         (_dl_important_hwcaps): Moved to ...
63273         * elf/dl-hwcaps.c: Here.  New file.
63274         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
63275
63276         [BZ #14557]
63277         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
63278         if IS_IN_rtld isn't defined.
63279
63280         * elf/dl-support.c (_dl_sysinfo_map): New.
63281         Include "get-dynamic-info.h" and "setup-vdso.h".
63282         (_dl_non_dynamic_init): Call setup_vdso.
63283         * elf/dynamic-link.h: Don't include <assert.h>.
63284         (elf_get_dynamic_info): Moved to ...
63285         * elf/get-dynamic-info.h: Here.  New file.
63286         * elf/dynamic-link.h: Include "get-dynamic-info.h".
63287         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
63288         * elf/setup-vdso.h: Here.  New file.
63289         * elf/rtld.c: Include "setup-vdso.h".
63290         (dl_main): Call setup_vdso.
63291
63292 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
63293
63294         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
63295         creal in comment listing functions tested.  List finite, isinf,
63296         isnan, isless, islessequal, isgreater, isgreaterequal,
63297         islessgreater, isunordered, lgamma_r and pow10 as functions and
63298         macros not tested.  Mention which functions not tested are aliases
63299         for other functions.  Fix typo.  Note that signs of NaNs are not
63300         tested.
63301
63302         * scripts/config.guess: Update from config.git.
63303         * scripts/config.sub: Likewise.
63304
63305 2012-10-04  Roland McGrath  <roland@hack.frob.com>
63306
63307         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
63308         * misc/madvise.c (madvise): Renamed to __madvise.
63309         Make madvise a weak alias.
63310         * include/sys/mman.h: Declare __madvise.
63311         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
63312         * sysdeps/unix/syscalls.list
63313         (madvise): Make __madvise the strong name, and madvise a weak alias.
63314         * sysdeps/unix/sysv/linux/syscalls.list
63315         (madvise, mmap): Remove redundant entries.
63316         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
63317         * malloc/malloc.c (mtrim): Likewise.
63318         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
63319
63320 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63321
63322         * sysdeps/mach/hurd/dl-cache.c: File removed.
63323         * config.h.in (USE_LDCONFIG): New #undef.
63324         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
63325         * configure: Regenerated.
63326         * elf/Makefile (dl-routines): Add dl-cache only under
63327         [$(use-ldconfig) = yes].
63328         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
63329         cache on [USE_LDCONFIG].
63330         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
63331         [USE_LDCONFIG].
63332         * elf/rtld.c (dl_main): Likewise.
63333
63334 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
63335
63336         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
63337         _SC_LEVEL4_CACHE_LINESIZE.
63338
63339 2012-10-03  Roland McGrath  <roland@hack.frob.com>
63340
63341         * sysdeps/unix/bsd/confstr.h: File removed.
63342
63343 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
63344
63345         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
63346         sys/sdt-config.h.
63347
63348 2012-10-02  Roland McGrath  <roland@hack.frob.com>
63349
63350         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
63351         Make 'mapoff' field ElfW(Off) rather than off_t.
63352
63353 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63354
63355         * nscd/Makefile: Remove nscd-cflags and all its users.
63356         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
63357         (CFLAGS-nonlib): Add compiler flags for nscd modules.
63358
63359         [BZ #10631]
63360         * malloc.c (malloc_printerr): Clarify error message.
63361
63362 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
63363
63364         [BZ #14648]
63365         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
63366         Set bit_FMA_Usable if FMA is supported.
63367         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
63368         macro.
63369         (bit_FMA4_Usable): Updated.
63370         (index_FMA_Usable): New macro.
63371         (CPUID_FMA): Likewise.
63372         (HAS_FMA): Defined with bit_FMA_Usable.
63373
63374 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63375
63376         * bits/types.h (__swblk_t): Type removed.
63377         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
63378         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
63379         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
63380         (__SWBLK_T_TYPE): Likewise.
63381         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
63382         (__SWBLK_T_TYPE): Likewise.
63383         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
63384         (__SWBLK_T_TYPE): Likewise.
63385         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
63386         (__SWBLK_T_TYPE): Likewise.
63387
63388 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
63389             Honza Horak <hhorak@redhat.com>
63390
63391         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
63392         (xdr_mapname): Use YPMAXMAP as maxsize.
63393         (xdr_peername): Use YPMAXPEER as maxsize.
63394         (xdr_keydat): Use YPAXRECORD as maxsize.
63395         (xdr_valdat): Use YPMAXRECORD as maxsize.
63396
63397 2012-10-01  Roland McGrath  <roland@hack.frob.com>
63398
63399         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
63400
63401         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
63402         * csu/init-first.c: ... here.
63403         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
63404         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
63405         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63406         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
63407         * sysdeps/i386/init-first.c: File removed.
63408         * sysdeps/sh/init-first.c: File removed.
63409
63410 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
63411
63412         [BZ #14645]
63413         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
63414         if x * y might underflow to zero and z is zero.
63415         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
63416         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63417         * math/libm-test.inc (min_subnorm_value): New variable.
63418         (fma_test): Add more tests.
63419         (fma_test_towardzero): Likewise.
63420         (fma_test_downward): Likewise.
63421         (fma_test_upward): Likewise.
63422         (initialize): Set min_subnorm_value.
63423
63424 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
63425
63426         [BZ #14638]
63427         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
63428         0 + 0.
63429         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
63430         mode for addition resulting in exact zero.
63431         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
63432         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
63433         exact 0 + 0.
63434         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
63435         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
63436         * math/libm-test.inc (fma_test): Add more tests.
63437         (fma_test_towardzero): New function.
63438         (fma_test_downward): Likewise.
63439         (fma_test_upward): Likewise.
63440         (main): Call the new functions.
63441
63442 2012-09-28  David S. Miller  <davem@davemloft.net>
63443
63444         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
63445
63446 2012-09-28  Roland McGrath  <roland@hack.frob.com>
63447
63448         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
63449         instead of SIGALRM.
63450
63451         * sysdeps/gnu/_G_config.h: Moved to ...
63452         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
63453         * sysdeps/mach/hurd/_G_config.h: Moved to ...
63454         * sysdeps/generic/_G_config.h: ... here.
63455
63456         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
63457
63458         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
63459
63460         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
63461         Conditionalize target on [libnss_test1.so-version].
63462
63463         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
63464
63465         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
63466         (elfobjdir): Move out of conditionals.
63467
63468         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
63469         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
63470         (__nss_lookup_function): Conditionalize label remove_from_tree on
63471         [!DO_STATIC_NSS || SHARED], matching its only use.
63472
63473 2012-09-28  David S. Miller  <davem@davemloft.net>
63474
63475         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
63476         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
63477         file.
63478         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
63479         sysdep_routines.
63480         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
63481         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
63482         when HWCAP_SPARC_CRYPTO is present.
63483
63484 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63485
63486         * io/tst-mknodat.c: Create a FIFO instead of a socket.
63487
63488 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
63489
63490         [BZ #6530]
63491         * stdio-common/vfprintf.c (process_string_arg): Revert
63492         2000-07-22 change.
63493
63494 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
63495
63496         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
63497         for testcase.
63498         * stdio-common/tst-sprintf.c: Include <locale.h>
63499         (main): Test sprintf's handling of incomplete multibyte
63500         characters.
63501
63502 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
63503
63504         * elf/dl-runtime.c (VERSYMIDX): Removed.
63505         * elf/dl-version.c (VERSYMIDX): Likewise.
63506         * elf/do-rel.h (VERSYMIDX): Likewise.
63507         (VALIDX): Likewise.
63508         * elf/dynamic-link.h (VERSYMIDX): Likewise.
63509         * elf/rtld.c (VALIDX): Likewise.
63510         (ADDRIDX): Likewise.
63511         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
63512         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
63513         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
63514         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
63515         (VALIDX): Likewise.
63516         (ADDRIDX): Likewise.
63517
63518 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63519
63520         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
63521
63522 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
63523
63524         [BZ #11438]
63525         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
63526         to global scope.
63527         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
63528         addresses are in the same scope as 192.0.2/24.
63529         * posix/gai.conf: Document new scope table defaults.
63530
63531 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63532
63533         [BZ #5298]
63534         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
63535         for ftell.  Compute offsets from write pointers instead.
63536         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
63537
63538 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63539
63540         [BZ #14543]
63541         * libio/Makefile (tests): New test case tst-fseek.
63542         * libio/tst-fseek.c: New test case to verify that fseek/ftell
63543         combination works in wide mode.
63544         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
63545         state when the external buffer state changes.
63546
63547 2012-09-27  David S. Miller  <davem@davemloft.net>
63548
63549         [BZ #14376]
63550         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
63551         pass reloc->r_addend in as the 'high' argument to
63552         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
63553
63554         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63555
63556 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
63557
63558         * rt/tst-aio2.c: Include <pthread.h>.
63559         * rt/tst-aio3.c: Likewise.
63560
63561 2012-09-27  Steve Ellcey  <sellcey@mips.com>
63562
63563         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
63564
63565 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
63566
63567         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
63568         contents on [SHARED].
63569
63570 2012-09-26  Marek Polacek  <polacek@redhat.com>
63571
63572         [BZ #14530]
63573         [BZ #13741]
63574         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
63575         for C++ and GCC <4.3 as well as for non GCC compilers.
63576
63577 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
63578
63579         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63580
63581 2012-09-25  Roland McGrath  <roland@hack.frob.com>
63582
63583         * Makefile.in (all, install): Declare with .PHONY.
63584         Reported by Michael Hope <michael.hope@linaro.org>.
63585
63586 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63587
63588         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
63589         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
63590         system header.
63591         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
63592         Likewise.
63593         (sydep_routines): Add the new and the internal functions.
63594         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
63595         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
63596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
63597         (GLIBC_2.17): Add the new function.
63598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
63599         (GLIBC_2.17): Likewise.
63600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
63601         (GLIBC_2.17): Likewise.
63602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
63603         (GLIBC_2.17): Likewise.
63604         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
63605
63606 2012-09-25  Alan Modra  <amodra@gmail.com>
63607
63608         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
63609         Add release barrier before setting once_control to say
63610         initialisation is done.  Add hints on lwarx.  Use macro in
63611         place of isync.
63612         (clear_once_control): Add release barrier.
63613
63614 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63615
63616         [BZ #13629]
63617         * math/s_clog.c (__clog): Handle more values close to |z| = 1
63618         specially.
63619         * math/s_clog10.c (__clog10): Likewise.
63620         * math/s_clog10f.c (__clog10f): Likewise.
63621         * math/s_clog10l.c (__clog10l): Likewise.
63622         * math/s_clogf.c (__clogf): Likewise.
63623         * math/s_clogl.c (__clogl): Likewise.
63624         * math/Makefile (libm-calls): Add x2y2m1.
63625         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
63626         (__x2y2m1): Likewise.
63627         (__x2y2m1l): Likewise.
63628         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
63629         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
63630         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
63631         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
63632         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
63633         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
63634         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
63635         * sysdeps/i386/fpu/libm-test-ulps: Update.
63636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63637
63638         [BZ #14621]
63639         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
63640         int as type of variable DEPTH.
63641         (glob): Use size_t instead of int as type of variables NEWCOUNT
63642         and OLD_PATHC.
63643
63644 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63645
63646         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
63647         Add s_sincosf-sse2.
63648         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
63649         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
63650         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
63651         macros for using routine as __sincosf_ia32.
63652         Use macro for function declaration and weak_alias.
63653         * sysdeps/i386/fpu/libm-test-ulps: Update.
63654
63655         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
63656         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63657
63658         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
63659         subnormal argument.
63660         * math/s_cexpf.c (__cexpf): Likewise.
63661         * math/s_csinf.c (__csinf): Likewise.
63662         * math/s_csinhf.c (__csinhf): Likewise.
63663         * math/s_ctanf.c (__ctanf): Likewise.
63664         * math/s_ctanhf.c (__ctanhf): Likewise.
63665         * math/s_ccosh.c (__ccoshf): Likewise.
63666         * math/s_cexp.c (__cexpl): Likewise.
63667         * math/s_csin.c (__csin): Likewise.
63668         * math/s_csinh.c (__csinh): Likewise.
63669         * math/s_ctan.c (__ctan): Likewise.
63670         * math/s_ctanh.c (ctanh): Likewise.
63671         * math/s_ccoshl.c (__ccoshl): Likewise.
63672         * math/s_cexpl.c (__cexpl): Likewise.
63673         * math/s_csinl.c (__csinl): Likewise.
63674         * math/s_csinhl.c (__csinhl): Likewise.
63675         * math/s_ctanl.c (__ctanl): Likewise.
63676         * math/s_ctanhl.c (__ctanhl): Likewise.
63677
63678 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
63679
63680         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
63681         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
63682         (_IO_off_t): Define to __off_t, not _G_off_t.
63683         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
63684         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
63685         (_IO_wint_t): Define to wint_t, not _G_wint_t.
63686         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
63687         type of __dummy and __dummy2 fields.
63688         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
63689         (_G_ssize_t): Likewise.
63690         (_G_off_t): Likewise.
63691         (_G_pid_t): Likewise.
63692         (_G_uid_t): Likewise.
63693         (_G_wchar_t): Likewise.
63694         (_G_wint_t): Likewise.
63695         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
63696         (_G_ssize_t): Likewise.
63697         (_G_off_t): Likewise.
63698         (_G_pid_t): Likewise.
63699         (_G_uid_t): Likewise.
63700         (_G_wchar_t): Likewise.
63701         (_G_wint_t): Likewise.
63702         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
63703         (_G_ssize_t): Likewise.
63704         (_G_off_t): Likewise.
63705         (_G_pid_t): Likewise.
63706         (_G_uid_t): Likewise.
63707         (_G_wchar_t): Likewise.
63708         (_G_wint_t): Likewise.
63709
63710 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63711
63712         * malloc/arena.c: Include malloc-sysdep.h.
63713         (shrink_heap): Use check_may_shrink_heap to decide if madvise
63714         is sufficient to shrink the heap or an unmap is needed.
63715         * sysdeps/generic/malloc-sysdep.h: New file.  Define
63716         new function check_may_shrink_heap.
63717         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
63718         new function check_may_shrink_heap.
63719
63720 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
63721
63722         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
63723         comments.
63724
63725 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
63726
63727         * catgets/test-gencat.sh: Add "set -e".
63728         * elf/tst-pathopt.sh: Likewise.
63729         * grp/tst_fgetgrent.sh: Likewise.
63730         * iconvdata/run-iconv-test.sh: Likewise.
63731         * intl/tst-gettext.sh: Likewise.
63732         * intl/tst-gettext2.sh: Likewise.
63733         * intl/tst-gettext4.sh: Likewise.
63734         * intl/tst-gettext6.sh: Likewise.
63735         * intl/tst-translit.sh: Likewise.
63736         * io/ftwtest-sh: Likewise.
63737         * libio/test-freopen.sh: Likewise.
63738         * malloc/tst-mtrace.sh: Likewise.
63739         * posix/globtest.sh: Likewise.
63740         * posix/tst-getconf.sh: Likewise.
63741         * posix/wordexp-tst.sh: Likewise.
63742         * stdio-common/tst-printf.sh: Likewise.
63743         * stdio-common/tst-unbputc.sh: Likewise.
63744         * stdlib/tst-fmtmsg.sh: Likewise.
63745         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63746         * catgets/Makefile: Do not specify -e option when running
63747         testsuite shell scripts.
63748         * elf/Makefile: Likewise.
63749         * grp/Makefile: Likewise.
63750         * iconvdata/Makefile: Likewise.
63751         * intl/Makefile: Likewise.
63752         * io/Makefile: Likewise.
63753         * libio/Makefile: Likewise.
63754         * malloc/Makefile: Likewise.
63755         * posix/Makefile: Likewise.
63756         * stdio-common/Makefile: Likewise.
63757         * stdlib/Makefile: Likewise.
63758         * sysdeps/x86_64/Makefile: Likewise.
63759
63760         * io/ftwtest-sh: Add copyright header.
63761         * posix/globtest.sh: Likewise.
63762         * posix/tst-getconf.sh: Likewise.
63763         * posix/wordexp-tst.sh: Likewise.
63764         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
63765
63766 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
63767
63768         [BZ #13679]
63769         * Makeconfig (+link): Defined as $(+link-static) if
63770         $(build-shared) isn't yes.
63771         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
63772         isn't yes.
63773         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
63774
63775         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
63776
63777         [BZ #14562]
63778         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
63779         new chunk size with MALLOC_ALIGN_MASK.
63780
63781 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
63782
63783         [BZ #5044]
63784         * stdio-common/printf_fphex.c: Include <stdbool.h> and
63785         <rounding-mode.h>.
63786         (__printf_fphex): Determine rounding using get_rounding_mode and
63787         round_away.
63788         * stdio-common/tst-printf-round.c (struct hex_test): New
63789         structure.
63790         (hex_tests): New variable.
63791         (test_hex_in_one_mode): New function.
63792         (do_test): Also run tests for hex float output.
63793
63794 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
63795
63796         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63797         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63798         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
63799         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
63800         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
63801         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
63802         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
63803         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
63804
63805 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
63806
63807         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
63808         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
63809         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
63810         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
63811
63812 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
63813
63814         [BZ #14579]
63815         * elf/rtld.c (dl_main): Limit the check for self loading to normal
63816         mode only.
63817         * elf/tst-rtld-load-self.sh: New test.
63818         * elf/Makefile: Run it.
63819
63820 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
63821
63822         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
63823         (tst-writev-ENV): Remove.
63824         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
63825
63826 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
63827
63828         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
63829
63830 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
63831
63832         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
63833         unconditional.
63834         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
63835         Likewise.
63836         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
63837         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
63838         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
63839         Likewise.
63840
63841 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
63842
63843         [BZ #14587]
63844         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
63845         * config.make.in (have-cpp-asm-debuginfo): Removed.
63846         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
63847         * configure: Regenerated.
63848
63849 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
63850
63851         [BZ #5044]
63852         * stdio-common/printf_fp.c: Include <stdbool.h> and
63853         <rounding-mode.h>.
63854         (___printf_fp): Determine rounding using get_rounding_mode and
63855         round_away.
63856         * stdio-common/tst-printf-round.c: New file.
63857         * stdio-common/Makefile (tests): Add tst-printf-round.
63858         (link-libm): New variable.
63859         ($(objpfx)tst-printf-round): Depend in $(link-libm).
63860
63861 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
63862
63863         [BZ #14576]
63864         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
63865         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
63866         Likewise.
63867         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
63868         Likewise.
63869
63870 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
63871
63872         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
63873         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
63874         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
63875         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
63876
63877 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
63878
63879         [BZ #14518]
63880         * include/rounding-mode.h: New file.
63881         * sysdeps/generic/get-rounding-mode.h: Likewise.
63882         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
63883         * stdlib/strtod_l.c: Include <rounding-mode.h>.
63884         (MAX_VALUE): New macro.
63885         (MIN_VALUE): Likewise.
63886         (overflow_value): New function.
63887         (underflow_value): Likewise.
63888         (round_and_return): Use overflow_value and underflow_value to
63889         determine return values in overflow and underflow cases.  Use
63890         round_away to determine rounding depending on rounding mode.
63891         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
63892         determine return values in overflow and underflow cases.
63893         * stdlib/tst-strtod-round.c: Include <fenv.h>.
63894         (struct test_results): New structure.
63895         (struct test): Use struct test_results to store expected results
63896         for all rounding modes.
63897         (TEST): Include expected results for all rounding modes.
63898         (test_in_one_mode): New function.
63899         (do_test): Use test_in_one_mode to compute and check results.
63900         Check results for all rounding modes.
63901         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
63902         $(link-libm).
63903
63904 2012-12-09  Allan McRae  <allan@archlinux.org>
63905
63906         * sysdeps/i386/fpu/libm-test-ulps: Update
63907
63908 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
63909
63910         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
63911         (_G_int32_t): Likewise.
63912         (_G_uint16_t): Likewise.
63913         (_G_uint32_t): Likewise.
63914         (_G_HAVE_BOOL): Likewise.
63915         (_G_HAVE_ATEXIT): Likewise.
63916         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
63917         (_G_HAVE_IO_FILE_OPEN): Likewise.
63918         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
63919         (_G_int32_t): Likewise.
63920         (_G_uint16_t): Likewise.
63921         (_G_uint32_t): Likewise.
63922         (_G_HAVE_BOOL): Likewise.
63923         (_G_HAVE_ATEXIT): Likewise.
63924         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
63925         (_G_HAVE_IO_FILE_OPEN): Likewise.
63926         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
63927         (_G_int32_t): Likewise.
63928         (_G_uint16_t): Likewise.
63929         (_G_uint32_t): Likewise.
63930         (_G_HAVE_BOOL): Likewise.
63931         (_G_HAVE_ATEXIT): Likewise.
63932         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
63933         (_G_HAVE_IO_FILE_OPEN): Likewise.
63934
63935 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
63936
63937         * csu/libc-tls.c: Update copyright years.
63938
63939 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
63940
63941         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
63942         [!_G_USING_THUNKS]: Remove conditional code.
63943         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
63944         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
63945
63946         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
63947         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
63948         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
63949         (_G_VTABLE_LABEL_PREFIX): Likewise.
63950         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
63951         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
63952         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
63953         (_G_VTABLE_LABEL_PREFIX): Likewise.
63954         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
63955         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
63956         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
63957         (_G_VTABLE_LABEL_PREFIX): Likewise.
63958         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
63959
63960 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
63961
63962         * libio/Makefile: Include ../Makeconfig before tests.
63963         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
63964         only if $(build-shared) is yes.
63965
63966         * iconv/gconv_db.c: Update copyright years.
63967
63968 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63969
63970         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
63971         unwind info if defined PIC. Fix special cases description.
63972         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
63973
63974         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
63975         DP_HI_MASK entry.
63976         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
63977
63978 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
63979
63980         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
63981
63982         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
63983         is NULL.
63984
63985         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
63986         (LDLIBS-tst-chk4): This.
63987         (LDFLAGS-tst-chk5): Renamed to ...
63988         (LDLIBS-tst-chk5): This.
63989         (LDFLAGS-tst-chk6): Renamed to ...
63990         (LDLIBS-tst-chk6): This.
63991         (LDFLAGS-tst-lfschk4): Renamed to ...
63992         (LDLIBS-tst-lfschk4): This.
63993         (LDFLAGS-tst-lfschk5): Renamed to ...
63994         (LDLIBS-tst-lfschk5): This.
63995         (LDFLAGS-tst-lfschk6): Renamed to ...
63996         (LDLIBS-tst-lfschk6): This.
63997
63998         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
63999         on $(common-objpfx)soversions.mk.
64000
64001 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
64002
64003         [BZ #10014]
64004         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
64005         example host name.
64006
64007 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64008
64009         * malloc/arena.c (arena_get_retry): New function that gets
64010         another arena for the caller to try its request on.
64011         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
64012         current arena cannot fulfill the request.
64013         (__libc_memalign): Likewise.
64014         (__libc_memalign): Likewise.
64015         (__libc_pvalloc): Likewise.
64016         (__libc_calloc): Likewise.
64017
64018 2012-09-05  John Tobey  <john.tobey@gmail.com>
64019
64020         [BZ #13542]
64021         * manual/arith.texi (Operations on Complex): Fix description
64022         of carg branch cut.
64023
64024 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64025
64026         [BZ #10014]
64027         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
64028         host name.
64029
64030         [BZ #10038]
64031         * manual/memory.texi (Memory): Make order of menu items match
64032         order of sections.
64033
64034 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64035
64036         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
64037         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
64038         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
64039
64040 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64041
64042         * csu/libc-tls.c (static_dtv): Renamed to ...
64043         (_dl_static_dtv): This.  Make it global.
64044         (_dl_initial_dtv): Removed.
64045         (__libc_setup_tls): Updated.
64046         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
64047         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
64048         DL_INITIAL_DTV.
64049
64050 2012-09-06  Petr Machata  <pmachata@redhat.com>
64051
64052         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
64053         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
64054         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
64055         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
64056
64057 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64058
64059         [BZ #14545]
64060         * csu/libc-tls.c (_dl_initial_dtv): New variable.
64061         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
64062         freeing dtv[-1].
64063
64064 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64065
64066         [BZ #14544]
64067         * Makeconfig (link-static-before-libc): Replace $(+prector)
64068         with $(+prectorT).
64069         (link-static-after-libc): Replace $(+postctor) with
64070         $(+postctorT).
64071         (link-bounded): Replace $(+prector)/$(+postctor) with
64072         $(+prectorT)/$(+postctorT).
64073         (+prectorT): New macro.
64074         (+postctorT): Likewise.
64075
64076 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
64077
64078         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
64079         (round_str): Handle values above the maximum for IBM long double
64080         as inexact.
64081         * stdlib/tst-strtod-round.c (tests): Regenerated.
64082
64083 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64084
64085         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
64086         assembler flag.
64087         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
64088         zarch_nohighgprs around the zarch optimized routines.
64089         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
64090         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
64091         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
64092         for zarch.
64093
64094 2012-09-05  David S. Miller  <davem@davemloft.net>
64095
64096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64097
64098         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
64099         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
64100         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
64101         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
64102         entries.
64103
64104 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64105
64106         * malloc/arena.c: Fold copyright years.
64107         * malloc/mcheck.c, malloc/memusage.c: Likewise.
64108
64109 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64110
64111         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
64112
64113 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64114
64115         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
64116
64117 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64118
64119         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
64120         change internal state upon failure.
64121
64122 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
64123
64124         * malloc/mcheck.c (mcheck_check_all): Fix typo.
64125         * malloc/memusage.c (mmap): Likewise.
64126         (mmap64, mremap): Likewise.  Adjust name in comment.
64127
64128 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64129
64130         * libio/fileops.c: Fix typos in comments.
64131         * libio/oldfileops.c: Likewise.
64132         * libio/wfileops.c: Likewise.
64133
64134 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
64135
64136         [BZ #1349]
64137         * malloc/Makefile (tests): Add tst-malloc-usable test case.
64138         (tst-malloc-usable-ENV): Set environment for test case.
64139         * malloc/hooks.c (malloc_check_get_size): New function to get
64140         requested size.
64141         * malloc/malloc.c (musable): Use malloc_check_get_size.
64142         * malloc/tst-malloc-usable.c: New test case.
64143
64144 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64145
64146         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
64147
64148 2012-09-05  Allan McRae  <allan@archlinux.org>
64149
64150         [BZ #13966]
64151         * configure.in (CXX_SYSINCLUDES): Use compiler output to
64152         determine header location.
64153         * configure: Regenerated.
64154
64155 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
64156
64157         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
64158         float format.
64159         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
64160         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
64161         format.
64162         (test): Regenerate.
64163
64164 2012-09-04  David S. Miller  <davem@davemloft.net>
64165
64166         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
64167         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
64168         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
64169
64170 2012-09-04  Florian Weimer  <fweimer@redhat.com>
64171
64172         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
64173         failures.
64174
64175         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
64176
64177 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
64178
64179         [BZ #9914]
64180         * libio/iogetdelim.c: Include <limits.h>.
64181         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
64182         + len + 1 would overflow.
64183
64184 2012-09-03  Andreas Jaeger  <aj@suse.de>
64185
64186         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64187         * sysdeps/i386/fpu/libm-test-ulps: Update.
64188
64189 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64190
64191         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
64192         Add s_sinf-sse2, s_conf-sse2.
64193
64194         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
64195         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
64196         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
64197         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
64198
64199         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
64200         for using routine as __sinf_ia32.
64201         Use macro for function declaration and weak_alias.
64202         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
64203         for using routine as __cosf_ia32.
64204         Use macro for function declaration and weak_alias.
64205
64206         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
64207         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
64208
64209         * sysdeps/x86_64/fpu/s_sinf.S: New file.
64210         * sysdeps/x86_64/fpu/s_cosf.S: New file.
64211         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64212
64213         * math/libm-test.inc (cos_test): Add more test cases.
64214         (sin_test): Likewise.
64215         (sincos_test): Likewise.
64216
64217 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64218
64219         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
64220         (IFUNC_RESOLVE): Make pointers to the specialized implementations
64221         hidden.
64222         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64223
64224 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
64225
64226         [BZ #14538]
64227         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
64228         first element of the GOT.
64229         (elf_machine_load_address): Return the difference between
64230         the runtime address of _DYNAMIC and elf_machine_dynamic ().
64231
64232 2012-09-01  Allan McRae  <allan@archlinux.org>
64233
64234         [BZ #13412]
64235         * configure.in (AWK): Require gawk version 3.0 or later.
64236         * configure: Regenerated.
64237
64238 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
64239
64240         * sysdeps/unix/sysv/linux/kernel-features.h
64241         (__ASSUME_POSIX_CPU_TIMERS): Remove.
64242         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64243         [__NR_clock_getres]: Make code unconditional.
64244         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
64245         (clock_getcpuclockid): Remove code left unreachable by removal of
64246         conditionals.
64247         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
64248         code unconditional.
64249         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64250         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64251         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
64252         Make code unconditional.
64253         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
64254         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64255         * sysdeps/unix/sysv/linux/clock_settime.c
64256         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
64257         conditional code.
64258         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
64259         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
64260
64261 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
64262
64263         [BZ #14476]
64264         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
64265         scripts/test-installation.pl.
64266
64267         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
64268         and $ld_so_version if it is set.
64269
64270 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
64271
64272         [BZ #14516]
64273         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
64274         failure if reading from procfs failed.
64275         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
64276
64277 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64278
64279         * sysdeps/unix/sysv/linux/kernel-features.h
64280         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
64281         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64282         Remove conditional code.
64283         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64284         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
64285         Remove conditional code.
64286         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64287         * sysdeps/unix/sysv/linux/i386/fxstat.c
64288         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64289         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64290         * sysdeps/unix/sysv/linux/i386/fxstatat.c
64291         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64292         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64293         * sysdeps/unix/sysv/linux/i386/lxstat.c
64294         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
64295         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64296         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
64297         Remove conditional code.
64298         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64299         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
64300         Remove conditional code.
64301         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64302         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
64303         <kernel-features.h>.
64304         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
64305         Remove.
64306         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
64307         Remove conditional code.
64308         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
64309         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
64310         Remove conditional.
64311
64312 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
64313
64314         [BZ #5400]
64315         * NEWS: Add fixed bug number.
64316
64317 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
64318
64319         [BZ #14519]
64320         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
64321         underflowing exponent in case of negative sign.
64322         * stdlib/tst-strtod-round-data: Add more tests.
64323         * stdlib/tst-strtod-round.c (tests): Regenerated.
64324
64325         [BZ #3479]
64326         * stdlib/strtod_l.c (NDIG): Remove.
64327         (HEXNDIG): Likewise.
64328         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
64329         smallest representable value.
64330         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
64331         lie within an exact representation of 1/2 ulp of the result.
64332         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
64333         unconditionally.
64334         (TENS_P9_IDX): Define unconditionally.
64335         (TENS_P9_SIZE): Likewise.
64336         (TENS_P10_IDX): Likewise.
64337         (TENS_P10_SIZE): Likewise.
64338         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
64339         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
64340         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
64341         entries for 10^2^13 and 10^2^14.
64342         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
64343         (TENS_P13_IDX): Define.
64344         (TENS_P13_SIZE): Likewise.
64345         (TENS_P14_IDX): Likewise.
64346         (TENS_P14_SIZE): Likewise.
64347         (_fpioconst_pow10): Change array size to
64348         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
64349         unconditional.
64350         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
64351         1024]: Add entries for 10^2^13 and 10^2^14.
64352         [LAST_POW10 > _LAST_POW10]: Remove #error.
64353         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
64354         (_fpioconst_pow10): Change array size to
64355         FPIOCONST_POW10_ARRAY_SIZE.
64356         * stdlib/gen-fpioconst.c: New file.
64357         * stdlib/gen-tst-strtod-round.c: Likewise.
64358         * stdlib/tst-strtod-round-data: Likewise.
64359         * stdlib/tst-strtod-round.c: Likewise.
64360         * stdlib/Makefile (tests): Add tst-strtod-round.
64361
64362         [BZ #14459]
64363         * stdlib/strtod_l.c: Include <stdint.h>.
64364         (NDEBUG): Do not define.
64365         (round_and_return): Change EXPONENT parameter to type intmax_t.
64366         Rearrange calculations to avoid internal overflow possibilities.
64367         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
64368         Rearrange calculations to avoid internal overflow possibilities.
64369         Assert that number fits inside MPNSIZE limbs.
64370         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
64371         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
64372         calculations and add assertions to avoid internal overflow
64373         possibilities.  Add casts to avoid signed/unsigned operations.
64374         * stdlib/tst-strtod-overflow.c: New file.
64375         * stdlib/Makefile (tests): Add tst-strtod-overflow.
64376
64377 2012-08-25  Marek Polacek  <polacek@redhat.com>
64378
64379         * time/time.h: Fix some typos in comments.
64380
64381 2012-08-23  Roland McGrath  <roland@hack.frob.com>
64382
64383         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
64384         * posix/tst-rfc3484-2.c: Likewise.
64385         * posix/tst-rfc3484-3.c: Likewise.
64386
64387 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
64388
64389         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
64390         (EF_ARM_ABI_FLOAT_HARD): Likewise.
64391
64392 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
64393
64394         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
64395         #include of fxstatat64.c.
64396
64397 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64398
64399         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
64400         * shadow/getspent_r.c: Likewise.
64401         * shadow/getspnam.c: Likewise.
64402         * shadow/getspnam_r.c: Likewise.
64403         * gshadow/getsgent.c: Likewise.
64404         * gshadow/getsgent_r.c: Likewise.
64405         * gshadow/getsgnam.c: Likewise.
64406         * gshadow/getsgnam_r.c: Likewise.
64407         * inet/getnetbyad.c: Likewise.
64408         * inet/getnetbyad_r.c: Likewise.
64409         * inet/getnetbynm.c: Likewise.
64410         * inet/getnetbynm_r.c: Likewise.
64411         * inet/getnetent.c: Likewise.
64412         * inet/getnetent_r.c: Likewise.
64413         * inet/getproto.c: Likewise.
64414         * inet/getproto_r.c: Likewise.
64415         * inet/getprtent.c: Likewise.
64416         * inet/getprtent_r.c: Likewise.
64417         * inet/getprtname.c: Likewise.
64418         * inet/getprtname_r.c: Likewise.
64419         * inet/getrpcbyname.c: Likewise.
64420         * inet/getrpcbyname_r.c: Likewise.
64421         * inet/getrpcbynumber.c: Likewise.
64422         * inet/getrpcbynumber_r.c: Likewise.
64423         * inet/getrpcent.c: Likewise.
64424         * inet/getrpcent_r.c: Likewise.
64425         * inet/getaliasent.c: Likewise.
64426         * inet/getaliasent_r.c: Likewise.
64427         * inet/getaliasname.c: Likewise.
64428         * inet/getaliasname_r.c: Likewise.
64429         * nscd/getgrgid_r.c: Likewise.
64430         * nscd/getgrnam_r.c: Likewise.
64431         * nscd/gethstbyad_r.c: Likewise.
64432         * nscd/gethstbynm3_r.c: Likewise.
64433         * nscd/getpwnam_r.c: Likewise.
64434         * nscd/getpwuid_r.c: Likewise.
64435         * nscd/getsrvbynm_r.c: Likewise.
64436         * nscd/getsrvbypt_r.c: Likewise.
64437         * nscd/gai.c: Likewise.
64438
64439         * configure.in (build_nscd): New substituted variable, set
64440         by --disable-build-nscd and defaults to $use_nscd.
64441         * configure: Regenerated.
64442         * config.make.in (build-nscd): New substituted variable.
64443         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
64444         Change conditional to require [$(build-nscd) = yes] as well.
64445         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
64446
64447         [BZ# 13696]
64448         * configure.in (use_nscd): New substituted variable, set by
64449         --disable-nscd.  If enabled, define USE_NSCD.
64450         * configure: Regenerated.
64451         * config.h.in: Add USE_NSCD.
64452         * config.make.in (use-nscd): New substituted variable.
64453         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
64454         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
64455         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
64456         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
64457         (CFLAGS-getgrnam_r.c): Likewise.
64458         (CFLAGS-initgroups.c): Likewise.
64459         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
64460         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
64461         Variables removed.
64462         * inet/getnetgrent_r.c
64463         (nscd_setnetgrent): New function, broken out of ...
64464         (setnetgrent): ... here.  Call it.
64465         (innetgr): Conditionalize nscd bits on [USE_NSCD].
64466         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
64467         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
64468         * nscd/Makefile (routines, aux): Move definitions after include of
64469         Makeconfig.  Conditionalize on [$(use-nscd) != no].
64470         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
64471         Conditionalize on [USE_NSCD].
64472         (is_nscd, nscd_init_cb): Likewise.
64473         (nss_load_library): Conditionalize init callback on [USE_NSCD].
64474         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
64475         * nss/nss_db/db-init.c: Likewise.
64476         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
64477         [USE_NSCD].
64478         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
64479         (make_request): Use it.
64480         (cache_valid_p): New function.
64481         (__check_pf): Use it.
64482         * NEWS: Add item for --disable-nscd.
64483
64484 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
64485
64486         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
64487         to support sed >= 4.2.1-20-ga9bf076.
64488         * configure: Regenerated.
64489
64490 2012-08-22  Roland McGrath  <roland@hack.frob.com>
64491
64492         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
64493         Conditionalize whole body on [IREL].
64494
64495 2012-08-22  Jeff Law <law@redhat.com>
64496
64497         [BZ #14505]
64498         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
64499         if the family is PF_UNSPEC.
64500
64501 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
64502
64503         * Makerules (lib-version): Rename from V.
64504         (install-lib-nosubdir): Change V to lib-version.
64505
64506 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
64507
64508         [BZ #14252]
64509         * powerpc32/power6/wcschr.c: New file.
64510         * powerpc32/power6/wcscpy.c: New file.
64511         * powerpc32/power6/wcsrchr.c: New file.
64512         * powerpc64/power6/wcschr.c: New file.
64513         * powerpc64/power6/wcscpy.c: New file.
64514         * powerpc64/power6/wcsrchr.c: New file.
64515
64516 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64517
64518         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
64519         (two_way_short_needle): Use it.
64520         * string/strstr.c (AVAILABLE1_USES_J): Define.
64521         * string/strcasestr.c: Likewise.
64522
64523         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
64524         array references.
64525         * string/strcasestr.c (TOLOWER): Make side-effect safe.
64526
64527         [BZ #11607]
64528         * NEWS: Add an entry.
64529         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
64530         define their defaults.
64531         (two_way_short_needle): Detect end-of-string on-the-fly.
64532         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
64533         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
64534         * string/bug-strcasestr1.c: New test.
64535         * string/Makefile: Run it.
64536
64537 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
64538
64539         [BZ #11607]
64540         * string/str-two-way.h (two_way_short_needle): Optimize matching of
64541         the first character.
64542
64543 2012-08-21  Roland McGrath  <roland@hack.frob.com>
64544
64545         * csu/elf-init.c (__libc_csu_irel): Function removed.
64546         * csu/libc-start.c (apply_irel): New function.
64547         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
64548
64549 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
64550
64551         * sysdeps/unix/sysv/linux/kernel-features.h
64552         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
64553         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
64554         <kernel-features.h>.
64555         [__NR_fadvise64_64]: Make code unconditional.
64556         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
64557         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64558         !__NR_fadvise64_64)]: Likewise.
64559         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
64560         !__NR_fadvise64_64))]: Likewise.
64561         [__NR_fadvise64]: Make code unconditional.
64562         [!__NR_fadvise64]: Remove conditional code.
64563         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
64564         <kernel-features.h>.
64565         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64566         unconditional.
64567         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64568         conditional code.
64569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
64570         not include <kernel-features.h>.
64571         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64572         unconditional.
64573         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64574         conditional code.
64575         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
64576         include <kernel-features.h>.
64577         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
64578         unconditional.
64579         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
64580         conditional code.
64581
64582 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
64583
64584         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
64585         slight instruction rearrangements per scrollpipe analysis.
64586         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
64587
64588 2012-08-20  Roland McGrath  <roland@hack.frob.com>
64589
64590         * manual/syslog.texi (syslog; vsyslog, closelog):
64591         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
64592         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
64593
64594         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
64595         DSOCAPS to match condition on defining it.
64596
64597 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
64598
64599         * sysdeps/unix/sysv/linux/kernel-features.h
64600         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
64601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
64602         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64603         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
64605         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64606         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
64608         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
64609         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
64610
64611         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
64612         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
64613
64614         * sysdeps/unix/sysv/linux/kernel-features.h
64615         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
64616         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
64617         unconditional.
64618         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64619         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
64620         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64621         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64622         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
64623         Make code unconditional.
64624         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64625         (__mmap64) [!__NR_mmap2]: Likewise.
64626         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
64627         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
64628         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64629         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
64630         [__NR_mmap2]: Make code unconditional.
64631         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
64632         (__mmap64) [!__NR_mmap2]: Likewise.
64633
64634 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64635
64636         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
64637
64638 2012-08-18  Andreas Jaeger  <aj@suse.de>
64639
64640         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
64641
64642 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64643
64644         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
64645         * include/unistd.h (__have_sock_cloexec): Likewise.
64646         (__have_pipe2): Likewise.
64647         (__have_dup3): Likewise.
64648
64649 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
64650
64651         [BZ #9685]
64652         * include/unistd.h (__have_pipe2): Change define into an extern int.
64653         (__have_dup3): Likewise.
64654         * socket/have_sock_cloexec.c: Include fcntl.h.
64655         (__have_pipe2): New variable.
64656         (__have_dup3): Likewise.
64657
64658 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
64659
64660         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
64661
64662 2012-08-17  Marek Polacek  <polacek@redhat.com>
64663
64664         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
64665         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
64666
64667 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64668
64669         * configure.in: Add AC_SUBST for sysheaders.
64670         * configure: Regenerated.
64671         * config.make.in (sysheaders): New substituted variable.
64672
64673         * sysdeps/unix/mkfifo.c: Moved ...
64674         * sysdeps/posix/mkfifo.c: ... here.
64675         * sysdeps/unix/mkfifoat.c: Moved ...
64676         * sysdeps/posix/mkfifoat.c: ... here.
64677
64678         * sysdeps/unix/utime.c: Moved ...
64679         * sysdeps/posix/utime.c: ... here.
64680
64681         * sysdeps/unix/time.c: Moved ...
64682         * sysdeps/posix/time.c: ... here.
64683         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
64684         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
64685
64686         * sysdeps/unix/nice.c: Moved ...
64687         * sysdeps/posix/nice.c: ... here.
64688
64689         * sysdeps/unix/alarm.c: Moved ...
64690         * sysdeps/posix/alarm.c: ... here.
64691
64692         * intl/Makefile ($(codeset_mo)): Depend on the input file.
64693
64694 2012-08-17  Jeff Law <law@redhat.com>
64695
64696         * intl/Makefile (codeset_mo): New variable.
64697         ($(codeset_mo)): New target.
64698         (tst-codeset.out): Depend on that.  Remove explicit rule.
64699         (tst-gettext3.out, tst-gettext5.out): Likewise.
64700         (LOCPATH-ENV, tst-codeset-ENV): New variables.
64701         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
64702         * intl/tst-codeset.sh: Remove.
64703         * intl/tst-gettext3.sh: Likewise.
64704         * intl/tst-gettext5.sh: Likewise.
64705
64706 2012-08-17  Roland McGrath  <roland@hack.frob.com>
64707
64708         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
64709         * sysdeps/unix/syscalls.list: ... here.
64710
64711         * sysdeps/posix/getaddrinfo.c
64712         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
64713         (gaiconf_init, gaiconf_reload): Use them.
64714         [!_STATBUF_ST_NSEC]
64715         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
64716         Define using time_t rather than struct timespec.
64717
64718         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
64719         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
64720         Macros removed.
64721         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
64722         [!NO_THREADS].
64723         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
64724         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
64725         Likewise.
64726
64727         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
64728         __libc_cleanup_push argument.
64729
64730         * bits/param.h: New file.
64731         * misc/sys/param.h: New file.
64732         * include/sys/param.h: New file.
64733         * misc/Makefile (headers): Add bits/param.h.
64734         * sysdeps/generic/sys/param.h: File removed.
64735         * sysdeps/unix/sysv/linux/bits/param.h: New file.
64736         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
64737         * sysdeps/mach/hurd/bits/param.h: New file.
64738         * sysdeps/mach/hurd/sys/param.h: File removed.
64739
64740         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
64741         last change.
64742
64743         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
64744         [_IO_MTSAFE_IO].
64745         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
64746         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
64747         New macros.
64748
64749         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
64750         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
64751         rather than -D_IO_MTSAFE_IO conditionally.
64752         * stdio-common/Makefile (CPPFLAGS): Likewise.
64753         * wcsmbs/Makefile (CPPFLAGS): Likewise.
64754         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
64755         Use $(libio-mtsafe).
64756         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
64757         of -D_IO_MTSAFE_IO.
64758         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
64759         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
64760         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
64761         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
64762         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
64763         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
64764         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
64765         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
64766         (CFLAGS-fread_u_chk.c): Likewise.
64767         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
64768         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
64769         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
64770         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
64771         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
64772         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
64773         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
64774         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
64775         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
64776
64777         * libio/Makefile: Test [$(libc-reentrant) = yes]
64778         instead of [$(filter %REENTRANT, $(defines)) nonempty].
64779
64780         * Makeconfig
64781         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
64782         * sysdeps/pthread/configure: File removed.
64783         * sysdeps/pthread/Makeconfig: New file.
64784         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
64785         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
64786
64787 2012-08-16  Gary Benson  <gbenson@redhat.com>
64788
64789         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
64790         unmapping the first object in a namespace.
64791
64792 2012-08-16  Roland McGrath  <roland@hack.frob.com>
64793
64794         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
64795         (__internal_setnetgrent): ... this.  Add internal_function to
64796         definition.  Add libc_hidden_def.
64797         (setnetgrent): Update caller.
64798         (internal_endnetgrent): Renamed to ...
64799         (__internal_endnetgrent): ... this.  Add internal_function to
64800         definition.  Add libc_hidden_def.
64801         (endnetgrent): Update caller.
64802         (internal_getnetgrent_r): Renamed to ...
64803         (__internal_getnetgrent_r): ... this.  Add internal_function to
64804         definition.  Add libc_hidden_def.
64805         (__getnetgrent_r): Update caller.
64806         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
64807
64808 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
64809
64810         * stdlib/longlong.h: Update from GCC.
64811
64812 2012-08-16  Roland McGrath  <roland@hack.frob.com>
64813
64814         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
64815         on _QL, which is set by umul_ppmm but never used.
64816         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
64817         variables, which are set by GMP macros but never used.
64818         * stdio-common/_itowa.c (_itowa): Likewise.
64819         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
64820         * stdlib/mod_1.c (mpn_mod_1): Likewise.
64821
64822 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
64823
64824         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
64825         struct La_sh_regs is not constant.
64826         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
64827         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
64828         and struct La_sparc64_regs are not constant.
64829
64830 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
64831
64832         * sysdeps/unix/sysv/linux/kernel-features.h
64833         (__ASSUME_POSIX_TIMERS): Remove.
64834         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
64835         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64836         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
64837         Make code unconditional.
64838         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64839         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
64840         Make code unconditional.
64841         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64842         * sysdeps/unix/sysv/linux/clock_nanosleep.c
64843         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
64844         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64845         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
64846         Make code unconditional.
64847         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
64848         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
64849         (__libc_missing_posix_timers): Remove.
64850
64851 2012-08-15  Roland McGrath  <roland@hack.frob.com>
64852
64853         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
64854         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
64855
64856         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
64857
64858         * elf/dl-sym.c: Include <stdlib.h>.
64859
64860         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
64861         constants, which avoids warnings in 32-bit builds.
64862
64863         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
64864         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
64865
64866         * misc/lseek.c: File moved to ...
64867         * io/lseek.c: ... here.
64868
64869         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
64870
64871         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
64872         shifting LEN more than 31 bits at once.
64873
64874 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
64875
64876         [BZ #14195]
64877         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
64878         segmentation fault for a case of two empty input strings.
64879         * string/test-strncasecmp.c (check1): Renamed to...
64880         (bz12205): ...this.
64881         (bz14195): Add new testcase for two empty input strings and N > 0.
64882         (test_main): Call new testcase, adapt for renamed function.
64883
64884 2012-08-15  Andreas Jaeger  <aj@suse.de>
64885
64886         [BZ #14090]
64887         * crypt/md5test2.c: New test, based on test supplied by Serge
64888         Belyshev <belyshev@depni.sinp.msu.ru>.
64889         * crypt/Makefile (xtests): Add md5test-giant..
64890         * crypt/Makefile ($(objpfx)md5test-giant): Add.
64891
64892 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         [BZ #14090]
64895         * crypt/md5.c (md5_process_block): Don't assume the buffer
64896         length is less than 2**32.
64897         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
64898         length is less than 2**64.
64899
64900 2012-08-15  Roland McGrath  <roland@hack.frob.com>
64901
64902         * string/str-two-way.h: Include <sys/param.h>.
64903         (MAX): Macro removed.
64904
64905         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
64906         Move #define and #undef of memmove to just before and after
64907         including <string.h>.
64908
64909         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
64910         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
64911         and after including <string.h>.  Move declarations of
64912         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
64913         to before #include "string/memmove.c".
64914
64915         * include/dirent.h: Declare __getdirentries.
64916
64917         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
64918         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
64919
64920 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
64921
64922         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
64923         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
64924         * sysdeps/i386/configure: Regenerated.
64925         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
64926         STABS_CURRENT_FILE, and STABS_FUN.
64927         (END): Remove call to STABS_FUN_END.
64928         (STABS_CURRENT_FILE1): Delete.
64929         (STABS_CURRENT_FILE): Likewise.
64930         (STABS_FUN): Likewise.
64931         (STABS_FUN_END): Likewise.
64932         (STABS_FUN2): Likewise.
64933         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
64934         * sysdeps/x86_64/configure: Regenerated.
64935
64936 2012-08-14  Roland McGrath  <roland@hack.frob.com>
64937
64938         * elf/dl-open.c: Include <atomic.h>.
64939         * elf/dl-lookup.c: Likewise.
64940
64941 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
64942
64943         * sysdeps/unix/sysv/linux/kernel-features.h
64944         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
64945         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
64946         unconditionally.
64947         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
64948         unconditionally.
64949         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
64950         condition on __ASSUME_CLONE_THREAD_FLAGS.
64951
64952 2012-08-14  Andreas Jaeger  <aj@suse.de>
64953
64954         * sysdeps/i386/fpu/libm-test-ulps: Update.
64955
64956 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
64957
64958         * include/atomic.h (atomic_exchange_and_add): Split into ...
64959         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
64960         New atomic macros.
64961
64962 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
64963
64964         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64965
64966 2012-08-13  Jeff Law <law@redhat.com>
64967
64968         * manual/stdio.texi (snprintf): Clarify handling of the trailing
64969         null byte in the output string.
64970
64971 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
64972
64973         * sysdeps/unix/sysv/linux/kernel-features.h
64974         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
64975         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
64976         (__ASSUME_ARG_MAX_STACK_BASED): Define.
64977         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
64978         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
64979         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
64980         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
64981
64982 2012-08-09  Jeff Law <law@redhat.com>
64983
64984         [BZ #13939]
64985         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
64986         When avoid_arena is set, don't retry in the that arena.  Pick the
64987         next one, whatever it might be.
64988         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
64989         (arena_lock): Pass in new parameter to arena_get2.
64990         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
64991         arena_get2.
64992         (__libc_malloc): Unify retrying after main arena failure with
64993         __libc_memalign version.
64994         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
64995
64996 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
64997
64998         [BZ #14166]
64999         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
65000         to __redirect_strstr.
65001         (__strstr_sse42): Use typeof __redirect_strstr.
65002         (__strstr_ia32): Likewise.
65003         (__libc_strstr): New prototype.
65004         (strstr): Renamed to ...
65005         (__libc_strstr): This.
65006         (strstr): New strong alias of __libc_strstr.
65007         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
65008         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
65009         __redirect_time.
65010         Include <time.h>.
65011         (__libc_time): New prototype.
65012         (time_ifunc): Replace time with __libc_time.
65013         (time): New strong alias and hidden definition of __libc_time.
65014         (__GI_time): Remove strong alias.
65015         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
65016         Include <stddef.h>.
65017         (memmove): Redefined to __redirect_memmove.
65018         (__memmove_sse2): Use typeof __redirect_memmove.
65019         (__memmove_ssse3): Likewise.
65020         (__memmove_ssse3_back): Likewise.
65021         (__libc_memmove): New prototype.
65022         (memmove): Renamed to ...
65023         (__libc_memmove): This.
65024         (memmove): New strong alias of __libc_memmove.
65025
65026 2012-08-08  Mark Salter  <msalter@redhat.com>
65027
65028         * elf/elf.h
65029         (R_MN10300_TLS_GD): Define.
65030         (R_MN10300_TLS_LD): Likewise.
65031         (R_MN10300_TLS_LDO): Likewise.
65032         (R_MN10300_TLS_GOTIE): Likewise.
65033         (R_MN10300_TLS_IE): Likewise.
65034         (R_MN10300_TLS_LE): Likewise.
65035         (R_MN10300_TLS_DTPMOD): Likewise.
65036         (R_MN10300_TLS_DTPOFF): Likewise.
65037         (R_MN10300_TLS_TPOFF): Likewise.
65038         (R_MN10300_SYM_DIFF): Likewise.
65039         (R_MN10300_ALIGN): Likewise.
65040         (R_MN10300_NUM): Update.
65041
65042 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
65043
65044         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
65045         Remove.
65046
65047 2012-08-08  Roland McGrath  <roland@hack.frob.com>
65048
65049         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
65050
65051         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
65052         sysdeps/unix -> sysdeps/posix move.
65053         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
65054
65055 2012-08-07      Allan McRae     <allan@archlinux.org>
65056
65057         [BZ #14303]
65058         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
65059         (SUNOS_CPP): Likewise.
65060         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
65061         not found.
65062         (open_input): Call CPP using execvp.
65063
65064 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65065
65066         * sysdeps/unix/sysv/linux/kernel-features.h
65067         (__ASSUME_PROT_GROWSUPDOWN): Remove.
65068         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65069         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65070         (__ASSUME_WAITID_SYSCALL): Likewise.
65071         * sysdeps/unix/sysv/linux/dl-execstack.c
65072         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
65073         code unconditional.
65074         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
65075         conditional code.
65076         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
65077         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
65078         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
65079         code.
65080         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
65081         unconditional.
65082         [__ASSUME_WAITID_SYSCALL]: Likewise.
65083         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
65084
65085 2012-08-07  Roland McGrath  <roland@hack.frob.com>
65086
65087         * sysdeps/unix/closedir.c: Renamed to ...
65088         * sysdeps/posix/closedir.c: ... here.
65089         * sysdeps/unix/dirfd.c: Renamed to ...
65090         * sysdeps/posix/dirfd.c: ... here.
65091         * sysdeps/unix/dirstream.h: Renamed to ...
65092         * sysdeps/posix/dirstream.h: ... here.
65093         * sysdeps/unix/fdopendir.c: Renamed to ...
65094         * sysdeps/posix/fdopendir.c: ... here.
65095         * sysdeps/unix/opendir.c: Renamed to ...
65096         * sysdeps/posix/opendir.c: ... here.
65097         * sysdeps/unix/readdir.c: Renamed to ...
65098         * sysdeps/posix/readdir.c: ... here.
65099         * sysdeps/unix/readdir_r.c: Renamed to ...
65100         * sysdeps/posix/readdir_r.c: ... here.
65101         * sysdeps/unix/rewinddir.c: Renamed to ...
65102         * sysdeps/posix/rewinddir.c: ... here.
65103         * sysdeps/unix/seekdir.c: Renamed to ...
65104         * sysdeps/posix/seekdir.c: ... here.
65105         * sysdeps/unix/telldir.c: Renamed to ...
65106         * sysdeps/posix/telldir.c: ... here.
65107         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
65108         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
65109         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
65110         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
65111
65112         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
65113         * bits/fcntl.h: ... here.
65114
65115         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
65116         not 0.
65117         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
65118         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
65119         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
65120         (struct flock): Move l_start, l_len to the beginning.
65121         Use __pid_t for l_pid.
65122         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
65123         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
65124         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
65125         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
65126         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
65127         [__USE_LARGEFILE64] (struct flock64): New type.
65128         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
65129
65130         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
65131         * bits/dirent.h: ... here.
65132
65133         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
65134         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
65135
65136 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
65137
65138         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65139         Change from 2.6.0 to 2.6.16.
65140         * sysdeps/unix/sysv/linux/configure: Regenerated.
65141         * sysdeps/unix/sysv/linux/kernel-features.h
65142         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
65143         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
65144         version.
65145         (__ASSUME_UTIMES): Likewise.
65146         (__ASSUME_CLONE_STOPPED): Remove.
65147         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
65148         architectures, not kernel version.
65149         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
65150         (__ASSUME_NO_CLONE_DETACHED): Likewise.
65151         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
65152         (__ASSUME_WAITID_SYSCALL): Likewise.
65153         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
65154         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
65155         * README: State 2.6.16 as minimum Linux kernel version.  Do not
65156         refer to older versions.
65157
65158 2012-08-06  Roland McGrath  <roland@hack.frob.com>
65159
65160         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
65161         Define alphasort64 as an alias.
65162         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
65163         Define versionsort64 as an alias.
65164         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
65165         Define scandir64 as an alias.
65166         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
65167         Define scandirat64 as an alias.
65168         * dirent/alphasort64.c (alphasort64):
65169         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
65170         * dirent/versionsort64.c: Likewise.
65171         * dirent/scandir64.c: Likewise.
65172         * dirent/scandirat64.c: Likewise.
65173         * sysdeps/wordsize-64/alphasort.c: File removed.
65174         * sysdeps/wordsize-64/alphasort64.c: File removed.
65175         * sysdeps/wordsize-64/scandir.c: File removed.
65176         * sysdeps/wordsize-64/scandir64.c: File removed.
65177         * sysdeps/wordsize-64/scandirat.c: File removed.
65178         * sysdeps/wordsize-64/scandirat64.c: File removed.
65179         * sysdeps/wordsize-64/versionsort.c: File removed.
65180         * sysdeps/wordsize-64/versionsort64.c: File removed.
65181         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
65182         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
65183         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
65184         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
65185         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
65186         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
65187         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
65188         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
65189
65190         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
65191         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65192         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
65193         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65194         [defined __arch64__ || defined __sparcv9]
65195         (__INO_T_MATCHES_INO64_T): New macro.
65196         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65197         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
65198         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
65199         * sysdeps/unix/sysv/linux/bits/dirent.h
65200         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
65201         (_DIRENT_MATCHES_DIRENT64): New macro.
65202
65203         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
65204         Define lockf64 as an alias.
65205         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
65206         Define fseeko64 as an alias.
65207         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
65208         Define ftello64 as an alias.
65209         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
65210         Define _IO_fgetpos64 and fgetpos64 as aliases.
65211         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
65212         Define _IO_fsetpos64 and fsetpos64 as aliases.
65213         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
65214         Conditionalize body on this.
65215         * libio/fseeko64.c: Likewise.
65216         * libio/ftello64.c: Likewise.
65217         * libio/iofgetpos64.c: Likewise.
65218         * libio/iofsetpos64.c: Likewise.
65219         * sysdeps/wordsize-64/lockf.c: File removed.
65220         * sysdeps/wordsize-64/lockf64.c: File removed.
65221         * sysdeps/wordsize-64/fseeko.c: File removed.
65222         * sysdeps/wordsize-64/fseeko64.c: File removed.
65223         * sysdeps/wordsize-64/ftello.c: File removed.
65224         * sysdeps/wordsize-64/ftello64.c: File removed.
65225         * sysdeps/wordsize-64/iofgetpos.c: File removed.
65226         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
65227         * sysdeps/wordsize-64/iofsetpos.c: File removed.
65228         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
65229         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
65230         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
65231         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
65232         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
65233         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
65234         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
65235         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
65236         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
65237         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
65238         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
65239
65240         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65241         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
65242         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
65243         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65244         [defined __arch64__ || defined __sparcv9]
65245         (__OFF_T_MATCHES_OFF64_T): New macro.
65246         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
65247         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
65248         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65249         (__OFF_T_MATCHES_OFF64_T): New macro.
65250
65251 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65252
65253         * stdlib/secure-getenv.c (__secure_getenv): Replace
65254         GLIBC_2_16 with GLIBC_2_17.
65255
65256 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
65257
65258         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
65259         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
65260
65261 2012-08-03  David S. Miller  <davem@davemloft.net>
65262
65263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65264
65265 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65266
65267         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
65268         Remove.
65269         (__ASSUME_CORRECT_SI_PID): Likewise.
65270         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
65271         (__ASSUME_TMPFS_NAME): Likewise.
65272         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
65273         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
65274         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
65275         (HAVE_AUX_SECURE): Make definition unconditional.
65276         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
65277         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
65278
65279 2012-08-03  Roland McGrath  <roland@hack.frob.com>
65280
65281         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
65282         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
65283         * sysdeps/mach/hurd/eloop-threshold.h: New file.
65284         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
65285         __eloop_threshold instead of SYMLOOP_MAX.
65286
65287         * sysdeps/generic/eloop-threshold.h: New file.
65288         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
65289         of MAXSYMLINKS.
65290         * elf/chroot_canon.c (chroot_canon): Likewise.
65291
65292 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
65293
65294         [BZ #13717]
65295         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65296         Change to 2.6.0 everywhere.
65297         * sysdeps/unix/sysv/linux/configure: Regenerated.
65298         * sysdeps/unix/sysv/linux/kernel-features.h
65299         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
65300         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
65301         kernel versions.
65302         (__ASSUME_POSIX_TIMERS): Define unconditionally.
65303         (__ASSUME_FUTEX_REQUEUE): Remove.
65304         (__ASSUME_STATFS64): Define unconditionally.
65305         (__ASSUME_AT_SECURE): Likewise.
65306         (__ASSUME_CORRECT_SI_PID): Likewise.
65307         (__ASSUME_TGKILL): Define without depending on kernel version for
65308         i386.
65309         (__ASSUME_UTIMES): Likewise.
65310         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
65311         kernel version.
65312         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
65313         (__ASSUME_TMPFS_NAME): Likewise.
65314         * README: Update reference to Linux kernel versions.
65315
65316 2012-08-02  Marek Polacek  <polacek@redhat.com>
65317
65318         [BZ# 14150]
65319         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
65320         libc_cv_asm_type_prefix with %.
65321         * configure: Regenerated.
65322         * include/libc-symbols.h: Remove comment about
65323         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65324         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
65325         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
65326         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
65327         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
65328         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
65329         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
65330         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
65331         * elf/tst-unique2mod1.c: Likewise.
65332         * elf/tst-unique1mod2.c: Likewise.
65333         * elf/tst-unique1mod1.c: Likewise.
65334         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
65335         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
65336         Replace ASM_TYPE_DIRECTIVE with .type.
65337         * sysdeps/s390/s390-64/sysdep.h: Likewise.
65338         * sysdeps/i386/sysdep.h: Likewise.
65339         * sysdeps/x86_64/sysdep.h: Likewise.
65340         * sysdeps/sh/sysdep.h: Likewise.
65341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
65342         Do not define ASM_TYPE_DIRECTIVE.
65343         * sysdeps/powerpc/sysdep.h: Likewise.
65344         * sysdeps/powerpc/powerpc32/sysdep.h:
65345         Replace ASM_TYPE_DIRECTIVE with .type.
65346         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
65347         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
65348         * sysdeps/i386/fpu/e_powf.S: Likewise.
65349         * sysdeps/i386/fpu/e_expl.S: Likewise.
65350         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
65351         * sysdeps/i386/fpu/e_acosh.S: Likewise.
65352         * sysdeps/i386/fpu/e_pow.S: Likewise.
65353         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
65354         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
65355         * sysdeps/i386/fpu/s_expm1.S: Likewise.
65356         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
65357         * sysdeps/i386/fpu/e_log2.S: Likewise.
65358         * sysdeps/i386/fpu/e_log2l.S: Likewise.
65359         * sysdeps/i386/fpu/e_scalb.S: Likewise.
65360         * sysdeps/i386/fpu/e_powl.S: Likewise.
65361         * sysdeps/i386/fpu/e_log10f.S: Likewise.
65362         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
65363         * sysdeps/i386/fpu/e_logl.S: Likewise.
65364         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
65365         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
65366         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
65367         * sysdeps/i386/fpu/e_log2f.S: Likewise.
65368         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
65369         * sysdeps/i386/fpu/e_log.S: Likewise.
65370         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
65371         * sysdeps/i386/fpu/e_logf.S: Likewise.
65372         * sysdeps/i386/fpu/e_log10l.S: Likewise.
65373         * sysdeps/i386/fpu/e_atanh.S: Likewise.
65374         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
65375         * sysdeps/i386/fpu/e_log10.S: Likewise.
65376         * sysdeps/i386/fpu/s_frexp.S: Likewise.
65377         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
65378         * sysdeps/i386/fpu/s_asinh.S: Likewise.
65379         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
65380         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
65381         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
65382         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
65383         * sysdeps/i386/i686/strtok.S: Likewise.
65384         * sysdeps/i386/i386-mcount.S: Likewise.
65385         * sysdeps/i386/strtok.S: Likewise.
65386         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
65387         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
65388         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65389         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
65390         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
65391         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
65392         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
65393         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
65394         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
65395         * sysdeps/x86_64/_mcount.S: Likewise.
65396         * sysdeps/x86_64/strtok.S: Likewise.
65397         * sysdeps/sh/_mcount.S: Likewise.
65398
65399 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65400
65401         * libio/iofopen.c: Include <fcntl.h>.
65402         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
65403         (_IO_fopen64, fopen64): Define as aliases.
65404         * libio/iofopen64.c: Include <fcntl.h>.
65405         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
65406         Conditionalize body on this.
65407         * sysdeps/wordsize-64/iofopen.c: File removed.
65408         * sysdeps/wordsize-64/iofopen64.c: File removed.
65409
65410 2012-08-01  Marek Polacek  <polacek@redhat.com>
65411
65412         * libc/Makeconfig: Use elf in place of binfmt-subdir.
65413         Use dlfcn directly instead of a variable.
65414         (binfmt-subdir): Do not define.
65415         (dlfcn): Likewise.
65416
65417 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
65418
65419         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
65420         Remove all definitions.
65421         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
65422         <kernel-features.h>.
65423         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65424         (miss_F_GETOWN_EX): Remove all definitions.
65425         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
65426         macro definition.
65427         [!__ASSUME_FCNTL64]: Remove conditional code.
65428         [__ASSUME_FCNTL64]: Make code unconditional.
65429         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
65430         <kernel-features.h>.
65431         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
65432         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
65433         (lockf64) [__NR_fcntl64]: Make code unconditional.
65434         (lockf64) [__ASSUME_FCNTL64]: Likewise.
65435
65436         * sysdeps/unix/sysv/linux/kernel-features.h
65437         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
65438         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
65439         Make code unconditional.
65440         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65441         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
65443         [__NR_vfork]: Make code unconditional.
65444         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65445         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
65447         [__NR_vfork]: Make code unconditional.
65448         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
65449         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
65450
65451 2012-08-01  Roland McGrath  <roland@hack.frob.com>
65452
65453         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
65454         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
65455
65456         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65457         Define mkstemp64 as an alias.
65458         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65459         Define mkstemps64 as an alias.
65460         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65461         Define mkostemp64 as an alias.
65462         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
65463         Define mkostemps64 as an alias.
65464         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
65465         Conditionalize body on this.
65466         * misc/mkostemp64.c: Likewise.
65467         * misc/mkostemps64.c: Likewise.
65468         * misc/mkstemps64.c: Likewise.
65469         * sysdeps/wordsize-64/mkstemp64.c: File removed.
65470         * sysdeps/wordsize-64/mkostemp64.c: File removed.
65471         * sysdeps/wordsize-64/mkostemp.c: File removed.
65472         * sysdeps/wordsize-64/mkstemp.c: File removed.
65473         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
65474         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
65475         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
65476         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
65477
65478         [BZ #14138]
65479         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
65480         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
65481         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
65482         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
65483
65484         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
65485         compat_symbol macros from <shlib-compat.h> rather than the underlying
65486         default_symbol_version and symbol_version macros, so that DEFAULT
65487         lines in shlib-versions are respected.
65488         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
65489
65490 2012-08-01  Florian Weimer  <fweimer@redhat.com>
65491
65492         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
65493         Declare with warn_unused_result.
65494         (setgid, setregid, setegid, setresgid): Likewise.
65495         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
65496         Likewise.
65497         * WUR-REPORT: Remove set*id functions.
65498
65499 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
65500
65501         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
65502
65503 2012-07-31  Roland McGrath  <roland@hack.frob.com>
65504
65505         [BZ #10191]
65506         * include/sys/socket.h (__libc_accept, __libc_accept4):
65507         Add attribute_hidden.
65508         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
65509
65510         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
65511         use of PTR_MANGLE.
65512         * inet/getnetgrent_r.c (setup): Likewise.
65513
65514         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
65515
65516 2012-07-31  David S. Miller  <davem@davemloft.net>
65517
65518         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65519
65520 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
65521
65522         [BZ #13629]
65523         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
65524         value between 1.0 and 2.0 and smaller part has absolute value less
65525         than 1.0.
65526         * math/s_clog10.c (__clog10): Likewise.
65527         * math/s_clog10f.c (__clog10f): Likewise.
65528         * math/s_clog10l.c (__clog10l): Likewise.
65529         * math/s_clogf.c (__clogf): Likewise.
65530         * math/s_clogl.c (__clogl): Likewise.
65531         * math/libm-test.inc (clog_test): Add more tests.
65532         (clog10_test): Likewise.
65533         * sysdeps/i386/fpu/libm-test-ulps: Update.
65534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65535
65536 2012-07-31  Florian Weimer  <fweimer@redhat.com>
65537
65538         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
65539         Exit with zero in case no suitable GID is found, and write a
65540         message to standard error.
65541
65542 2012-07-30  Roland McGrath  <roland@hack.frob.com>
65543
65544         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
65545         rather than to 1.
65546         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
65547         (MAXPATHLEN): Removed.
65548         (NOGROUP, NODEV): New macros.
65549         (setbit, clrbit, isset, isclr): New macros.
65550         (howmany, roundup, powerof2): New macros.
65551         (DEV_BSIZE): New macro.
65552
65553         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
65554         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
65555
65556         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
65557         definition on [!__NO_LONG_DOUBLE_MATH].
65558
65559         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
65560         PTR_MANGLE and PTR_DEMANGLE.
65561
65562         * socket/accept4.c (accept4): Rename to __libc_accept4.
65563         Define accept4 as a weak alias.
65564
65565         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
65566         on [_DIRENT_HAVE_D_TYPE].
65567         * io/ftw.c (ftw_dir): Likewise.
65568
65569         * io/xmknod.c (__xmknod): Don't check PATH for being null.
65570
65571         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
65572
65573         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
65574         Use the BSD numbers rather than the arbitrary ones we had.
65575         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
65576         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
65577         (SIGXCPU, SIGXFSZ): New macros.
65578         (_NSIG): Now 32.
65579
65580         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
65581         initializer on [_LIBC_REENTRANT].
65582
65583         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
65584         definitions inside [_POSIX_MAPPED_FILES].
65585
65586         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
65587
65588         * dirent/opendir.c: Include <fcntl.h>.
65589
65590         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
65591         (__libc_getspecific): Likewise.
65592         (__libc_key_create): Likewise.
65593
65594         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
65595         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
65596         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
65597         (tmpfile64): Define as alias.
65598         * sysdeps/wordsize-64/tmpfile.c: File removed.
65599         * sysdeps/wordsize-64/tmpfile64.c: File removed.
65600         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
65601         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
65602
65603         * stdio-common/vfscanf.c: Include <stdbool.h>.
65604         * nss/makedb.c: Likewise.
65605         * stdio-common/_i18n_number.h: Likewise.
65606         * argp/argp-help.c: Likewise.
65607         * posix/wordexp.c: Likewise.
65608         * sysdeps/posix/spawni.c: Likewise.
65609         * nss/nss_files/files-initgroups.c: Likewise.
65610         * stdio-common/reg-modifier.c: Include <stdlib.h>.
65611         * nss/nss_files/files-initgroups.c: Likewise.
65612         * nss/nss_db/db-netgrp.c: Likewise.
65613         * nss/nss_db/db-initgroups.c: Likewise.
65614         * io/fchmodat.c: Include <sys/stat.h>.
65615
65616         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
65617         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
65618
65619         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
65620         [HAVE_MMAP].
65621
65622         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
65623         Add multiple inclusion protection.
65624
65625 2012-07-27  David S. Miller  <davem@davemloft.net>
65626
65627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65628
65629 2012-07-27  Gary Benson  <gbenson@redhat.com>
65630
65631         [BZ #14298]
65632         * elf/rtld.c: Include <stap-probe.h>.
65633         (dl_main): Added static probes "init_start" and "init_complete".
65634         * elf/dl-load.c: Include <stap-probe.h>.
65635         (lose): Take new parameter "nsid".
65636         Added static probe "map_failed".
65637         (_dl_map_object_from_fd): Pass namespace id to lose.
65638         Added static probe "map_start".
65639         (open_verify): Pass namespace id to lose.
65640         * elf/dl-open.c: Include <stap-probe.h>.
65641         (dl_open_worker) Added static probes "map_complete", "reloc_start"
65642         and "reloc_complete".
65643         * elf/dl-close.c: Include <stap-probe.h>.
65644         (_dl_close_worker): Added static probes "unmap_start" and
65645         "unmap_complete".
65646         * elf/rtld-debugger-interface.txt: New file documenting the above.
65647
65648 2012-07-26  Roland McGrath  <roland@hack.frob.com>
65649
65650         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
65651         rather than a string variable.
65652         * sunrpc/rpc_main.c (h_output): Likewise.
65653         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
65654
65655 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
65656
65657         * inet/check_native.c: New file.
65658
65659 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
65660
65661         [BZ #13629]
65662         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
65663         if larger part has absolute value 1.0.
65664         * math/s_clog10.c (__clog10): Likewise.
65665         * math/s_clog10f.c (__clog10f): Likewise.
65666         * math/s_clog10l.c (__clog10l): Likewise.
65667         * math/s_clogf.c (__clogf): Likewise.
65668         * math/s_clogl.c (__clogl): Likewise.
65669         * math/libm-test.inc (clog_test): Add more tests.
65670         (clog10_test): Likewise.
65671         * sysdeps/i386/fpu/libm-test-ulps: Update.
65672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65673
65674         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
65675         (pltexit): Likewise.
65676         (La_regs): Likewise.
65677         (La_retval): Likewise.
65678         (int_retval): Likewise.
65679         Update #error for removed macros to refer only to definitions in
65680         tst-audit.h.
65681         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
65682         macro.
65683         (pltexit): Likewise.
65684         (La_regs): Likewise.
65685         (La_retval): Likewise.
65686         (int_retval): Likewise.
65687         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
65688         macro.
65689         (pltexit): Likewise.
65690         (La_regs): Likewise.
65691         (La_retval): Likewise.
65692         (int_retval): Likewise.
65693         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
65694         macro.
65695         (pltexit): Likewise.
65696         (La_regs): Likewise.
65697         (La_retval): Likewise.
65698         (int_retval): Likewise.
65699         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
65700         macro.
65701         (pltexit): Likewise.
65702         (La_regs): Likewise.
65703         (La_retval): Likewise.
65704         (int_retval): Likewise.
65705         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
65706         macro.
65707         (pltexit): Likewise.
65708         (La_regs): Likewise.
65709         (La_retval): Likewise.
65710         (int_retval): Likewise.
65711         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
65712         macro.
65713         (pltexit): Likewise.
65714         (La_regs): Likewise.
65715         (La_retval): Likewise.
65716         (int_retval): Likewise.
65717         * sysdeps/generic/tst-audit.h: Update comment to refer only to
65718         macro definitions in tst-audit.h.
65719         * sysdeps/i386/tst-audit.h: New file.
65720         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
65721         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
65722         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
65723         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
65724         * sysdeps/sh/tst-audit.h: Likewise.
65725         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
65726         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
65727         * sysdeps/x86_64/tst-audit.h: Likewise.
65728
65729 2012-07-26  Andreas Jaeger  <aj@suse.de>
65730
65731         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
65732         ptrace.
65733
65734         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
65735         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
65736         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
65737         PTRACE_O_MASK.
65738         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
65739         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
65740         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
65741
65742         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
65743         value.
65744
65745         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
65746         _sigsys.
65747         (si_call_addr, si_syscall, si_arch): Define new macro.
65748         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
65749         _sigsys.
65750         (si_call_addr, si_syscall, si_arch): Define new marcro.
65751         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
65752         _sigsys.
65753         (si_call_addr, si_syscall, si_arch): Define new macro.
65754         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
65755         _sigsys.
65756         (si_call_addr, si_syscall, si_arch): Define new macro.
65757
65758 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
65759
65760         [BZ #13717]
65761         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
65762         Change to 2.4.21 where previously 2.4.1.
65763         * sysdeps/unix/sysv/linux/configure: Regenerated.
65764         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
65765         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
65766         Linux kernel version.
65767         (__ASSUME_STD_AUXV): Remove.
65768         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
65769         kernel version.
65770         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
65771         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
65772         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
65773         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
65774         (__ASSUME_NETLINK_SUPPORT): Likewise.
65775         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
65776         (__no_netlink_support): Remove conditional definition.
65777         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
65778         Remove.
65779         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65780         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
65781         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
65782         (if_nameindex_ioctl): Remove.
65783         (if_nameindex_netlink): Do not handle __no_netlink_support.
65784         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65785         code.
65786         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
65787         Remove conditional code.
65788         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
65789         code.
65790         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
65791         unconditional.
65792         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
65793         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
65794         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
65795         Remove.
65796         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
65797         [!__ASSUME_STD_AUXV]: Remove conditional code.
65798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
65799         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
65800         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
65801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
65802         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
65803         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
65804         code.
65805         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
65806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
65807         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
65808         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
65809         conditional code.
65810         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
65811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
65812         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
65813         code.
65814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
65815         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
65816         conditional code.
65817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
65818         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
65819         code unconditional.
65820         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65821         conditional code.
65822         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65823         unconditional.
65824         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65825         conditional code.
65826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
65827         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65828         unconditional.
65829         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65830         conditional code.
65831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
65832         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
65833         code unconditional.
65834         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65835         conditional code.
65836         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65837         unconditional.
65838         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65839         conditional code.
65840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
65841         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
65842         code unconditional.
65843         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65844         conditional code.
65845         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
65846         unconditional.
65847         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
65848         conditional code.
65849
65850 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
65851
65852         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
65853         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
65854         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
65855         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
65856         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
65857         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
65858         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
65859         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
65860         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
65861         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
65862         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
65863         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
65864         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
65865         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
65866         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
65867         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
65868         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
65869         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
65870         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
65871         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
65872         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
65873         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
65874         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
65875
65876 2012-07-25  Florian Weimer  <fweimer@redhat.com>
65877
65878         * Versions.def: Add GLIBC_2.17.
65879         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
65880         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
65881         Introduce __libc_secure_getenv.
65882         * stdlib/Versions (2.17): Add secure_getenv
65883         (GLIBC_PRIVATE): Add __libc_secure_getenv.
65884         * stdlib/secure-getenv.c: Rename __secure_getenv to
65885         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
65886         symbol __secure_getenv for GLIBC_2.0.
65887         * stdlib/tst-secure-getenv.c: New.
65888         * stdlib/Makefile (tests): Add testcase.
65889         * manual/startup.texi (Environment Access): Document
65890         secure_getenv.
65891         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
65892         __libc_secure_getenv.
65893         * inet/ruserpass.c (ruserpass): Likewise.
65894         * malloc/mtrace.c (mtrace): Likewise.
65895         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
65896         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
65897         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
65898         * sysdeps/posix/tempname.c: Likewise.  Evaluate
65899         HAVE_SECURE_GETENV.
65900         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
65901         __secure_getenv to __libc_secure_getenv.
65902         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
65903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65904         Likewise.
65905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65906         Likewise.
65907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
65908         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
65909         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65910         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
65911         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
65912         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65913         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
65914
65915 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
65916
65917         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
65918         (struct La_i86_retval): Likewise.
65919         (struct La_x86_64_regs): Likewise.
65920         (struct La_x86_64_retval): Likewise.
65921         (struct La_x32_regs): Likewise.
65922         (struct La_x32_retval): Likewise.
65923         (struct La_ppc32_regs): Likewise.
65924         (struct La_ppc32_retval): Likewise.
65925         (struct La_ppc64_regs): Likewise.
65926         (struct La_ppc64_retval): Likewise.
65927         (struct La_sh_regs): Likewise.
65928         (struct La_sh_retval): Likewise.
65929         (struct La_s390_32_regs): Likewise.
65930         (struct La_s390_32_retval): Likewise.
65931         (struct La_s390_64_regs): Likewise.
65932         (struct La_s390_64_retval): Likewise.
65933         (struct La_sparc32_regs): Likewise.
65934         (struct La_sparc32_retval): Likewise.
65935         (struct La_sparc64_regs): Likewise.
65936         (struct La_sparc64_retval): Likewise.
65937         (struct audit_ifaces): Remove architecture-specific pltenter and
65938         pltexit members.
65939         * sysdeps/i386/ldsodefs.h: New file.
65940         * sysdeps/powerpc/ldsodefs.h: Likewise.
65941         * sysdeps/s390/ldsodefs.h: Likewise.
65942         * sysdeps/sh/ldsodefs.h: Likewise.
65943         * sysdeps/sparc/ldsodefs.h: Likewise.
65944         * sysdeps/x86_64/ldsodefs.h: Likewise.
65945
65946 2012-07-25  Marek Polacek  <polacek@redhat.com>
65947
65948         [BZ #6808]
65949         * math/libm-test.inc (yn_test): Add another test.
65950         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
65951         to ERANGE when the result is +-Inf.
65952         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
65953         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
65954         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
65955         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
65956
65957 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
65958
65959         * conform/data/time.h-data (NULL): Use macro-constant.  Require
65960         equal to 0.
65961         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
65962         clock_t.
65963         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
65964
65965 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
65966
65967         * configure.in <sysdeps resolving>: Correct printing
65968         Implies_before.
65969         * configure: Regenerate.
65970
65971 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
65972
65973         * math/w_ilogb.c: Include <limits.h>.
65974         * math/w_ilogbl.c: Likewise.
65975
65976 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
65977
65978         * manual/lang.texi (__va_copy): Document primarily as ISO C99
65979         va_copy.  Document allowing for unavailable va_copy only as
65980         pre-C99 compatibility.
65981         * manual/string.texi (Copying and Concatenation): Use va_copy
65982         instead of __va_copy in concat example.
65983
65984 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
65985
65986         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
65987         (__sendto): Use create_address_port.  Initialize APORT and deallocate
65988         it if not null.
65989
65990         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
65991         with O_NOLINK passed to __file_name_lookup.
65992
65993         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
65994         with O_NOLINK passed to __file_name_lookup.
65995
65996         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
65997         negative N or less than NGIDS.
65998
65999         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
66000         type to string_t.  Set ERANGE as errno and return it if NAME is not big
66001         enough.  Use memcpy instead of strncpy.
66002
66003 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
66004
66005         * elf/Makefile (check-data): Remove.
66006         (localplt.data): New vpath directive.
66007         ($(objpfx)check-localplt.out): Use localplt.data from vpath
66008         instead of $(check-data).
66009         * scripts/data/localplt-generic.data: Move to ...
66010         * sysdeps/generic/localplt.data: ... here.
66011         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
66012         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
66013         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
66014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
66015         ... here.
66016         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
66017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
66018         ... here.
66019         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
66020         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
66021         ... here.
66022         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
66023         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
66024         ... here.
66025         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
66026         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
66027         ... here.
66028         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
66029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
66030         ... here.
66031
66032 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66033
66034         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
66035         PPC32 and PPC64 files.
66036         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
66037         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
66038
66039 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66040
66041         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
66042         __makecontext_ret to ...
66043         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
66044         ... here and call exit if uc_link is NULL.  New file.
66045         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
66046         __makecontext_ret.S.
66047         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
66048         __makecontext_ret to ...
66049         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
66050         ... here and call exit if uc_link is NULL.  New file.
66051         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
66052         __makecontext_ret.S.
66053
66054 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66055
66056         * elf/elf.h (R_390_IRELATIVE): New definition.
66057         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
66058         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
66059         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
66060         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
66061         (elf_machine_lazy_rel): Likewise.
66062         * sysdeps/s390/dl-irel.h: New file.
66063         * sysdeps/s390/s390-64/memcpy.S: New asm code.
66064         * sysdeps/s390/s390-64/memset.S: New asm code.
66065         * sysdeps/s390/s390-64/memcmp.S: New asm code.
66066         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
66067         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
66068         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
66069         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
66070         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
66071         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
66072         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
66073         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
66074         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
66075         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
66076         * sysdeps/s390/s390-32/memcpy.S: New asm code.
66077         * sysdeps/s390/s390-32/memset.S: New asm code.
66078         * sysdeps/s390/s390-32/memcmp.S: New asm code.
66079
66080 2012-07-17  Marek Polacek  <polacek@redhat.com>
66081
66082         [BZ #14349]
66083         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
66084         * sysdeps/s390/s390-64/configure.in: Likewise.
66085         * sysdeps/sparc/configure.in: Likewise.
66086         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
66087         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
66088         * sysdeps/i386/configure.in: Likewise.
66089         * sysdeps/x86_64/configure.in: Likewise.
66090         * sysdeps/sh/configure.in: Likewise.
66091         * sysdeps/s390/s390-32/configure: Regenerated.
66092         * sysdeps/s390/s390-64/configure: Likewise.
66093         * sysdeps/x86_64/configure: Likewise.
66094         * sysdeps/sh/configure: Likewise.
66095         * sysdeps/powerpc/powerpc64/configure: Likewise.
66096         * sysdeps/powerpc/powerpc32/configure: Likewise.
66097         * sysdeps/sparc/configure: Likwise.
66098         * sysdeps/i386/configure: Likewise.
66099
66100         * elf/dl-open.c: Comment fixes.
66101
66102 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
66103
66104         * Makefile [CXX] (check-data): Remove.
66105         [CXX] (c++-types.data): New vpath directive.
66106         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
66107         vpath.  Do not allow for C++ type data being missing.
66108         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
66109         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
66110         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
66111         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
66112         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
66113         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
66114         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
66115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
66116         ... here.
66117         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
66118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
66119         ... here.
66120         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
66121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
66122         ... here.
66123         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
66124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
66125         ... here.
66126         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
66127         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
66128         ... here.
66129         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
66130         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
66131         ... here.
66132         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
66133         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
66134         ... here.
66135         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
66136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
66137
66138         * elf/tls-macros.h (TLS_LE): Move architecture-specific
66139         definitions to architecture-specific files.
66140         (TLS_IE): Likewise.
66141         (TLS_LD): Likewise.
66142         (TLS_GD): Likewise.
66143         * sysdeps/i386/tls-macros.h: New file.
66144         * sysdeps/powerpc/tls-macros.h: Likewise.
66145         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
66146         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
66147         * sysdeps/sh/tls-macros.h: Likewise.
66148         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
66149         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
66150         * sysdeps/x86_64/tls-macros.h: Likewise.
66151
66152 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66153
66154         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
66155         zero value for regular exit case.
66156
66157         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
66158         (__start_context): Preserve zero value for regular exit case.
66159
66160 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
66161             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
66162
66163         * manual/setjmp.texi (setcontext): Clarify normal process
66164         termination when uc_link is the null pointer.
66165         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
66166         exit call.
66167
66168 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
66169
66170         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
66171         preprocessor.  Test for each exception mask separately.
66172
66173 2012-07-16  Andreas Jaeger  <aj@suse.de>
66174
66175         * po/ru.po: Update from translation team.
66176
66177 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
66178
66179         * conform/data/string.h-data (NULL): Use macro-constant.  Require
66180         equal to 0.
66181         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
66182         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
66183         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
66184         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
66185         [ISO || ISO99 || ISO11] (*_t): Do not allow.
66186
66187 2012-07-13  Andreas Jaeger  <aj@suse.de>
66188
66189         * po/fr.po: Update from translation team.
66190
66191 2012-07-12  Marek Polacek  <polacek@redhat.com>
66192
66193         [BZ #14173]
66194         * math/libm-test.inc (yn_test): Add test for BZ #14173.
66195         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
66196         loop condition.
66197
66198 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
66199
66200         [BZ #13717]
66201         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
66202         Change to 2.4.1 where previously 2.4.0.
66203         * sysdeps/unix/sysv/linux/configure: Regenerated.
66204         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
66205         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
66206         version.
66207         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
66208         (__ASSUME_AT_CLKTCK): Remove.
66209         (__ASSUME_AT_PAGESIZE): Likewise.
66210         (__ASSUME_AT_XID): Likewise.
66211         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
66212         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
66213         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
66214         unconditionally.
66215         (HAVE_AUX_PAGESIZE): Likewise.
66216         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
66217         [__ASSUME_AT_CLKTCK]: Make code unconditional.
66218         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
66219
66220 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
66221
66222         [BZ #14307]
66223         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
66224         the temporary buffer used to invoke __gethostbyname2_r,
66225         __gethostbyaddr_r and gethostbyname4_r to make room for struct
66226         host_data / struct gaih_addrtuple.
66227         * resolv/nss_dns/dns-host.c (global scope): Move definition of
66228         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
66229         header file nss/nsswitch.h.
66230         * nss/nsswitch.h (global scope): Add definition of implementation
66231         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
66232         resolv/nss_dns/dns-host.c).
66233
66234 2012-07-11  Andreas Jaeger  <aj@suse.de>
66235
66236         * po/fr.po: Update from translation team.
66237
66238         * po/sv.po: Update from translation team
66239         * po/fr.po: Another update from translation team.
66240
66241 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66242
66243         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
66244         for subnormals or multiply small sinh result by itself.
66245         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
66246         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66247
66248 2012-07-11  David S. Miller  <davem@davemloft.net>
66249
66250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66251
66252 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
66253
66254         [BZ #14347]
66255         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
66256         (INTERNAL_MARK): Shift it here.
66257
66258 2012-07-10  Marek Polacek  <polacek@redhat.com>
66259
66260         [BZ #14151]
66261         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
66262         libc_cv_asm_global_directive with .globl.
66263         * configure: Regenerated.
66264         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
66265         with .globl.
66266         * sysdeps/i386/configure: Regenerated.
66267         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
66268         with .globl.
66269         * sysdeps/x86_64/configure: Regenerated.
66270         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
66271         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
66272         * elf/tst-unique2mod2.c: Likewise.
66273         * elf/tst-unique2mod1.c: Likewise.
66274         * elf/tst-unique1mod2.c: Likewise.
66275         * elf/tst-unique1mod1.c: Likewise.
66276         * sysdeps/s390/s390-32/sysdep.h: Likewise.
66277         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
66278         * sysdeps/s390/s390-64/sysdep.h: Likewise.
66279         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
66280         * sysdeps/mach/sysdep.h: Likewise.
66281         * sysdeps/i386/sysdep.h: Likewise.
66282         * sysdeps/i386/i386-mcount.S: Likewise.
66283         * sysdeps/x86_64/_mcount.S: Likewise.
66284         * sysdeps/x86_64/sysdep.h: Likewise.
66285         * sysdeps/sh/_mcount.S: Likewise.
66286         * sysdeps/sh/sysdep.h: Likewise.
66287         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
66288         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
66289         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
66290         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
66291         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
66292         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
66293         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
66294         * locale/localeinfo.h: Likewise.
66295         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
66296         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
66297
66298 2012-07-09  Roland McGrath  <roland@hack.frob.com>
66299
66300         [BZ #14336]
66301         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
66302         system".
66303         * manual/message.texi (The Uniforum approach): Likewise.
66304         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
66305         (glibc iconv Implementation): Likewise.
66306
66307 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
66308
66309         [BZ #14337]
66310         * math/s_clog.c (__clog): Avoid scaling a value down where that
66311         could result in underflow.
66312         * math/s_clog10.c (__clog10): Likewise.
66313         * math/s_clog10f.c (__clog10f): Likewise.
66314         * math/s_clog10l.c (__clog10l): Likewise.
66315         * math/s_clogf.c (__clogf): Likewise.
66316         * math/s_clogl.c (__clogl): Likewise.
66317         * math/libm-test.inc (clog_test): Add more tests.
66318         (clog10_test): Likewise.
66319         * sysdeps/i386/fpu/libm-test-ulps: Update.
66320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66321
66322 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
66323
66324         [BZ #14283]
66325         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
66326         by 7 not 8 to examine high bit of fractional part.
66327
66328         [BZ #14042]
66329         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
66330         for call to __mcount_internal.
66331         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
66332         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
66333         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
66334
66335 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
66336
66337         [BZ #14154]
66338         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
66339         approximation for values within 0x1p-13f of an odd multiple of
66340         pi/4.
66341         * math/libm-test.inc (tan_test): Do not allow spurious underflow
66342         exception.  Add more tests.
66343         * sysdeps/i386/fpu/libm-test-ulps: Update.
66344
66345         [BZ #6778]
66346         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
66347         inputs and return -1 for them.  Do not check for +Inf in case not
66348         reachable for +Inf.
66349         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
66350         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
66351         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66352         and return -1 for them.  Do not check for +Inf in case not
66353         reachable for +Inf.
66354         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
66355         define.
66356         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
66357         and return -1 for them.  Do not check for +Inf in case not
66358         reachable for +Inf.
66359         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
66360         spurious underflow.
66361         * sysdeps/i386/fpu/libm-test-ulps: Update.
66362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66363
66364 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
66365
66366         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
66367
66368 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
66369
66370         [BZ #14157]
66371         [BZ #14331]
66372         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
66373         could result in spurious underflow.  Scale down values above
66374         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
66375         * math/s_csqrtf.c (__csqrtf): Likewise.
66376         * math/s_csqrtl.c (__csqrtl): Likewise.
66377         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
66378         spurious underflow.
66379         * sysdeps/i386/fpu/libm-test-ulps: Update.
66380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66381
66382 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
66383
66384         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
66385         xopen-msg.sed.
66386         * catgets/xopen-msg.awk: New file.
66387         * catgets/xopen-msg.sed: Removed.
66388
66389         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
66390         po2text.sed.
66391         * intl/po2test.awk: New file.
66392         * intl/po2test.sed: Removed.
66393
66394 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
66395
66396         [BZ #14328]
66397         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
66398         or multiply small sinh result by itself.
66399         * math/s_ctanf.c (__ctanf): Likewise.
66400         * math/s_ctanh.c (__ctanh): Likewise.
66401         * math/s_ctanhf.c (__ctanhf): Likewise.
66402         * math/s_ctanhl.c (__ctanhl): Likewise.
66403         * math/s_ctanl.c (__ctanl): Likewise.
66404         * math/libm-test.inc (ctan_test_tonearest): New function.
66405         (ctan_test_towardzero): Likewise.
66406         (ctan_test_downward): Likewise.
66407         (ctan_test_upward): Likewise.
66408         (ctanh_test_tonearest): Likewise.
66409         (ctanh_test_towardzero): Likewise.
66410         (ctanh_test_downward): Likewise.
66411         (ctanh_test_upward): Likewise.
66412         (main): Call these new functions.
66413         * sysdeps/i386/fpu/libm-test-ulps: Update.
66414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66415
66416 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
66417
66418         * .gitignore: Delete /ports entry.
66419
66420 2012-07-03  Andreas Jaeger  <aj@suse.de>
66421
66422         * po/bg.po: Update from translation team.
66423         * po/cs.po: Likewise.
66424         * po/de.po: Likewise.
66425         * po/hr.po: Likewise.
66426         * po/nl.pl: Likewise.
66427         * po/pl.po: Likewise.
66428         * po/vi.po: Likewise.
66429
66430 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
66431
66432         * Makeconfig [!+link] (+link-before-libc): New variable.
66433         [!+link] (+link-after-libc): Likewise.
66434         [!+link] (+link-tests): Likewise.
66435         [!+link] (+link): Define in terms of $(+link-before-libc) and
66436         $(+link-after-libc).
66437         [!+link-static] (+link-static-before-libc): New variable.
66438         [!+link-static] (+link-static-after-libc): Likewise.
66439         [!+link-static] (+link-static-tests): Likewise.
66440         [!+link-static] (+link-static): Define in terms of
66441         $(+link-static-before-libc) and $(+link-static-after-libc).
66442         [build-shared] (link-libc-before-gnulib): New variable.
66443         [build-shared] (link-libc-tests): Likewise.
66444         [build-shared] (link-libc): Define in terms of
66445         $(link-libc-before-gnulib).
66446         [!build-shared] (link-libc-tests): New variable.
66447         (link-libc-static-tests): New variable.
66448         [!gnulib] (gnulib-arch): New variable.
66449         [!gnulib] (gnulib-tests): Likewise.
66450         [!gnulib] (static-gnulib-arch): Likewise.
66451         [!gnulib] (static-gnulib-tests): Likewise.
66452         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
66453         Define with "=" instead of ":=".
66454         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
66455         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
66456         * Rules (binaries-all-notests): New variable.
66457         (binaries-all-tests): Likewise.
66458         (binaries-static-notests): Likewise.
66459         (binaries-static-tests): Likewise.
66460         (binaries-all): Define using $(binaries-all-notests) and
66461         $(binaries-all-tests).
66462         (binaries-static): Define using $(binaries-static-notests) and
66463         $(binaries-static-tests).
66464         (binaries-shared-tests): New variable.
66465         (binaries-shared-notests): Likewise.
66466         (binaries-shared): Remove variable.
66467         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
66468         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
66469         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
66470         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
66471         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
66472         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
66473         * elf/Makefile (sln-modules): New variable.
66474         (extra-objs): Add $(sln-modules:=.o).
66475         (ldconfig-modules): Add static-stubs.
66476         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
66477         * elf/static-stubs.c: New file.
66478
66479         [BZ #14283]
66480         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
66481         by 7 not 8 to examine high bit of fractional part.  Use volatile
66482         variables when splitting into final array of floats if
66483         __FLT_EVAL_METHOD__ != 0.
66484         * math/libm-test.inc (cos_test): Add another test.
66485         (sin_test): Likewise.
66486         * sysdeps/i386/fpu/libm-test-ulps: Update.
66487
66488         [BZ #14273]
66489         * math/libm-test.inc (cosh_test): Add more tests.
66490
66491         * version.h (RELEASE): Set to "development".
66492         (VERSION): Set to "2.16.90".
66493
66494 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
66495
66496         * NEWS: Update copyright. Remove last-updated date.
66497         Mention math library bug fixes and timezone data changes.
66498         * README: Mention GNU/Hurd, x32, and HPPA support status.
66499
66500 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
66501
66502         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
66503
66504 2012-06-27  Andreas Jaeger  <aj@suse.de>
66505
66506         * manual/contrib.texi (Contributors): Add Samuel Thibault.
66507
66508 2012-06-25  Andreas Jaeger  <aj@suse.de>
66509
66510         * sysdeps/s390/fpu/libm-test-ulps: Update.
66511
66512 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
66513             Thomas Schwinge  <thomas@codesourcery.com>
66514
66515         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
66516         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
66517         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
66518         fanotify_mark.
66519
66520 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
66521
66522         * sysdeps/mach/start.c: Remove file.
66523         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
66524         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
66525         * sysdeps/sh/init-first.c: Likewise.
66526
66527         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
66528         registers for frame unwinding purposes, add CFI directives.
66529         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66530         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
66531         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
66532         Likewise.
66533
66534         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
66535         __fortify_fail returning.
66536         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
66537
66538         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
66539         sysdeps/sh/____longjmp_chk.S.
66540         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
66541         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
66542         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
66543         (gen-as-const-headers): Append sigaltstack-offsets.sym.
66544
66545         * sysdeps/sh/abort-instr.h: New file.
66546         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
66547         process in case exit returns.
66548
66549         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
66550         initialize the GOT register before use.
66551
66552         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
66553         calculation of ARGC > 4.
66554
66555         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
66556         meaningful names to some local labels.
66557
66558 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66559             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66560
66561         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
66562         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
66563         (__arch_compare_and_exchange_val_16_acq): Likewise.
66564         (__arch_compare_and_exchange_val_32_acq): Likewise.
66565         (atomic_exchange_and_add): Fix gUSA sequence.
66566         (atomic_add): Likewise.
66567         (atomic_add_negative): Likewise.
66568         (atomic_add_zero): Likewise.
66569         (atomic_bit_test_set): Likewise.
66570
66571 2012-06-22  Andreas Schwab  <schwab@redhat.com>
66572
66573         [BZ #13579]
66574         * include/link.h (struct link_map): Add l_free_initfini.
66575         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
66576         l_initfini.
66577         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
66578         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
66579         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
66580         set.
66581
66582 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
66583
66584         * configure.in: Use AC_LANG_SOURCE.
66585         * configure: Regenerate.
66586
66587 2012-06-22  Roland McGrath  <roland@hack.frob.com>
66588
66589         * configure.in (libc_cv_localstatedir): New substituted variable.
66590         * configure: Regenerated.
66591         * config.make.in (localstatedir): New variable, substituted from
66592         libc_cv_localstatedir.
66593         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
66594         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
66595         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
66596         * sysdeps/gnu/configure: Regenerated.
66597
66598 2012-06-21  Jeff Law  <law@redhat.com>
66599
66600         [BZ #14277]
66601         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
66602         free.  Simplify list management for _LIBC case.
66603
66604 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
66605
66606         [BZ #14273]
66607         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
66608         Clear sign bit of 64-bit integer value before comparing against
66609         overflow value.
66610
66611         * sysdeps/mach/configure: Regenerated.
66612
66613 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
66614
66615         [BZ #14278]
66616         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
66617
66618 2012-06-21  Jeff Law  <law@redhat.com>
66619
66620         [BZ #13882]
66621         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
66622         uint16_t for elements in the "seen" array to avoid char overflows.
66623         * elf/dl-fini.c (_dl_sort_fini): Likewise.
66624         * elf/dl-open.c (dl_open_worker): Likewise.
66625
66626 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
66627
66628         * scripts/list-sources.sh: Scan PORTS for translations.
66629         * po/libc.pot: Regenerated.
66630
66631 2012-06-21  Andreas Jaeger  <aj@suse.de>
66632
66633         [BZ #12194]
66634         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
66635         warning.
66636         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
66637         * bits/byteswap-16.h (__bswap_16): Likewise.
66638         * bits/byteswap.h (__bswap_constant_16): Likewise.
66639
66640 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
66641
66642         [BZ #14117]
66643         * sysdeps/i386/fpu_control.h: Removed.
66644         * sysdeps/x86_64/fpu_control.h: Moved to ...
66645         * sysdeps/x86/fpu_control.h: Here.
66646
66647         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
66648         (_FPU_SETCW): Likewise.
66649
66650 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
66651
66652         [BZ #14117]
66653         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
66654         * sysdeps/x86/fpu/bits/mathinline.h: This.
66655         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
66656
66657         [BZ #14050]
66658         [BZ #14117]
66659         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
66660         functions if __x86_64__ is defined.
66661
66662 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
66663
66664         * string/endian.h: Add !__ASSEMBLER__ condition for including
66665         conversion interfaces.
66666
66667 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
66668
66669         [BZ #14241]
66670         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
66671         of ABS(x) in calculating zero to negative powers other than odd
66672         integers.
66673         * math/libm-test.inc (pow_test): Add more tests.
66674
66675 2012-06-15  Andreas Jaeger  <aj@suse.de>
66676
66677         * manual/contrib.texi (Contributors): Update entry of Liubov
66678         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
66679         Machado Filho.
66680
66681 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
66682
66683         * string/string.h: Add __wur to GNU version of strerror_r.
66684
66685 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
66686
66687         [BZ #14229]
66688         * string/Makefile (tests): Add tst-strtok_r.
66689         * string/tst-strtok_r.c: New file.
66690         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
66691         RAX_LP/RDX_LP on SAVE_PTR.
66692
66693 2012-06-14  Roland McGrath  <roland@hack.frob.com>
66694
66695         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
66696
66697 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
66698
66699         * libm_test.inc (csqrt_test): Allow more spurious underflow
66700         exceptions.
66701         (j0_test): Likewise.
66702         (j1_test): Likewise.
66703         (y0_test): Likewise.
66704         (y1_test): Likewise.
66705
66706 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
66707
66708         * po/Makefile (libc.pot): Use UTF-8 charset.
66709
66710 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
66711
66712         [BZ #14210]
66713         Suppress sign-conversion warning from FD_SET.
66714         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
66715         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
66716         not unsigned long int.
66717         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
66718
66719 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
66720
66721         [BZ #14050]
66722         [BZ #14117]
66723         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
66724         __extern_always_inline instead of __extern_inline.
66725         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
66726         (__signbit): Likewise.
66727         (__signbitl): Support C++ namespace.
66728         (lrintf): New inline function.
66729         (lrint): Likewise.
66730         (llrintf): Likewise.
66731         (llrint): Likewise.
66732         (fmaxf): Likewise.
66733         (fmax): Likewise.
66734         (fminf): Likewise.
66735         (fmin): Likewise.
66736         (rint): Likewise.
66737         (rintf): Likewise.
66738         (ceil): Likewise.
66739         (ceilf): Likewise.
66740         (floor): Likewise.
66741         (floorf): Likewise.
66742         (nearbyint): Likewise.
66743         (nearbyintf): Likewise.
66744
66745 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
66746
66747         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
66748         non-default versions.
66749
66750 2012-06-11  Roland McGrath  <roland@hack.frob.com>
66751
66752         [BZ #14218]
66753         * manual/argp.texi (Argp): Reword argp_parse description slightly.
66754
66755 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
66756
66757         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
66758         (FE_UPWARD, FE_DOWNWARD): Don't define.
66759         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
66760         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
66761
66762         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
66763         reading it.
66764         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
66765         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
66766
66767 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
66768
66769         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
66770         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
66771         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
66772         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
66773
66774 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
66775
66776         [BZ #14117]
66777         * sysdeps/i386/fpu/bits/fenv.h: Removed.
66778         * sysdeps/i386/fpu/Implies: New file.
66779         * sysdeps/x86_64/fpu/Implies: Likewise.
66780         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
66781         * sysdeps/x86/fpu/bits/fenv.h: This.
66782
66783         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
66784         __SSE_MATH__.
66785
66786 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
66787
66788         [BZ #14134]
66789         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
66790         character 0xffff that matches the last element of the
66791         conversion table.
66792
66793 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66794
66795         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
66796         fmodl commit.
66797
66798 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66799
66800         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
66801         values higher than 25.6283.
66802
66803 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66804
66805         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
66806         subnormal exponent extraction and add some __builtin_expect.
66807         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
66808         Fix for subnormal mantissa calculation.
66809
66810 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
66811
66812         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
66813         cpu2 is -1 and errno is not ENOSYS.
66814
66815 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
66816
66817         [BZ #14117]
66818         * sysdeps/i386/i486/bits/string.h: Renamed to ...
66819         * sysdeps/x86/bits/string.h: This.
66820         * sysdeps/x86_64/bits/string.h: Removed.
66821
66822         * sysdeps/i386/i486/bits/string.h: Define inline functions only
66823         if not compiling for x86-64, but compiling for >= i486.
66824
66825         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
66826         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
66827
66828         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
66829         New macro from Linux kernel 3.4.0.
66830         (FP_XSTATE_MAGIC2): Likewise.
66831         (FP_XSTATE_MAGIC2_SIZE): Likewise.
66832         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
66833         (struct _fpx_sw_bytes): New struct.
66834         (struct _xsave_hdr): Likewise.
66835         (struct _ymmh_state): Likewise.
66836         (struct _xstate): Likewise.
66837
66838         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
66839         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
66840         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
66841         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
66842         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
66843         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
66844
66845         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
66846         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
66847         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
66848         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
66849         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
66850         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
66851
66852 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66853
66854         [BZ #13743]
66855         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
66856         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
66857         (sysdep_headers): Include sys/platform/ppc.h.
66858         * sysdeps/powerpc/test-gettimebase.c: Test for
66859         __ppc_get_timebase() to catch future ISA opcode/insn changes.
66860         * manual/Makefile (appendices): Include platform.texi.
66861         * manual/contrib.texi (Contributors): Update @node pointers.
66862         * manual/maint.texi (Maintenance): Likewise.
66863         (Platform): New node.
66864         * manual/platform.texi: New file.  Document the new features.
66865
66866 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
66867             Jakub Jelinek  <jakub@redhat.com>
66868
66869         [BZ #14188]
66870         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
66871         where __builtin_expect is unavailable.
66872
66873 2012-06-03  David S. Miller  <davem@davemloft.net>
66874
66875         * stdlib/longlong.h: Updated from GCC.
66876
66877 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
66878
66879         [BZ #14042]
66880         * sysdeps/powerpc/powerpc32/mcount.c: New file.
66881         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
66882         __mcount_internal.
66883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
66884         (GLIBC_2.16): Likewise.
66885
66886 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
66887
66888         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
66889
66890 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
66891
66892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
66893         (default-abi): New variable.
66894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
66895         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
66896         variable.
66897         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
66898         Likewise.
66899         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
66900         Likewise.
66901         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
66902         Likewise.
66903
66904         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
66905         definition.  Document in comment.
66906
66907 2012-06-01  David S. Miller  <davem@davemloft.net>
66908
66909         * stdlib/longlong.h: Updated from GCC.
66910
66911 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
66912
66913         [BZ #14117]
66914         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
66915         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
66916         sys/debugreg.h sys/io.h here.
66917         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
66918         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
66919         sys/io.h.
66920         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
66921         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
66922         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
66923         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
66924         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
66925         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
66926
66927         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
66928         Define only if __x86_64__ is defined.
66929
66930 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
66931
66932         [BZ #14048]
66933         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
66934         Use int64_t for variable i.
66935         * math/libm-test.inc (fmod_test): Add more tests.
66936
66937         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
66938         z computation is not scheduled after fetestexcept.
66939         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
66940         Use math_force_eval instead of asm to ensure calculation scheduled
66941         before exception test.
66942         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
66943         Ensure a1 + u.d computation is not scheduled after fetestexcept.
66944
66945 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
66946
66947         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
66948         computation is not scheduled after fetestexcept.
66949
66950 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
66951
66952         [BZ #14117]
66953         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
66954         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
66955
66956 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
66957
66958         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
66959         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
66960
66961 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
66962
66963         [BZ #14117]
66964         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
66965         <bits/wordsize.h>.
66966         (__WCHAR_MIN): Support __WORDSIZE == 64.
66967         (__WCHAR_MAX): Likewise.
66968
66969         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
66970         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
66971
66972         [BZ #14183]
66973         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
66974         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
66975
66976         [BZ #14117]
66977         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
66978         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
66979
66980         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
66981         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
66982
66983         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
66984         Defined to 1 if __x86_64__ isn't defined.
66985         (_STAT_VER_LINUX_OLD): New.
66986         (st_atime): Remove duplicate.
66987         (st_mtime): Likewise.
66988         (st_ctime): Likewise.
66989
66990 2012-05-31  David S. Miller  <davem@davemloft.net>
66991
66992         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
66993         entries.
66994
66995 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
66996
66997         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
66998         gen-libm-test.pl.
66999
67000         [BZ #14132]
67001         * elf/dl-reloc.c: Include <_itoa.h>.
67002         (_dl_reloc_bad_type): Remove use of INTUSE.
67003         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
67004         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
67005         * stdio-common/psiginfo.c (psiginfo): Likewise.
67006         * stdio-common/psignal.c (psignal): Likewise.
67007         * string/strsignal.c (strsignal): Likewise.
67008         * include/signal.h (_sys_siglist): Declare hidden proto.
67009         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
67010         INTVARDEF with libc_hidden_data_def.
67011         * stdio-common/itoa-udigits.c: Likewise.
67012         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
67013         (_itoa_lower_digits_internal): Remove declaration.
67014         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
67015         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
67016         (_sys_sigabbrev_internal): Remove aliases.
67017         (_sys_siglist): Define hidden alias.
67018
67019 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
67020
67021         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67022         bits/sysctl.h.
67023
67024 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
67025
67026         [BZ #14117]
67027         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
67028         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
67029
67030         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
67031         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
67032         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
67033         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
67034         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
67035         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
67036
67037         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
67038         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
67039         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
67040
67041         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
67042         with __addr.
67043         (insw): Likewise.
67044         (insl): Likewise.
67045         (outsb): Likewise.
67046         (outsw): Likewise.
67047         (outsl): Likewise.
67048
67049         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
67050         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
67051         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
67052
67053         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
67054         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
67055         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
67056         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
67057         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
67058         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
67059
67060         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
67061         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
67062
67063         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
67064         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
67065
67066         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
67067         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
67068         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
67069
67070         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
67071         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
67072         to ...
67073         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
67074
67075         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
67076         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
67077         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
67078
67079         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
67080         for x86-64.
67081         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
67082
67083 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
67084
67085         * math/math.h (M_El): Use two more decimal places.
67086         (M_LOG2El): Likewise.
67087         (M_LOG10El): Likewise.
67088         (M_LN2l): Likewise.
67089         (M_LN10l): Likewise.
67090         (M_PIl): Likewise.
67091         (M_PI_2l): Likewise.
67092         (M_PI_4l): Likewise.
67093         (M_1_PIl): Likewise.
67094         (M_2_PIl): Likewise.
67095         (M_2_SQRTPIl): Likewise.
67096         (M_SQRT2l): Likewise.
67097         (M_SQRT1_2l): Likewise.
67098
67099 2012-05-31  David S. Miller  <davem@davemloft.net>
67100
67101         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
67102         values between float registers.
67103         * sysdeps/sparc/sparc64/memset.S: Likewise.
67104         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
67105
67106 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
67107
67108         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
67109         -D_FORTIFY_SOURCE=1.
67110         (CPPFLAGS-tst-longjmp_chk.c): Define.
67111         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
67112         (CPPFLAGS-tst-longjmp_chk2.c): Define.
67113         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
67114         CFLAGS-tst-wchar-h.c.
67115
67116 2012-05-31  Marek Polacek  <polacek@redhat.com>
67117
67118         [BZ #14132]
67119         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
67120         __endmntent_internal): Remove declaration.
67121         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
67122         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
67123         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
67124
67125 2012-05-30  David S. Miller  <davem@davemloft.net>
67126
67127         * sysdeps/sparc/sparc32/soft-fp/q_util.c
67128         (___Q_simulate_exceptions): Use real FP ops rather than writing
67129         into the %fsr.
67130         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
67131         Likewise.
67132
67133 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67134
67135         [BZ #14117]
67136         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
67137         * sysdeps/x86/bits/xtitypes.h: This.
67138
67139         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
67140         * sysdeps/x86/bits/wordsize.h: This.
67141
67142         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
67143         * sysdeps/x86/bits/huge_vall.h: This.
67144
67145         * sysdeps/i386/bits/select.h: Removed.
67146         * sysdeps/x86_64/bits/select.h: Renamed to ...
67147         * sysdeps/x86/bits/select.h: This.
67148
67149         * sysdeps/i386/bits/setjmp.h: Removed.
67150         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
67151         * sysdeps/x86/bits/setjmp.h: This.
67152
67153         * sysdeps/i386/bits/mathdef.h: Removed.
67154         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
67155         * sysdeps/x86/bits/mathdef.h: This.
67156
67157 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
67158
67159         [BZ #14132]
67160         * include/sys/socket.h (__connect_internal)
67161         (__libc_sa_len_internal): Remove declaration.
67162         (__connect, __libc_sa_len): Declare hidden_proto.
67163         (SA_LEN): Remove use of INTUSE.
67164         * socket/connect.c: Add libc_hidden_def.
67165         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
67166         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
67167         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
67168         alias.
67169         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
67170         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
67171         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
67172         of adding _internal alias.
67173
67174 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67175
67176         [BZ #14117]
67177         * sysdeps/i386/bits/link.h: Removed.
67178         * sysdeps/i386/bits/linkmap.h: Likewise.
67179         * sysdeps/x86_64/bits/link.h: Renamed to ...
67180         * sysdeps/x86/bits/link.h: This.
67181         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
67182         * sysdeps/x86/bits/linkmap.h: This.
67183
67184         * sysdeps/i386/bits/endian.h: Removed.
67185         * sysdeps/x86_64/bits/endian.h: Renamed to ...
67186         * sysdeps/x86/bits/endian.h: This.
67187
67188         * sysdeps/i386/bits/byteswap.h: Removed.
67189         * sysdeps/i386/bits/byteswap-16.h: Likewise.
67190         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
67191         * sysdeps/x86/bits/byteswap.h: This.
67192         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
67193         * sysdeps/x86/bits/byteswap-16.h: This.
67194         * sysdeps/i386/Implies: Add x86.
67195         * sysdeps/x86_64/Implies: Likewise.
67196
67197 2012-05-30  David S. Miller  <davem@davemloft.net>
67198
67199         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
67200         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
67201         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
67202         (FP_TRAPPING_EXCEPTIONS): Define.
67203         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
67204         (FP_TRAPPING_EXCEPTIONS): Define.
67205         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
67206         subnormals only when inexact has been signalled or underflow
67207         exceptions are enabled.
67208         (_FP_PACK_CANONICAL): Likewise.
67209
67210 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67211
67212         [BZ #14183]
67213         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
67214         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
67215
67216 2012-05-30  Richard Henderson  <rth@twiddle.net>
67217
67218         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
67219         with #ifndef NOT_IN_libc.
67220
67221         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
67222         marked to avoid plt entry.
67223
67224 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
67225
67226         [BZ #14112]
67227         * Makeconfig (default-abi): New macro.
67228         (abi-includes): Likewise.
67229         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
67230         $(abi-$(default-abi)-lib-soname) for soname if defined.
67231         ($(common-objpfx)gnu/lib-names.stmp): Generate from
67232         abi-variants.
67233         * Makefile (installed-stubs): Likewise.
67234         * include/stubs-biarch.h: Removed.
67235         * scripts/lib-names.awk: Only handle one library at a time.
67236         * scripts/soversions.awk: Remove WORDSIZE support.
67237         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
67238         entries.
67239         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
67240         Removed.
67241         (syscall-list-default-condition): Likewise.
67242         (syscall-list-default-condition): Likewise.
67243         (syscall-list-includes): Likewise.
67244         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
67245         syscall-list-* with abi-*.  Handle undefined abi-variants.
67246         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
67247         * sysdeps/unix/sysv/linux/i386/Implies: New file.
67248         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
67249         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
67250         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
67251         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
67252         Removed.
67253         (syscall-list-32-options): Likewise.
67254         (syscall-list-32-condition): Likewise.
67255         (syscall-list-64-options): Likewise.
67256         (syscall-list-64-condition): Likewise.
67257         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
67258         macro.
67259         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
67260         Renamed to ...
67261         (abi-*): This.
67262         (abi-64-ld-soname): New macro.
67263         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
67264         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
67265         Renamed to ...
67266         (abi-*): This.
67267         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
67268         * sysdeps/x86_64/x32/shlib-versions: Likewise.
67269
67270 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
67271
67272         * sysdeps/unix/sysv/linux/kernel-features.h
67273         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
67274         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
67275         include <kernel-features.h>.
67276         [!__NR_ftruncate64]: Remove conditional code.
67277         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67278         [__NR_ftruncate64]: Make code unconditional.
67279         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67280         * sysdeps/unix/sysv/linux/truncate64.c: Do not
67281         include <kernel-features.h>.
67282         [!__NR_ftruncate64]: Remove conditional code.
67283         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67284         [__NR_ftruncate64]: Make code unconditional.
67285         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
67287         include <kernel-features.h>.
67288         [!__NR_ftruncate64]: Remove conditional code.
67289         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67290         [__NR_ftruncate64]: Make code unconditional.
67291         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
67293         include <kernel-features.h>.
67294         [!__NR_ftruncate64]: Remove conditional code.
67295         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67296         [__NR_ftruncate64]: Make code unconditional.
67297         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
67298
67299         * configure.in (libc_cv_fpie): Weaken to a compile test using
67300         LIBC_TRY_CC_OPTION.
67301         * configure: Regenerated.
67302
67303 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67304
67305         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
67306         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
67307         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
67308         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
67309         Refreshed.
67310         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
67311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
67312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
67313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
67314         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
67315         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
67316         Refreshed.
67317
67318 2012-05-27  David S. Miller  <davem@davemloft.net>
67319
67320         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
67321         (___Q_zero): New.
67322         (__Q_simulate_exceptions): Return void.  Change to simulate
67323         exceptions by writing into the %fsr.
67324         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
67325         (__Qp_handle_exceptions): Likewise.
67326         (numbers): Delete.
67327         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
67328         __Qp_handle_exceptions.
67329         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
67330         __Qp_handle_exceptions.
67331         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67332         as unused and give dummy FP_RND_NEAREST initializer.
67333         (FP_INHIBIT_RESULTS): Define.
67334         (___Q_simulate_exceptions): Update declaration.
67335         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
67336         formatting.
67337         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
67338         as unused and give dummy FP_RND_NEAREST initializer.
67339         (__Qp_handle_exceptions): Update declaration.
67340         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
67341         formatting.
67342
67343 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
67344
67345         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
67346         the temporary FPU control word.
67347         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
67348         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
67349         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
67350         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
67351         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
67352         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
67353         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
67354         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
67355         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
67356         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
67357         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
67358
67359 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
67360
67361         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
67362         fields.
67363
67364 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
67365
67366         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
67367         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
67368         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
67369         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
67370         Likewise.
67371         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
67372         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
67373         Likewise.
67374
67375 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
67376
67377         * po/h.po: Update from translation team.
67378
67379 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
67380
67381         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
67382
67383         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
67384         handling of denormals.
67385         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
67386         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
67387         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
67388         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
67389         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67390         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
67391         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
67392         Likewise.
67393
67394 2012-05-26  Marek Polacek  <polacek@redhat.com>
67395
67396         [BZ #14152]
67397         * math/libm-test.inc (fma_test): Don't always expect underflow
67398         exception.
67399
67400 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
67401
67402         [BZ #12416]
67403         * elf/tst-execstack.c: Include stackinfo.h.
67404         (do_test): Adjust test case to ensure that pthread_getattr_np
67405         behaviour remains the same after marking stack executable.
67406
67407 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67408
67409         * sysdeps/unix/sysv/linux/kernel-features.h
67410         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
67411         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
67412         kernel-features.h.
67413         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67414         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67415         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
67416         kernel-features.h.
67417         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
67418         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
67419
67420 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
67421
67422         * configure.in: Define the default includes to being none.
67423         * configure: Regenerated.
67424
67425 2012-05-25  Roland McGrath  <roland@hack.frob.com>
67426
67427         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
67428         * sysdeps/x86_64/setjmp.S: Likewise.
67429         * sysdeps/i386/bsd-setjmp.S: Likewise.
67430         * sysdeps/i386/bsd-_setjmp.S: Likewise.
67431         * sysdeps/i386/setjmp.S: Likewise.
67432         * sysdeps/i386/__longjmp.S: Likewise.
67433         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
67434         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
67435
67436         * include/stap-probe.h: New file.
67437         * configure.in: Handle --enable-systemtap.
67438         * configure: Regenerated.
67439         * config.h.in (USE_STAP_PROBE): New #undef.
67440         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
67441         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
67442         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
67443
67444 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
67445
67446         [BZ #13717]
67447         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
67448         to 2.4.0 where earlier.
67449         * sysdeps/unix/sysv/linux/configure: Regenerated.
67450         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
67451         <kernel-features.h>.
67452         [__ASSUME_32BITUIDS]: Make code unconditional.
67453         [!__ASSUME_32BITUIDS]: Remove conditional code.
67454         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
67455         <kernel-features.h>.
67456         [__ASSUME_32BITUIDS]: Make code unconditional.
67457         [!__ASSUME_32BITUIDS]: Remove conditional code.
67458         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
67459         [__ASSUME_32BITUIDS]: Make code unconditional.
67460         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
67461         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
67462         <kernel-features.h>.
67463         [__ASSUME_32BITUIDS]: Make code unconditional.
67464         [!__ASSUME_32BITUIDS]: Remove conditional code.
67465         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
67466         <kernel-features.h>.
67467         [__ASSUME_32BITUIDS]: Make code unconditional.
67468         [!__ASSUME_32BITUIDS]: Remove conditional code.
67469         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
67470         <kernel-features.h>.
67471         [__ASSUME_32BITUIDS]: Make code unconditional.
67472         [!__ASSUME_32BITUIDS]: Remove conditional code.
67473         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
67474         <kernel-features.h>.
67475         [__ASSUME_32BITUIDS]: Make code unconditional.
67476         [!__ASSUME_32BITUIDS]: Remove conditional code.
67477         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
67478         <kernel-features.h>.
67479         [__ASSUME_32BITUIDS]: Make code unconditional.
67480         [!__ASSUME_32BITUIDS]: Remove conditional code.
67481         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
67482         <kernel-features.h>.
67483         [__ASSUME_32BITUIDS]: Make code unconditional.
67484         [!__ASSUME_32BITUIDS]: Remove conditional code.
67485         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
67486         <kernel-features.h>.
67487         [__ASSUME_32BITUIDS]: Make code unconditional.
67488         [!__ASSUME_32BITUIDS]: Remove conditional code.
67489         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
67490         <kernel-features.h>.
67491         [__ASSUME_32BITUIDS]: Make code unconditional.
67492         [!__ASSUME_32BITUIDS]: Remove conditional code.
67493         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
67494         <kernel-features.h>.
67495         [__ASSUME_32BITUIDS]: Make code unconditional.
67496         [!__ASSUME_32BITUIDS]: Remove conditional code.
67497         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
67498         <kernel-features.h>.
67499         [__ASSUME_32BITUIDS]: Make code unconditional.
67500         [!__ASSUME_32BITUIDS]: Remove conditional code.
67501         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
67502         <kernel-features.h>.
67503         [__NR_setresgid] (__setresgid): Do not declare.
67504         [__ASSUME_32BITUIDS]: Make code unconditional.
67505         [!__ASSUME_32BITUIDS]: Remove conditional code.
67506         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
67507         <kernel-features.h>.
67508         [__NR_setresuid] (__setresuid): Do not declare.
67509         [__ASSUME_32BITUIDS]: Make code unconditional.
67510         [!__ASSUME_32BITUIDS]: Remove conditional code.
67511         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
67512         <kernel-features.h>.
67513         [__ASSUME_32BITUIDS]: Make code unconditional.
67514         [!__ASSUME_32BITUIDS]: Remove conditional code.
67515         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
67516         <kernel-features.h>.
67517         [__ASSUME_32BITUIDS]: Make code unconditional.
67518         [!__ASSUME_32BITUIDS]: Remove conditional code.
67519         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
67520         <kernel-features.h>.
67521         [__ASSUME_32BITUIDS]: Make code unconditional.
67522         [!__ASSUME_32BITUIDS]: Remove conditional code.
67523         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
67524         <kernel-features.h>.
67525         [__ASSUME_32BITUIDS]: Make code unconditional.
67526         [!__ASSUME_32BITUIDS]: Remove conditional code.
67527         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
67528         <kernel-features.h>.
67529         [__ASSUME_32BITUIDS]: Make code unconditional.
67530         [!__ASSUME_32BITUIDS]: Remove conditional code.
67531         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
67532         <kernel-features.h>.
67533         [__ASSUME_32BITUIDS]: Make code unconditional.
67534         [!__ASSUME_32BITUIDS]: Remove conditional code.
67535         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
67536         <kernel-features.h>.
67537         [__ASSUME_32BITUIDS]: Make code unconditional.
67538         [!__ASSUME_32BITUIDS]: Remove conditional code.
67539         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
67540         <kernel-features.h>.
67541         [__ASSUME_32BITUIDS]: Make code unconditional.
67542         [!__ASSUME_32BITUIDS]: Remove conditional code.
67543         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
67544         <kernel-features.h>.
67545         [__ASSUME_32BITUIDS]: Make code unconditional.
67546         [!__ASSUME_32BITUIDS]: Remove conditional code.
67547         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
67548         <kernel-features.h>.
67549         [__ASSUME_32BITUIDS]: Make code unconditional.
67550         [!__ASSUME_32BITUIDS]: Remove conditional code.
67551         * sysdeps/unix/sysv/linux/kernel-features.h
67552         (__ASSUME_SETRESUID_SYSCALL): Remove.
67553         (__ASSUME_SETRESGID_SYSCALL): Likewise.
67554         (__ASSUME_32BITUIDS): Likewise.
67555         (__ASSUME_LDT_WORKS): Likewise.
67556         (__ASSUME_O_DIRECTORY): Likewise.
67557         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
67558         architecture but not kernel version.
67559         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
67560         (__ASSUME_MMAP2_SYSCALL): Likewise.
67561         (__ASSUME_STAT64_SYSCALL): Likewise.
67562         (__ASSUME_IPC64): Likewise.
67563         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
67564         <kernel-features.h>.
67565         [__ASSUME_32BITUIDS]: Make code unconditional.
67566         [!__ASSUME_32BITUIDS]: Remove conditional code.
67567         * sysdeps/unix/sysv/linux/opendir.c: Do not include
67568         <kernel-features.h>.
67569         [__ASSUME_O_DIRECTORY]: Make code unconditional.
67570         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
67571         132096]: Remove conditional code.
67572         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
67573         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
67574         <kernel-features.h>.
67575         [__ASSUME_32BITUIDS]: Make code unconditional.
67576         [!__ASSUME_32BITUIDS]: Remove conditional code.
67577         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
67578         <kernel-features.h>.
67579         [__ASSUME_32BITUIDS]: Make code unconditional.
67580         [!__ASSUME_32BITUIDS]: Remove conditional code.
67581         * sysdeps/unix/sysv/linux/setegid.c: Do not include
67582         <kernel-features.h>.
67583         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
67584         unconditional.
67585         (__setresgid): Do not declare.
67586         [__ASSUME_32BITUIDS]: Make code unconditional.
67587         [!__ASSUME_32BITUIDS]: Remove conditional code.
67588         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
67589         <kernel-features.h>.
67590         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
67591         unconditional.
67592         (__setresuid): Do not declare.
67593         [__ASSUME_32BITUIDS]: Make code unconditional.
67594         [!__ASSUME_32BITUIDS]: Remove conditional code.
67595         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
67596         <kernel-features.h>.
67597         [__ASSUME_32BITUIDS]: Make code unconditional.
67598         [!__ASSUME_32BITUIDS]: Remove conditional code.
67599         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
67600         <kernel-features.h>.
67601         [__ASSUME_32BITUIDS]: Make code unconditional.
67602         [!__ASSUME_32BITUIDS]: Remove conditional code.
67603
67604 2012-05-25  Richard Henderson  <rth@twiddle.net>
67605
67606         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
67607         dl_hwcap to ifunc resolver.
67608         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
67609         elf_ifunc_invoke.
67610         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
67611         dl_hwcap to ifunc resolver.
67612         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
67613
67614 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67615
67616         [BZ #14153]
67617         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
67618         for |x| <= 2**-26, not 2**-57.
67619         * math/libm-test.inc (acos_test): Do not allow spurious underflow
67620         exception.
67621
67622 2012-05-24  Jeff Law  <law@redhat.com>
67623
67624         * stdio-common/Makefile (tests): Add bug25.
67625         * stdio-common/bug25.c: New test.
67626
67627 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67628
67629         [BZ #13576]
67630         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
67631         multiple of MALLOC_ALIGNMENT in size.
67632         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
67633
67634 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67635
67636         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
67637         Require >= 256.
67638         (FILENAME_MAX): Use macro-int-constant.
67639         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
67640         (_IOFBF): Use macro-int-constant.
67641         (_IOLBF): Likewise.
67642         (_IONBF): Likewise.
67643         (SEEK_CUR): Likewise.
67644         (SEEK_END): Likewise.
67645         (SEEK_SET): Likewise.
67646         (TMP_MAX): Likewise.
67647         (EOF): Use macro-int-constant.  Require < 0.
67648         (NULL): Use macro-constant.  Require == 0.
67649         (stdin): Require type to be FILE *.
67650         (stdout): Likewise.
67651         (stderr): Likewise.
67652         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
67653         macro-int-constant.
67654         (EXIT_SUCCESS): Likewise.
67655         (NULL): Use macro-constant.  Require == 0.
67656         (RAND_MAX): Use macro-int-constant.
67657         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
67658         [C99-based standards] (strtof): Require function.
67659         [C99-based standards] (strtold): Likewise.
67660         [C99-based standards] (strtoll): Likewise.
67661         [C99-based standards] (strtoull): Likewise.
67662         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
67663         [ISO || ISO99 || ISO11] (limits.h): Likewise.
67664         [ISO || ISO99 || ISO11] (math.h): Likewise.
67665         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
67666         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
67667         [ISO || ISO99 || ISO11] (*_t): Do not allow.
67668
67669 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
67670
67671         [BZ #14132]
67672         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
67673         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
67674         * intl/dgettext.c (DCGETTEXT): Likewise.
67675         * intl/gettext.c (DCGETTEXT): Likewise.
67676         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
67677         * posix/regex_internal.h (gettext): Likewise.
67678         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
67679         Remove declaration.
67680         * include/argz.h (__argz_count_internal)
67681         (__argz_stringify_internal): Remove declaration.
67682         (__argz_count, __argz_stringify): Declare hidden proto.
67683         * intl/dcgettext.c: Remove use of INTDEF.
67684         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
67685         * string/argz-stringify.c: Likewise.
67686         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67687         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67688         Declare hidden proto.
67689         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
67690         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
67691         Declare hidden proto.
67692         * include/stdio.h (__asprintf_internal): Don't declare.
67693         (__asprintf): Don't define as macro.  Declare hidden proto.
67694         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
67695         (__fsetlocking): Declare hidden proto.
67696         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
67697         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
67698         hidden proto.
67699         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
67700         (_IO_setlinebuf): Remove use of INTUSE.
67701         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
67702         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
67703         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
67704         Remove declaration.
67705         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
67706         (_IO_do_flush): Remove use of INTUSE.
67707         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
67708         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
67709         (_IO_adjust_column, _IO_least_wmarker)
67710         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
67711         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
67712         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
67713         (_IO_default_doallocate, _IO_wdefault_doallocate)
67714         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
67715         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
67716         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
67717         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
67718         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
67719         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
67720         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
67721         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
67722         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
67723         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
67724         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
67725         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
67726         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
67727         proto.
67728         (_IO_flush_all_internal, _IO_adjust_column_internal)
67729         (_IO_default_uflow_internal, _IO_default_finish_internal)
67730         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
67731         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
67732         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
67733         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
67734         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
67735         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
67736         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
67737         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
67738         (_IO_file_close_internal, _IO_file_close_it_internal)
67739         (_IO_file_underflow_internal, _IO_file_overflow_internal)
67740         (_IO_file_init_internal, _IO_file_attach_internal)
67741         (_IO_file_fopen_internal, _IO_file_read_internal)
67742         (_IO_file_sync_internal, _IO_file_seek_internal)
67743         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
67744         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
67745         (_IO_str_underflow_internal, _IO_str_overflow_internal)
67746         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
67747         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
67748         (_IO_list_all_internal, _IO_link_in_internal)
67749         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
67750         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
67751         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
67752         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
67753         (_IO_do_write_internal, _IO_padn_internal)
67754         (_IO_getline_info_internal, _IO_getline_internal)
67755         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
67756         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
67757         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
67758         (_IO_vfscanf_internal, _IO_vfprintf_internal)
67759         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
67760         (_IO_init_internal, _IO_un_link_internal): Don't declare.
67761         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
67762         with libc_hidden_ver, remove use of INTUSE.
67763         * libio/genops.c: Likewise.
67764         * libio/freopen.c: Likewise.
67765         * libio/freopen64.c: Likewise.
67766         * libio/iofclose.c: Likewise.
67767         * libio/iofdopen.c: Likewise.
67768         * libio/iofflush.c: Likewise.
67769         * libio/iofflush_u.c: Likewise.
67770         * libio/iofgets.c: Likewise.
67771         * libio/iofgets_u.c: Likewise.
67772         * libio/iofopen.c: Likewise.
67773         * libio/iofopncook.c: Likewise.
67774         * libio/iofread.c: Likewise.
67775         * libio/iofread_u.c: Likewise.
67776         * libio/ioftell.c: Likewise.
67777         * libio/iofwrite.c: Likewise.
67778         * libio/iogetline.c: Likewise.
67779         * libio/iogets.c: Likewise.
67780         * libio/iogetwline.c: Likewise.
67781         * libio/iopadn.c: Likewise.
67782         * libio/iopopen.c: Likewise.
67783         * libio/ioseekoff.c: Likewise.
67784         * libio/ioseekpos.c: Likewise.
67785         * libio/iosetbuffer.c: Likewise.
67786         * libio/iosetvbuf.c: Likewise.
67787         * libio/ioungetc.c: Likewise.
67788         * libio/ioungetwc.c: Likewise.
67789         * libio/iovdprintf.c: Likewise.
67790         * libio/iovsprintf.c: Likewise.
67791         * libio/iovsscanf.c: Likewise.
67792         * libio/memstream.c: Likewise.
67793         * libio/obprintf.c: Likewise.
67794         * libio/oldfileops.c: Likewise.
67795         * libio/oldiofclose.c: Likewise.
67796         * libio/oldiofdopen.c: Likewise.
67797         * libio/oldiofopen.c: Likewise.
67798         * libio/oldiopopen.c: Likewise.
67799         * libio/oldstdfiles.c: Likewise.
67800         * libio/putc.c: Likewise.
67801         * libio/setbuf.c: Likewise.
67802         * libio/setlinebuf.c: Likewise.
67803         * libio/stdfiles.c: Likewise.
67804         * libio/strops.c: Likewise.
67805         * libio/vasprintf.c: Likewise.
67806         * libio/vscanf.c: Likewise.
67807         * libio/vsnprintf.c: Likewise.
67808         * libio/vswprintf.c: Likewise.
67809         * libio/wfiledoalloc.c: Likewise.
67810         * libio/wfileops.c: Likewise.
67811         * libio/wgenops.c: Likewise.
67812         * libio/wmemstream.c: Likewise.
67813         * libio/wstrops.c: Likewise.
67814         * libio/__fpurge.c: Likewise.
67815         * libio/__fsetlocking.c: Likewise.
67816         * assert/assert.c: Likewise.
67817         * debug/fgets_chk.c: Likewise.
67818         * debug/fgets_u_chk.c: Likewise.
67819         * debug/fread_chk.c: Likewise.
67820         * debug/fread_u_chk.c: Likewise.
67821         * debug/gets_chk.c: Likewise.
67822         * debug/obprintf_chk.c: Likewise.
67823         * debug/vasprintf_chk.c: Likewise.
67824         * debug/vdprintf_chk.c: Likewise.
67825         * debug/vsnprintf_chk.c: Likewise.
67826         * debug/vsprintf_chk.c: Likewise.
67827         * malloc/mtrace.c: Likewise.
67828         * misc/error.c: Likewise.
67829         * misc/syslog.c: Likewise.
67830         * stdio-common/asprintf.c: Likewise.
67831         * stdio-common/fxprintf.c: Likewise.
67832         * stdio-common/getw.c: Likewise.
67833         * stdio-common/isoc99_fscanf.c: Likewise.
67834         * stdio-common/isoc99_scanf.c: Likewise.
67835         * stdio-common/isoc99_vfscanf.c: Likewise.
67836         * stdio-common/isoc99_vscanf.c: Likewise.
67837         * stdio-common/isoc99_vsscanf.c: Likewise.
67838         * stdio-common/printf-prs.c: Likewise.
67839         * stdio-common/printf_fp.c: Likewise.
67840         * stdio-common/printf_fphex.c: Likewise.
67841         * stdio-common/printf_size.c: Likewise.
67842         * stdio-common/putw.c: Likewise.
67843         * stdio-common/scanf.c: Likewise.
67844         * stdio-common/sprintf.c: Likewise.
67845         * stdio-common/tmpfile.c: Likewise.
67846         * stdio-common/vfprintf.c: Likewise.
67847         * stdio-common/vfscanf.c: Likewise.
67848         * stdlib/strfmon_l.c: Likewise.
67849         * sunrpc/openchild.c: Likewise.
67850         * sunrpc/xdr_stdio.c: Likewise.
67851         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
67852         * sysdeps/mach/hurd/tmpfile.c: Likewise.
67853
67854 2012-05-24  Roland McGrath  <roland@hack.frob.com>
67855
67856         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
67857
67858         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
67859         in the third column, to generate for the shared library an IFUNC
67860         that uses _dl_vdso_vsym.
67861         * Makerules (COMPILE.c, compile-stdin.c): New variables.
67862         * Makeconfig (object-suffixes-noshared): New variable.
67863
67864         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
67865         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
67866         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
67867         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
67868
67869         [BZ #14132]
67870         * include/sys/time.h (__gettimeofday): Remove macro.
67871         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
67872         * time/gettimeofday.c (__gettimeofday): Remove #undef.
67873         Remove INTDEF.
67874         (__gettimeofday): Add libc_hidden_def.
67875         (gettimeofday): Add libc_hidden_weak.
67876         * sysdeps/mach/gettimeofday.c: Likewise.
67877         * sysdeps/posix/gettimeofday.c: Likewise.
67878         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
67879         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
67880         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
67881         (__gettimeofday_internal): Remove strong_alias.
67882         (__gettimeofday): Add libc_hidden_def.
67883         (gettimeofday): Add libc_hidden_weak.
67884         * sysdeps/unix/syscalls.list (gettimeofday):
67885         Remove __gettimeofday_internal alias.
67886
67887 2012-05-24  Daniel Jacobowitz  <drow@false.org>
67888             H.J. Lu  <hongjiu.lu@intel.com>
67889
67890         [BZ #12495]
67891         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
67892         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
67893         (largebin_index_32_big): New.
67894         (largebin_index): Use it for 16-byte alignment.
67895         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
67896         correction with front_misalign.
67897
67898 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
67899
67900         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
67901         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
67902         Likewise.
67903         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
67904         Likewise.
67905         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
67906         Likewise.
67907         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
67908         Likewise.
67909         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
67910         Likewise.
67911         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
67912         Likewise.
67913         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
67914         Likewise.
67915         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
67916         Likewise.
67917         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
67918         Likewise.
67919         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
67920         Likewise.
67921         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
67922         Likewise.
67923         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
67924         Likewise.
67925
67926         * scripts/data/c++-types-x32-linux-gnu.data: New file.
67927         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
67928
67929 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
67930
67931         [BZ #10846]
67932         [BZ #14036]
67933         * math/libm-test.inc (exp_test): Add test from bug 14036.
67934         (pow_test): Add test from bug 10846.
67935
67936         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
67937         and other flags.
67938         (special_function): Do not include flags in test name.
67939         (parse_args): Likewise.
67940         * sysdeps/i386/fpu/libm-test-ulps: Update.
67941         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67942         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
67943         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
67944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67945
67946         * math/gen-libm-test.pl (%beautify): Add entries for underflow
67947         exceptions.
67948         * math/libm-test.inc ("Philosophy"): Update comment about
67949         exception testing.
67950         (UNDERFLOW_EXCEPTION): New macro.
67951         (UNDERFLOW_EXCEPTION_OK): Likewise.
67952         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
67953         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
67954         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
67955         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
67956         (INVALID_EXCEPTION_OK): Update value.
67957         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
67958         (OVERFLOW_EXCEPTION_OK): Likewise.
67959         (IGNORE_ZERO_INF_SIGN): Likewise.
67960         (test_exceptions): Handle underflow exceptions.
67961         (acos_test): Update for underflow exception expectations.
67962         (cexp_test): Likewise.
67963         (clog_test): Likewise.
67964         (clog10_test): Likewise.
67965         (csqrt_test): Likewise.
67966         (ctan_test): Likewise.
67967         (ctanh_test): Likewise.
67968         (exp_test): Likewise.
67969         (exp10_test): Likewise.
67970         (exp2_test): Likewise.
67971         (expm1_test): Likewise.
67972         (fma_test): Likewise.
67973         (j0_test): Likewise.
67974         (jn_test): Likewise.
67975         (nexttoward_test): Likewise.
67976         (pow_test): Likewise.
67977         (scalbn_test): Likewise.
67978         (scalbln_test): Likewise.
67979         (tan_test): Likewise.
67980         (y1_test): Likewise.
67981         * sysdeps/i386/fpu/libm-test-ulps: Update.
67982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67983
67984 2012-05-23  David S. Miller  <davem@davemloft.net>
67985
67986         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
67987         (__libc_sigaction): Remove unused local variables.
67988
67989 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
67990
67991         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
67992
67993 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         mktime: avoid signed integer overflow
67996         * time/mktime.c (__mktime_internal): Do not mishandle the case
67997         where diff == INT_MIN.
67998
67999         mktime: simplify computation of average
68000         * time/mktime.c (ranged_convert): Use new time_t_avg function
68001         instead of rolling our own (probably-slower) code.
68002
68003         mktime: do not assume signed right shift propagates sign bit
68004         * time/mktime.c (isdst_differ): New static function.
68005         (__mktime_internal): No need to normalize tm_isdst now.
68006         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
68007         tm_isdst values.
68008
68009         mktime: merge another wrapv change from gnulib
68010         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
68011         from some compilers.
68012
68013         mktime: remove incorrect attempt at unusual arithmetics
68014         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
68015         The code didn't really work on such machines anyway.
68016         (TYPE_MINIMUM): Assume two's complement.
68017         (twos_complement_arithmetic): Verify that long_int and time_t
68018         are two's complement (or unsigned, in the latter case).
68019
68020         mktime: check signed shifts on long_int and time_t, too
68021         * time/mktime.c (SHR): Check that shifts work as desired
68022         on the types long_int and time_t too, as SHR is used on
68023         such types.
68024
68025         mktime: do not assume 'long' is wide enough
68026         * time/mktime.c (verify): Move decl up.
68027         (long_int): New type.
68028         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
68029         to remove assumption in the code that 'long' is wide enough to
68030         store year values.  This assumption is not true on x32 and on
68031         some non-glibc platforms.
68032
68033         mktime: merge wrapv change from gnulib
68034         * time/mktime.c (WRAPV): New macro.
68035         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
68036         (guess_time_tm, __mktime_internal): Do not assume that signed
68037         integer overflow wraps around; modern compilers generate code
68038         where this assumption is no longer valid.
68039
68040 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68041
68042         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68043         Replace "jmp L(pseudo_end)" with "ret".
68044         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
68045         Likewise.
68046
68047 2012-05-23  Andreas Jaeger  <aj@suse.de>
68048
68049         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
68050         * sysdeps/unix/sysv/linux/poll.c: Remove file.
68051
68052 2012-05-23  Andreas Jaeger  <aj@suse.de>
68053             Maximilian Attems  <max@stro.at>
68054
68055         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
68056         New macros.
68057
68058 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
68059
68060         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
68061         code so that pseudo_end is just ret and the stack pointer is
68062         correct also for static library in error case.
68063
68064 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
68065
68066         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
68067         move to syscalls.list.
68068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
68069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
68070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
68071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
68072
68073         * manual/install.texi (Running make install): Do not mention Linux
68074         kernel version for which pt_chown is not needed.
68075         (Linux): Do not mention problems with nscd with 2.0 kernels.
68076         * INSTALL: Regenerated.
68077
68078 2012-05-23  Andreas Jaeger  <aj@suse.de>
68079
68080         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
68081         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
68082         macro.
68083         * sysdeps/unix/sysv/linux/s390/bits/mman.h
68084         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68085         * sysdeps/unix/sysv/linux/sh/bits/mman.h
68086         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68087         * sysdeps/unix/sysv/linux/i386/bits/mman.h
68088         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68089         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
68090         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68091         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
68092         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
68093         * sysdeps/unix/sysv/linux/bits/in.h
68094         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
68095
68096 2012-05-22  Roland McGrath  <roland@hack.frob.com>
68097
68098         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
68099         (PREPARE_VERSION): Just use assert instead, it will be elided
68100         under [NDEBUG] anyway.
68101
68102 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68103
68104         * sysdeps/unix/sysv/linux/Makefile: Include
68105         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
68106         (sysdep_routines): Remove sysctl.
68107         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
68108         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
68109         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
68110         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
68111         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
68112
68113 2012-05-22  Andreas Jaeger  <aj@suse.de>
68114
68115         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
68116         that pseudo_end is just ret and the stack pointer is correct also
68117         for static library in error case.
68118
68119 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
68120
68121         [BZ #14122]
68122         * nss/nsswitch.c (defconfig_entries): New variable.
68123         (__nss_database_lookup): Don't leak defconfig entries.
68124         (nss_parse_service_list): Don't leak on error paths.
68125         (free_database_entries): New function.
68126         (free_defconfig): New function.
68127         (free_mem): Move common code to free_database_entries.
68128
68129 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68130
68131         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
68132         Add arch_prctl.
68133         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
68134
68135         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
68136         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
68137         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
68138         New macro.
68139         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
68140         (INTERNAL_SYSCALL_TYPES): Likewise.
68141         (LOAD_ARGS_TYPES_[1-6]): Likewise.
68142         (LOAD_REGS_TYPES_[1-6]): Likewise.
68143         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
68144         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
68145
68146 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68147
68148         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
68149         copysignl for GLIBC_2_0.
68150         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
68151         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
68152         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
68153         logbl for GLIBC_2_0.
68154         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
68155         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
68156
68157 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68158
68159         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
68160         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68161
68162         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
68163         Use "neg %eax".
68164
68165         * time/mktime.c: Update copyright years.
68166
68167 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         mktime: merge comment-quoting-style change from gnulib
68170         * time/mktime.c: Quote 'like this' in comments.
68171         The GNU coding standards suggest that we no longer quote `like this',
68172         as "`" and "'" are typically rendered asymmetrically nowadays.
68173         The typical gnulib style is to quote 'like this' when quoting
68174         code, and "like this" when quoting English.
68175
68176         * time/mktime.c (compile-command): Add "-I.".
68177
68178         mktime: merge mktime-internal.h change from gnulib
68179         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
68180
68181         mktime: merge time_r change from gnulib
68182         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
68183
68184         mktime: merge DEBUG change from gnulib
68185         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
68186         case system <time.h> has a #define.
68187
68188         mktime: merge <sys/types.h> change from gnulib
68189         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
68190         since <time.t> is now guaranteed to define time_t.
68191
68192         mktime: merge HAVE_CONFIG_H change from gnulib
68193         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
68194
68195 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
68196
68197         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68198         Use "neg %eax".
68199
68200         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
68201         __rlim_t cast.
68202         (struct rusage): Use anonymous union to pad each field to
68203         __syscall_slong_t.
68204
68205 2012-05-21  David S. Miller  <davem@davemloft.net>
68206
68207         * Makefules (o-iterator): Remove .s cases.
68208         (compile-command.s): Delete.
68209         (COMPILE.s): Delete.
68210         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
68211
68212 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
68213
68214         * configure.in (libc_cv_predef_stack_protector): Only consider
68215         "foobar" and "__stack_chk_fail" lines in libc_undefs.
68216         * configure: Regenerated.
68217
68218 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68219
68220         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
68221         New macro.  Use R*LP on int and pointer.
68222         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
68223         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
68224         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
68225         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
68226
68227         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
68228         [__WORDSIZE_TIME64_COMPAT32] instead of
68229         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
68230         (struct utmp): Likewise.
68231         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
68232         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
68233         Renamed to ...
68234         (__WORDSIZE_TIME64_COMPAT32): This.
68235         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
68236         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
68237         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
68238         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
68239         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
68240         (__WORDSIZE_TIME64_COMPAT32): New macro.
68241
68242 2012-05-21  Andreas Jaeger  <aj@suse.de>
68243
68244         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
68245         only if [SHARED]. Add prototype for __wcschr_ia32.
68246
68247 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68248
68249         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
68250         of %rbp unmolested in the jmp_buf while mangling the low bits.
68251         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
68252         unmolested high bits of %rbp while demangling the low bits.
68253         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
68254
68255 2012-05-21  Andreas Jaeger  <aj@suse.de>
68256
68257         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
68258         * sunrpc/svc_simple.c: Use it for registerrpc.
68259         * sunrpc/xcrypt.c: Use it for passwd2des.
68260
68261         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
68262
68263 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68264
68265         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
68266         Don't define if [__SYSCALL_WORDSIZE != 32].
68267         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
68268         New macro.
68269
68270 2012-05-21  Bruno Haible  <bruno@clisp.org>
68271             Andreas Jaeger  <aj@suse.de>
68272
68273         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
68274         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
68275         inptr and inend for must_buffer_ch.
68276         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
68277         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
68278         * stdio-common/Makefile (tests): Remove bug15.
68279         (bug15-ENV): Remove macro.
68280         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
68281         anymore.
68282
68283 2012-05-19  Andreas Jaeger  <aj@suse.de>
68284             Roland McGrath  <roland@hack.frob.com>
68285
68286         * manual/contrib.texi: Completely rewritten. It contains now an
68287         alphabetical list of contributors and their contributions.
68288
68289 2012-05-21  Richard Henderson  <rth@twiddle.net>
68290
68291         * misc/getauxval.c (__getauxval): Use unsigned long int.
68292         * misc/sys/auxv.h: Include <sys/cdefs.h>.
68293         (getauxval): Use unsigned long int.
68294
68295 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
68296
68297         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
68298
68299 2012-05-21  Roland McGrath  <roland@hack.frob.com>
68300
68301         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
68302         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
68303         __alignof__ (long double).
68304
68305 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68306
68307         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68308
68309 2012-05-20  Richard Henderson  <rth@twiddle.net>
68310
68311         * misc/getauxval.c: New file.
68312         * misc/sys/auxv.h: New file.
68313         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
68314         (routines): Add getauxval.
68315         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
68316         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
68317         * elf/dl-sysdep.c (_dl_auxv): Remove.
68318         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
68319         * elf/dl-support.c (_dl_auxv): New variable.
68320         (_dl_aux_init): Initialize it.
68321         * manual/startup.texi (Auxiliary Vector): New node.
68322         * sysdeps/generic/bits/hwcap.h: New file.
68323         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
68324         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
68325         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
68326         * sysdeps/sparc/sysdep.h: ... here.  Include it.
68327         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
68328         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
68329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
68330         Update.
68331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
68332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
68333         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
68334         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
68335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68336         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
68337         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
68338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
68339
68340 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68341
68342         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68343
68344 2012-05-19  David S. Miller  <davem@davemloft.net>
68345
68346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68347
68348 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68349
68350         [BZ #14123]
68351         * math/s_ccosh.c: Include <float.h>
68352         (__ccosh): Avoid internal overflow calculating sinh and cosh
68353         values before multiplying by sin and cos values.
68354         * math/s_ccoshf.c: Likewise.
68355         * math/s_ccoshl.c: Likewise.
68356         * math/s_csin.c: Likewise.
68357         * math/s_csinf.c: Likewise.
68358         * math/s_csinl.c: Likewise.
68359         * math/s_csinh.c: Likewise.
68360         * math/s_csinhf.c: Likewise.
68361         * math/s_csinhl.c: Likewise.
68362         * math/libm-test.inc (ccos_test): Add more tests.
68363         (ccosh_test): Likewise.
68364         (csin_test): Likewise.
68365         (csinh_test): Likewise.
68366         * sysdeps/i386/fpu/libm-test-ulps: Update.
68367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68368
68369 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
68370
68371         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
68372         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
68373
68374         * sysdeps/x86_64/x32/_itoa.h: Add comment.
68375
68376 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
68377
68378         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
68379         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
68380         * sysdeps/powerpc/soft-fp/Versions: Likewise.
68381         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
68382         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
68383         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
68384         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
68385         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
68386         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
68387         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
68388         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
68389         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
68390         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
68391         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
68392         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
68393         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
68394         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
68395         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
68396         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
68397         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
68398         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
68399         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
68400         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
68401         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
68402         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
68403         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
68404         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
68405         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
68406         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
68407         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
68408         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
68409
68410 2012-05-18  Andreas Jaeger  <aj@suse.de>
68411
68412         * csu/.gitignore: Delete.
68413
68414 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68415
68416         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
68417         (timex): Use __syscall_slong_t.
68418
68419 2012-05-18  Andreas Jaeger  <aj@suse.de>
68420             Carlos O'Donell  <carlos_odonell@mentor.com>
68421
68422         * manual/install.texi (Configuring and compiling): Update
68423         description about files modified in the source directory.
68424         * INSTALL: Regenerated.
68425
68426 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68427
68428         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
68429         value.  Use "or" to set return value to -1.
68430         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
68431         negate return value.
68432
68433 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
68434
68435         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
68436         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
68437         failure if the compiler has Graphite support disabled.
68438         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
68439         Likewise.
68440         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
68441         (CFLAGS-memmove.c): Likewise.
68442         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
68443         Likewise.
68444
68445 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
68446
68447         * sysdeps/x86_64/x32/_itoa.h: New file.
68448
68449         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
68450         getdents system call only if kernel and user dirents have the
68451         same d_ino and d_off.
68452
68453         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
68454         LLONG_MAX != LONG_MAX.
68455         (_itoa_word): Use _ITOA_WORD_TYPE on value.
68456         (_fitoa_word): Likewise.
68457
68458         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
68459         years.
68460         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
68461         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
68462         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
68463
68464         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
68465         include <bits/wordsize.h>.  Check __x86_64__ instead of
68466         __WORDSIZE.
68467         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
68468         if __x86_64__ is defined.  Use anonymous union on fpstate.
68469
68470         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
68471         anonymous union.
68472
68473 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
68474
68475         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
68476         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
68477         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
68478         Refer to _rtld_local_ro instead of _rtld_global_ro.
68479         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
68480         Likewise.
68481         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
68482         Likewise.
68483         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
68484         Likewise.
68485         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
68486         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
68487         of _rtld_global, and rtld_progname instead of _dl_argv[0].
68488
68489         [BZ #10882]
68490         * sysdeps/powerpc/powerpc32/dl-machine.c
68491         (__elf_machine_runtime_setup) [PROF]: Don't reference
68492         _dl_prof_resolve.
68493
68494 2012-05-18  Andreas Jaeger  <aj@suse.de>
68495
68496         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
68497         function only available for GCCs before 3.4 since GCC 3.4
68498         introduced a builtin.
68499         (lrint): Likewise.
68500         (llrintf): Likewise.
68501         (llrint): Likewise.
68502         (fmaxf): Likewise.
68503         (fmax): Likewise.
68504         (fminf): Likewise.
68505         (fmin): Likewise.
68506         (rint): Likewise.
68507         (rintf): Likewise.
68508         (nearbyint): Likewise.
68509         (nearbyintf): Likewise.
68510         (ceil): Likewise.
68511         (ceilf): Likewise.
68512         (floor): Likewise.
68513         (floorf): Likewise.
68514
68515 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68516
68517         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
68518         on both fields and cast pointer to __syscall_ulong_t.
68519
68520         * bits/types.h (__fsword_t): New type.
68521         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
68522         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
68523         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68524         (__FSWORD_T_TYPE): Likewise.
68525         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68526         (__FSWORD_T_TYPE): Likewise.
68527         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68528         (__FSWORD_T_TYPE): Likewise.
68529         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
68530         (__FSWORD_T_TYPE): Likewise.
68531         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
68532         __SWORD_TYPE with __fsword_t.
68533         (statfs64): Likewise.
68534
68535 2012-05-17  David S. Miller  <davem@davemloft.net>
68536
68537         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
68538
68539 2012-05-17  Andreas Jaeger  <aj@suse.de>
68540
68541         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
68542         warning.
68543
68544 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68545
68546         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
68547
68548 2012-05-17  Andreas Jaeger  <aj@suse.de>
68549
68550         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
68551         when it is used.
68552
68553 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68554
68555         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
68556
68557 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
68558
68559         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
68560         * sysdeps/x86_64/tst-mallocalign1.c: New file.
68561
68562 2012-05-17  Andreas Jaeger  <aj@suse.de>
68563             Carlos O'Donell  <carlos_odonell@mentor.com>
68564
68565         [BZ #14059]
68566         * sysdeps/x86_64/multiarch/init-arch.h
68567         (bit_YMM_Usable): Rename to...
68568         (bit_AVX_Usable): ... this.
68569         (bit_FMA4_Usable): New macro.
68570         (bit_XMM_state): New macro.
68571         (bit_YMM_state): New macro.
68572         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
68573         [__ASSEMBLER__] (index_AVX_Usable): ... this.
68574         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
68575         (CPUID_OSXSAVE): New macro.
68576         (CPUID_AVX): New macro.
68577         (CPUID_FMA4): New macro.
68578         (index_YMM_Usable): Rename to...
68579         (index_AVX_Usable): ... this.
68580         (HAS_AVX): Use HAS_ARCH_FEATURE.
68581         (HAS_FMA4): Likewise.
68582         (HAS_YMM_USABLE): Remove.
68583         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
68584         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
68585         are present.
68586         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
68587         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
68588         * sysdeps/x86_64/multiarch/Makefile: Likewise.
68589         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
68590         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
68591
68592 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
68593
68594         * math/libm-test.c: Support platforms without multiple rounding modes.
68595         * math/bug-nextafter.c: Support platforms without FP exceptions.
68596         * math/bug-nexttoward.c: Likewise.
68597         * math/test-fenv.c: Likewise.
68598         * math/test-misc.c: Likewise.
68599         * stdlib/bug-getcontext.c: Likewise.
68600
68601 2012-05-17  Andreas Jaeger  <aj@suse.de>
68602
68603         * manual/examples/search.c (critter_cmp): Change signature to
68604         avoid warnings.
68605         * manual/string.texi (Collation Functions): Likewise.
68606
68607 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68608
68609         * bits/types.h: Fold copyright years.
68610         * bits/typesizes.h: Likewise.
68611         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
68612         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
68613         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
68614         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
68615         * time/time.h: Likewise.
68616
68617 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
68618
68619         [BZ #208]
68620         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
68621         in instead of returning them.  Return void.
68622         (__libc_mallinfo): Accumulate over all arenas.
68623         (__malloc_stats): Adjust for change in int_mallinfo interface.
68624
68625 2012-05-16  Roland McGrath  <roland@hack.frob.com>
68626
68627         [BZ #10375]
68628         * configure.in (NM): Add AC_CHECK_TOOL for it.
68629         (libc_extra_cflags): New substituted variable.
68630         Check for -fstack-protector being used implicitly.
68631         * configure: Regenerated.
68632         * config.make.in (config-extra-cflags): New variable,
68633         gets @libc_extra_cflags@.
68634         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
68635
68636         [BZ #10375]
68637         * configure.in: Check for _FORTIFY_SOURCE being predefined.
68638         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
68639         * configure: Regenerated.
68640         * config.make.in (CPPUNDEFS): New substituted variable.
68641         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
68642         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
68643         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
68644
68645 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68646
68647         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
68648         (mq_attr): Use __syscall_slong_t.
68649
68650 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68651
68652         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
68653         Check __x86_64__ instead of __WORDSIZE.
68654         (_STAT_VER_LINUX): Likewise.
68655         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
68656         __syscall_ulong_t and __syscall_slong_t.
68657         (stat64): Likewise.
68658
68659 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68660
68661         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
68662
68663 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68664
68665         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
68666
68667 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68668
68669         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
68670         __syscall_ulong_t.
68671
68672         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
68673         include <bits/wordsize.h>.  Check __x86_64__ instead of
68674         __WORDSIZE.
68675         (greg_t): Use "__extension__ long long int" if __x86_64__ is
68676         defined.
68677         (mcontext_t): Replace "unsigned long" with "unsigned long long".
68678
68679         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
68680         include <bits/wordsize.h>.  Check __x86_64__ instead of
68681         __WORDSIZE.
68682         (user_regs_struct): Use "__extension__ unsigned long long"
68683         instead of "unsigned long" if __x86_64__ is defined.
68684         (user): Likewise.  Pad after pointer field if __ILP32__ is
68685         defined.
68686
68687 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
68688
68689         * configure.in (makeinfo): Require version 4.5 or later.  Allow
68690         versions 5 to 9.
68691         * configure: Regenerated.
68692         * manual/install.texi (texinfo): Increase version requirement to
68693         4.5 or later.
68694         * INSTALL: Regenerated.
68695
68696         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
68697
68698 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
68699
68700         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
68701
68702         * sysdeps/x86_64/x32/ffs.c: New file.
68703
68704         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
68705         __syscall_ulong_t.
68706         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
68707         defined.  Use __syscall_ulong_t.
68708         (shminfo): Use __syscall_ulong_t.
68709         (shm_info): Likewise.
68710
68711         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
68712         __syscall_ulong_t.
68713
68714         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
68715         <bits/wordsize.h>.
68716         (msgqnum_t): Use __syscall_ulong_t.
68717         (msglen_t): Likewise.
68718         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
68719         __syscall_ulong_t.
68720
68721         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
68722         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68723
68724         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
68725
68726         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
68727         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
68728
68729         * sysvipc/sys/msg.h (msgbuf): Replace long int with
68730         __syscall_slong_t.
68731
68732         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
68733         include <bits/wordsize.h>.  Check __x86_64__ instead of
68734         __WORDSIZE.
68735
68736         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
68737         "unsigned long long int" if __x86_64__ is defined.
68738         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
68739
68740         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
68741         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
68742         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
68743
68744         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
68745         <stdint.h>.
68746         (GET_PC): Cast to uintptr_t first.
68747         (GET_FRAME): Likewise.
68748         (GET_STACK): Likewise.
68749
68750         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
68751         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
68752         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
68753         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
68754         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
68755         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
68756         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
68757         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
68758         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
68759         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
68760         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
68761         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
68762         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
68763         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
68764         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
68765         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
68766         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
68767         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
68768         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
68769         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
68770         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
68771         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
68772         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
68773         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
68774         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
68775         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
68776         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
68777         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
68778         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
68779
68780 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
68781
68782         * Makerules (+depfiles): Also collect depfiles from .oS in
68783         $(extra-objs).
68784         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
68785         .oS, $(libnldbl-routines)).
68786
68787         * Makerules (native-compile-mkdep-flags): Define.
68788         * sunrpc/Makefile (extra-objs): Add $(addprefix
68789         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
68790         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
68791         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
68792         calling $(make-target-directory).
68793
68794 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68795
68796         * bits/types.h (__snseconds_t): Removed.
68797         * time/time.h (struct timespec): Replace __snseconds_t with
68798         __syscall_slong_t.
68799         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
68800         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
68801         Likewise.
68802         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68803         (__SNSECONDS_T_TYPE): Likewise.
68804         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68805         (__SNSECONDS_T_TYPE): Likewise.
68806         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68807         (__SNSECONDS_T_TYPE): Likewise.
68808
68809 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68810
68811         * sysdeps/mach/hurd/bits/typesizes.h
68812         (__SYSCALL_SLONG_TYPE): New macro.
68813         (__SYSCALL_ULONG_TYPE): Likewise.
68814
68815 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68816
68817         * bits/types.h (__syscall_slong_t): New type.
68818         (__syscall_ulong_t): Likewise.
68819
68820         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
68821         (__SYSCALL_ULONG_TYPE): Likewise.
68822         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
68823         (__SYSCALL_SLONG_TYPE): Likewise.
68824         (__SYSCALL_ULONG_TYPE): Likewise.
68825         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
68826         (__SYSCALL_SLONG_TYPE): Likewise.
68827         (__SYSCALL_ULONG_TYPE): Likewise.
68828         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
68829         (__SYSCALL_SLONG_TYPE): Likewise.
68830         (__SYSCALL_ULONG_TYPE): Likewise.
68831
68832 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68833
68834         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
68835         Add sigaltstack-offsets.sym.
68836         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
68837         <sigaltstack-offsets.h>.
68838         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
68839         longjmp_msg pointer.
68840         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
68841         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
68842         signal stack.
68843         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
68844
68845 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
68846
68847         * elf/stackguard-macros.h: Remove file.
68848         * sysdeps/generic/stackguard-macros.h: New file.
68849         * sysdeps/i386/stackguard-macros.h: Likewise.
68850         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
68851         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
68852         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
68853         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
68854         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
68855         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
68856         * sysdeps/x86_64/stackguard-macros.h: Likewise.
68857         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
68858         <elf/stackguard-macros.h>.
68859
68860         [BZ #14109]
68861         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
68862         __aligned__ in attribute.
68863         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
68864         (gregset_t): Likewise.
68865
68866 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68867
68868         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
68869         * sysdeps/x86_64/64/Implies-after: Here.  New file.
68870         * sysdeps/x86_64/x32/Implies-after: New file.
68871
68872 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68873
68874         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
68875         and access return value for _dl_profile_fixup.  Use R10_LP to
68876         load frame size.
68877
68878 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68879
68880         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
68881
68882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68883
68884         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
68885         * sysdeps/x86_64/x32/sysdep.h: New file.
68886
68887 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68888
68889         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
68890         * sysdeps/x86_64/setjmp.S: Likewise.
68891
68892 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68893
68894         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
68895         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
68896         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
68897         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
68898         remove unused global constant.
68899
68900 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
68901
68902         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
68903         include of <not-cancel.h>.
68904
68905 2012-05-15  Roland McGrath  <roland@hack.frob.com>
68906
68907         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
68908
68909 2012-05-15  Jeff Law  <law@redhat.com>
68910             Andreas Jaeger  <aj@suse.de>
68911
68912         [BZ #13594]
68913         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
68914         out from...
68915         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
68916         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
68917         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
68918         code changing __hst_map_handle.map.
68919
68920 2012-05-15  Roland McGrath  <roland@hack.frob.com>
68921
68922         * configure.in (sysnames): Look for Implies-before and Implies-after
68923         files.
68924         * configure: Regenerated.
68925
68926 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68927
68928         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
68929         8-byte data alignment with LP_SIZE alignment.
68930
68931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68932
68933         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
68934         into R10_LP.
68935
68936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68937
68938         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
68939
68940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68941
68942         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
68943         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
68944         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
68945         Likewise.
68946         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
68947
68948 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68949
68950         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
68951         (stackinfo_sub_sp): Likewise.
68952
68953 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68954
68955         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
68956         RAX_LP.
68957
68958 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68959
68960         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
68961         into R*_LP.
68962
68963 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68964
68965         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
68966         sizes into R*_LP.
68967
68968 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68969
68970         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
68971
68972 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68973
68974         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
68975         into R11_LP and load __x86_64_shared_cache_size_half into
68976         R8_LP.
68977
68978 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
68979
68980         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
68981         R8_LP.
68982
68983 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
68984
68985         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
68986         logb for POWER7.
68987         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
68988         logbf for POWER7.
68989         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
68990         logbl for POWER7.
68991         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
68992         powerpc32/power7/fpu/s_logb.c via #include.
68993         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
68994         powerpc32/power7/fpu/s_logbf.c via #include.
68995         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
68996         powerpc32/power7/fpu/s_logbl.c via #include.
68997
68998 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
68999
69000         * README.libm: Remove file.
69001
69002 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69003
69004         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
69005         count for x32.  Use R*_LP and omit operand-size suffix.
69006
69007 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69008
69009         * shlib-versions: Move x86_64-.*-linux.* entries to ...
69010         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
69011         * sysdeps/x86_64/x32/shlib-versions: New file.
69012
69013 2012-05-14  Roland McGrath  <roland@hack.frob.com>
69014
69015         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
69016         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
69017         Use _dl_fatal_printf instead.
69018
69019 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69020
69021         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
69022         set if not set by the user.  Do not allow for being unset.
69023         * sysdeps/unix/sysv/linux/configure: Regenerated.
69024
69025 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69026
69027         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
69028         the `q' suffix from lea and replace .quad with ASM_ADDR.
69029
69030 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69031
69032         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
69033         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
69034         instead of $17.
69035         (PTR_DEMANGLE): Likewise.
69036
69037 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69038
69039         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
69040         (LP_OP): Likewise.
69041         (ASM_ADDR): Likewise.
69042         (RAX_LP): Likewise.
69043         (RBP_LP): Likewise.
69044         (RBX_LP): Likewise.
69045         (RCX_LP): Likewise.
69046         (RDI_LP): Likewise.
69047         (RSI_LP): Likewise.
69048         (RSP_LP): Likewise.
69049         (R8_LP): Likewise.
69050         (R9_LP): Likewise.
69051         (R10_LP): Likewise.
69052         (R10_LP): Likewise.
69053         (R11_LP): Likewise.
69054         (R12_LP): Likewise.
69055         (R13_LP): Likewise.
69056         (R14_LP): Likewise.
69057         (R15_LP): Likewise.
69058
69059 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69060
69061         * sysdeps/x86_64/x32/dl-machine.h: New file.
69062
69063 2012-05-14  Andreas Jaeger  <aj@suse.de>
69064
69065         * manual/Makefile (subdir): Remove export of subdir.
69066         (all): Remove target.
69067         (.PHONY): Remove all from list.
69068         (mkinstalldirs): Remove.
69069         (.PHONY): Remove installdirs from list.
69070         ($(inst_infodir)/libc.info): Use make-target-directory.
69071         (installdirs): Remove.
69072         (subdir_%): Remove.
69073         (glibc-targets): Remove.
69074         (lib): Remove.
69075         (stubs): Remove.
69076         ($(objpfx)stubs ../po/manual.pot): Remove.
69077         ($(objpfx)stamp%): Remove.
69078         (make-target-directory): Remove.
69079         (subdir_install): Remove.
69080         (routines): Remove.
69081         (aux): Remove.
69082         (sources): Remove.
69083         (objects): Remove.
69084         (headers): Remove.
69085
69086         [BZ #13750]
69087         * manual/.gitignore: Remove, it's not needed anymore.
69088         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
69089         all files in it.
69090         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
69091         directory.
69092         (texis): Renamed to $(objpfx)texis.
69093         (texis-path): New, contains path to generated files.
69094         (chapters.%): Use texis-path for complete path, add extra argument
69095         libc-texinfo.sh.
69096         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
69097         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
69098         (summary,texi, stamp-summary): Use complete path of
69099         files. Generate files in build dir.
69100         (dir-add.texi): Build in build dir.
69101         (libm-err.texi,stamp-libm-err): Likewise.
69102         (version.texi, stamp-version): Likewise.
69103         (.%c.texi): Likewise.
69104         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
69105         (mostlyclean): Remove target.
69106         (realclean): Remove target.
69107         (generated): Add new variable with contents from mostlyclean and
69108         realclean, remove entries duplicated in common-mostlyclean, add
69109         stamp-libm-err and stamp-version.
69110         (generated-dirs): Add libc directory.
69111         ($(inst_infodir)/libc.info): Install files from build dir.
69112
69113         * manual/install.texi (Configuring and compiling): Adjust since
69114         the info files are not part of the tar ball anymore.
69115
69116 2012-05-14  Andreas Jaeger  <aj@suse.de>
69117
69118         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
69119         variable.
69120
69121 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
69122
69123         [BZ #13717]
69124         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
69125         to 2.2.0 where earlier.
69126         * sysdeps/unix/sysv/linux/configure: Regenerated.
69127         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
69128         Remove conditional code.
69129         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
69130         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
69131         Remove conditional code.
69132         [!__NR_lchown]: Likewise.
69133         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69134         [__NR_lchown]: Likewise.
69135         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
69136         comment referencing __ASSUME_LCHOWN_SYSCALL.
69137         * sysdeps/unix/sysv/linux/i386/sigaction.c
69138         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69139         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69140         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
69141         Remove conditional code.
69142         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
69143         (__protocol_available): Remove #if 0 code.
69144         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
69145         conditional code.
69146         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
69147         * sysdeps/unix/sysv/linux/kernel-features.h
69148         (__ASSUME_GETCWD_SYSCALL): Don't define.
69149         (__ASSUME_REALTIME_SIGNALS): Likewise.
69150         (__ASSUME_PREAD_SYSCALL): Likewise.
69151         (__ASSUME_PWRITE_SYSCALL): Likewise.
69152         (__ASSUME_POLL_SYSCALL): Likewise.
69153         (__ASSUME_LCHOWN_SYSCALL): Likewise.
69154         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
69155         non-SPARC.
69156         (__ASSUME_SIOCGIFNAME): Don't define.
69157         (__ASSUME_MSG_NOSIGNAL): Likewise.
69158         (__ASSUME_SENDFILE): Define unconditionally.
69159         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
69160         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
69161         conditional code.
69162         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
69163         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
69164         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69165         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69166         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
69167         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
69168         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
69169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
69170         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69171         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
69173         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69174         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
69176         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69177         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
69179         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69180         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
69182         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69183         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
69185         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
69186         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
69188         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69189         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
69191         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69192         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69193         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
69194         Remove conditional code.
69195         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69196         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69197         Remove conditional code.
69198         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69199         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
69200         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
69201         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69202         Remove conditional code.
69203         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69204         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
69205         Remove conditional code.
69206         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69207         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
69208         Remove conditional code.
69209         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69210         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
69211         Remove conditional code.
69212         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
69213         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
69214         Remove conditional code.
69215         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69216         * sysdeps/unix/sysv/linux/sh/pwrite64.c
69217         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
69218         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
69219         * sysdeps/unix/sysv/linux/sigaction.c
69220         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69221         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69222         * sysdeps/unix/sysv/linux/sigpending.c
69223         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69224         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69225         * sysdeps/unix/sysv/linux/sigprocmask.c
69226         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69227         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69228         * sysdeps/unix/sysv/linux/sigsuspend.c
69229         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
69230         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
69231         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
69232         (__libc_missing_rt_sigs): Remove.
69233         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
69234         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
69235         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
69236         Remove conditional code.
69237         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
69238         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
69239         return 1.
69240         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
69241         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
69242         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
69243         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
69244
69245 2012-05-14  Andreas Jaeger  <aj@suse.de>
69246
69247         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
69248         it's not used in glibc.
69249         (__coshm1): Likewise.
69250         (__acosh1p): Likewise.
69251         (__sgn): Likewise.
69252
69253         * manual/string.texi (Copying and Concatenation): Add missing
69254         variable in concat example.
69255         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
69256
69257 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69258
69259         [BZ #14103]
69260         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
69261         __builtin_clzl with __builtin_clzll.
69262
69263 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69264
69265         [BZ #14104]
69266         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
69267         libc_freeres_ptr.
69268
69269 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69270
69271         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
69272         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
69273         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
69274         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
69275
69276 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
69277
69278         * NEWS: Update ia64 info.
69279
69280 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
69281
69282         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
69283         used as bcopy.
69284
69285 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
69286
69287         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
69288         * sysdeps/unix/syscalls.list (dup3): Likewise.
69289         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
69290         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
69291
69292 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69293
69294         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
69295         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
69296
69297 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
69298
69299         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
69300         thread pointer.
69301         (TLS_IE): Use mov/add instead of movq/addq to load thread
69302         pointer.
69303         (TLS_GD_PREFIX): New.
69304         (TLS_GD): Use it.
69305
69306 2012-05-11  David S. Miller  <davem@davemloft.net>
69307
69308         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
69309         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
69310         (_FPU_SETCW): Likewise.
69311
69312 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69313
69314         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
69315         is 32-byte aligned.
69316
69317 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
69318
69319         [BZ #11837]
69320         * iconvdata/gb18030.c: Update tables.
69321         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
69322         characters specially.
69323         (BODY for TO_LOOP): Add encoding of missing ranges.
69324
69325 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
69326
69327         [BZ #13673]
69328         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
69329         * sysdeps/mach/hurd/dup3.c: Likewise.
69330         * sysdeps/mach/hurd/readlinkat.c: Likewise.
69331         * sysdeps/powerpc/memmove.c:: Likewise.
69332
69333 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69334
69335         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
69336         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
69337
69338 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69339
69340         * elf/elf.h (R_X86_64_RELATIVE64): New.
69341         (R_X86_64_NUM): Updated.
69342         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
69343         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
69344         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
69345         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
69346         tst-quad1pie tst-quad2pie
69347         (modules-names): Add tst-quadmod1 tst-quadmod2.
69348         ($(objpfx)tst-quad1): New dependency.
69349         ($(objpfx)tst-quad2): Likewise.
69350         ($(objpfx)tst-quad1pie): Likewise.
69351         ($(objpfx)tst-quad2pie): Likewise.
69352         * sysdeps/x86_64/tst-quad1.c: New file.
69353         * sysdeps/x86_64/tst-quad1pie.c: New file.
69354         * sysdeps/x86_64/tst-quad2.c: Likewise.
69355         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
69356         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
69357         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
69358         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
69359         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
69360
69361 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69362
69363         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
69364         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
69365         * streams/stropts.h (t_scalar_t): Define type.
69366
69367         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
69368         (_PATH_PRESERVE): Set to "/var/lib".
69369         (_PATH_RWHODIR): Set to "/var/spool/rwho".
69370
69371         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
69372         instead of int.
69373
69374         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
69375         if __dir_mkfile succeeded.
69376
69377         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
69378         checking for _hurd_dtablesize.  Unlock it right after having
69379         finished _hurd_dtable allocation.
69380
69381 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69382
69383         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
69384         * sysdeps/mach/hurd/configure: Regenerated.
69385         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
69386         special-casing to...
69387         * sysdeps/gnu/configure.in: ... this new file.
69388         * sysdeps/unix/sysv/linux/configure: Regenerated.
69389         * sysdeps/gnu/configure: New generated file.
69390
69391         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
69392         for Linux: use nsec instead of usec, as well as:
69393         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
69394         members of type struct timespec.
69395         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
69396         New macros.
69397         (struct stat64): Likewise.
69398         (_STATBUF_ST_NSEC): New macro.
69399         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
69400
69401         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
69402         __strtoul_internal rather than strtoul.
69403
69404 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69405
69406         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
69407         and reject them.
69408
69409 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69410
69411         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
69412         which preserves existing values.
69413         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
69414
69415 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69416
69417         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
69418         TIMEOUT values.  Return EINVAL for NFDS values either negative or
69419         greater than FD_SETSIZE.
69420
69421 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69422
69423         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
69424         allocated, call __vm_protect to finish enabling the existing space, and
69425         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
69426         allocate the remainder.
69427
69428 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69429
69430         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
69431         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
69432
69433 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69434
69435         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
69436         sysdeps/mach/hurd/readlink.c.
69437
69438         * posix/tst-sysconf.c (posix_options): Only use
69439         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
69440         _POSIX_SYNCHRONIZED_IO when they are defined
69441         * sysdeps/mach/hurd/bits/posix_opt.h:
69442         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
69443         (_XOPEN_REALTIME): Undefine macro.
69444         (_XOPEN_REALTIME_THREADS): Undefine macro.
69445         (_XOPEN_SHM): Undefine macro.
69446         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
69447         macro to -1.
69448         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
69449         macro to -1.
69450         (_POSIX_ASYNC_IO): Undefine macro.
69451         (_POSIX_PRIORITIZED_IO): Undefine macro.
69452         (_POSIX_SPIN_LOCKS): Define macro to -1.
69453
69454         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
69455         SA_NODEFER, SA_RESETHAND.
69456         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
69457         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
69458         F_DUPFD_CLOEXEC.
69459
69460 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69461
69462         * elf/Makefile (pldd-modules): Define unconditionally.
69463
69464 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69465
69466         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
69467
69468 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69469
69470         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
69471         Return ENOENT when name is empty.
69472         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
69473
69474 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69475
69476         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
69477
69478         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
69479
69480 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69481
69482         Fix mlock in all cases except non-readable pages.
69483         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
69484         instead of VM_PROT_ALL as parameter to __vm_wire function.
69485
69486         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
69487         (__mkdir): When path is `/', just fail with EEXIST.
69488         * sysdeps/mach/hurd/mkdirat.c: Likewise.
69489
69490 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69491
69492         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
69493         <sys/uio.h> (for writev).
69494         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
69495         and <sys/param.h> (for MIN).
69496
69497 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
69498
69499         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
69500         REQUESTED_TIME.  Properly set the remaining time and return EINTR
69501         if interrupted.
69502
69503 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69504
69505         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
69506         Depend on against $(link-rpcuserlibs).
69507
69508 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69509
69510         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
69511         (__libc_stack_end): Do not use attribute_relro.
69512         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
69513         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
69514         to libthread-provided value.
69515         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
69516         attribute_relro.
69517
69518 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69519
69520         [BZ #3748]
69521         * bits/libc-lock.h (__libc_once_get): New macro.
69522         * sysdeps/mach/bits/libc-lock.h: Likewise.
69523         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
69524         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
69525         instead of using implementation details.
69526
69527         * libio/fileops.c: Unconditionally include <kernel-features.h>.
69528         * libio/freopen.c: Likewise.
69529         * libio/freopen64.c: Likewise.
69530         * misc/syslog.c: Likewise.
69531         * nscd/connections.c: Likewise.
69532         * nscd/netgroupcache.c: Likewise.
69533         * sysdeps/posix/getcwd.c: Likewise.
69534
69535 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69536
69537         * math/w_ilogbf.c: Add #include <limits.h>.
69538
69539 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69540
69541         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
69542         path instead of returning without unlocking.
69543
69544         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
69545         immediate-write ioctls.
69546         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
69547
69548 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69549
69550         * sysdeps/mach/hurd/i386/init-first.c (init): Use
69551         __builtin_frame_address instead of making assumptions about the
69552         location of the return address relative to DATA.  Force early load of
69553         the return address.
69554         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
69555         __builtin_frame_address.
69556
69557         dup3 for GNU Hurd.
69558         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
69559         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
69560         implement dup3 and do some further code clean-ups.
69561         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
69562         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
69563
69564 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69565
69566         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
69567
69568         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
69569         HURD_CRITICAL_END around holding _hurd_dtable_lock.
69570         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
69571         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
69572         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
69573         d->port.lock.
69574
69575         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
69576         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
69577         when handler == SIG_ERR, not when handler != SIG_ERR.
69578
69579 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69580
69581         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
69582         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
69583         definitions.
69584
69585         accept4 for GNU Hurd.
69586         * include/sys/socket.h (__libc_accept4): New prototype.
69587         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
69588         to implement __libc_accept4.
69589         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
69590         __libc_accept4.
69591         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
69592
69593         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
69594         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
69595         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
69596         signal-defines.sym.
69597
69598 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69599
69600         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
69601
69602 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
69603
69604         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
69605         assertion on O_CLOEXEC flag.
69606         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
69607         * hurd/intern-fd.c: Likewise.
69608         * hurd/port2fd.c: Likewise.
69609
69610 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69611
69612         [BZ #3906]
69613         * bits/in.h (IPV6_PKTINFO): Define new macro.
69614         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
69615
69616 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69617
69618         [BZ #13954]
69619         [BZ #13955]
69620         [BZ #13956]
69621         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
69622         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
69623         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
69624         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
69625         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
69626         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
69627         * math/libm-test.inc (logb_test) : Additional logb tests.
69628
69629 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
69630             Andreas Jaeger  <aj@suse.de>
69631
69632         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
69633         * configure: Regenerated.
69634         * config.h.in (LINK_OBSOLETE_RPC): New macro.
69635         * config.make.in (link-obsolete-rpc): New substituted variable.
69636         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
69637         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
69638         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69639         (shared-only-routines): Don't set it under [link-obsolete-rpc],
69640         so that libc.a contains the symbols.
69641         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
69642         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
69643         * sunrpc/auth_none.c: Likewise.
69644         * sunrpc/auth_unix.c: Likewise.
69645         * sunrpc/authdes_prot.c: Likewise.
69646         * sunrpc/authuxprot.c: Likewise.
69647         * sunrpc/clnt_gen.c: Likewise.
69648         * sunrpc/clnt_perr.c: Likewise.
69649         * sunrpc/clnt_raw.c: Likewise.
69650         * sunrpc/clnt_simp.c: Likewise.
69651         * sunrpc/clnt_tcp.c: Likewise.
69652         * sunrpc/clnt_udp.c: Likewise.
69653         * sunrpc/clnt_unix.c: Likewise.
69654         * sunrpc/des_crypt.c: Likewise.
69655         * sunrpc/des_soft.c: Likewise.
69656         * sunrpc/get_myaddr.c: Likewise.
69657         * sunrpc/key_call.c: Likewise.
69658         * sunrpc/key_prot.c: Likewise.
69659         * sunrpc/netname.c: Likewise.
69660         * sunrpc/pm_getmaps.c: Likewise.
69661         * sunrpc/pm_getport.c: Likewise.
69662         * sunrpc/pmap_clnt.c: Likewise.
69663         * sunrpc/pmap_prot.c: Likewise.
69664         * sunrpc/pmap_prot2.c: Likewise.
69665         * sunrpc/pmap_rmt.c: Likewise.
69666         * sunrpc/publickey.c: Likewise.
69667         * sunrpc/rpc_cmsg.c: Likewise.
69668         * sunrpc/rpc_common.c: Likewise.
69669         * sunrpc/rpc_dtable.c: Likewise.
69670         * sunrpc/rpc_prot.c: Likewise.
69671         * sunrpc/rpc_thread.c: Likewise.
69672         * sunrpc/rtime.c: Likewise.
69673         * sunrpc/svc.c: Likewise.
69674         * sunrpc/svc_auth.c: Likewise.
69675         * sunrpc/svc_raw.c: Likewise.
69676         * sunrpc/svc_run.c: Likewise.
69677         * sunrpc/svc_tcp.c: Likewise.
69678         * sunrpc/svc_udp.c: Likewise.
69679         * sunrpc/svc_unix.c: Likewise.
69680         * sunrpc/svcauth_des.c: Likewise.
69681         * sunrpc/xcrypt.c: Likewise.
69682         * sunrpc/xdr.c: Likewise.
69683         * sunrpc/xdr_array.c: Likewise.
69684         * sunrpc/xdr_float.c: Likewise.
69685         * sunrpc/xdr_intXX_t.c: Likewise.
69686         * sunrpc/xdr_mem.c: Likewise.
69687         * sunrpc/xdr_rec.c: Likewise.
69688         * sunrpc/xdr_ref.c: Likewise.
69689         * sunrpc/xdr_sizeof.c: Likewise.
69690         * sunrpc/xdr_stdio.c: Likewise.
69691
69692 2012-05-10  Roland McGrath  <roland@hack.frob.com>
69693
69694         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
69695         change.  Update copyright years.
69696
69697 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69698
69699         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
69700
69701 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
69702             Joseph Myers  <joseph@codesourcery.com>
69703             Paul Pluzhnikov  <ppluzhnikov@google.com>
69704
69705         [BZ #14012]
69706         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
69707         requiring rpcgen.
69708         [cross-compiling] (extra-libs): Likewise.
69709         [cross-compiling] (extra-libs-others): Likewise.
69710         [cross-compiling] (librpcsvc-routines): Likewise.
69711         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
69712         [cross-compiling] (omit-deps): Likewise.
69713         (sunrpc-CPPFLAGS): New variable.
69714         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
69715         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
69716         (cross-rpcgen-objs): New variable.
69717         (extra-objs): Append $(cross-rpcgen-objs).
69718         ($(cross-rpcgen-objs)): New rule.
69719         ($(objpfx)cross-rpcgen): Likewise.
69720         (rpcgen-cmd): Define to use $(built-program-file).  Expand
69721         comment.
69722         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
69723         ($(objpfx)x%.stmp): Likewise.
69724         * sunrpc/proto.h [IS_IN_build] (_): Define.
69725         [IS_IN_build] (_libc_intl_domainname): Likewise.
69726
69727 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
69728
69729         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
69730         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
69731         and R_X86_64_TPOFF64.
69732
69733 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
69734
69735         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
69736         sysdeps/unix/sysv/syscalls.list.
69737         (stime): Likewise.
69738         (utime): Likewise.
69739         * sysdeps/unix/sysv/syscalls.list: Remove file.
69740
69741 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         [BZ #3440]
69744         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
69745         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
69746         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
69747         (__LC_IDENTIFICATION): Make these macros useful in #if
69748         expressions, as required by C99.
69749
69750 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
69751
69752         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
69753         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
69754         after this.
69755
69756 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
69757
69758         * stdlib/longlong.h: Updated from GCC.
69759
69760 2012-05-09  Andreas Jaeger  <aj@suse.de>
69761
69762         * nscd/nscd.c (run_modes): Make named enum, reorder so that
69763         default is first entry.
69764         (run_mode): Set type.
69765         (main): Remove informal message about syslog.
69766         (options): Fix typo.
69767
69768         [BZ #14053]
69769         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
69770         to asm.
69771         (lrint): Likewise.
69772         (llrintf): Likewise.
69773         (llrint): Likewise.
69774         (rint): Likewise.
69775         (rintf): Likewise.
69776         (nearbyint): Likewise.
69777         (nearbyintf): Likewise.
69778
69779 2012-05-09  Andreas Jaeger  <aj@suse.de>
69780             Pedro Alves  <palves@redhat.com>
69781
69782         * nscd/nscd.c (run_mode): Use enum.
69783         (main): Cleanup coding style issue.
69784
69785 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
69786             Andreas Jaeger  <aj@suse.de>
69787
69788         * nscd/nscd.c (go_background): Replaced with...
69789         (run_mode): ... this.
69790         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
69791         (options): Add -F --foreground.
69792         (main): Implement it.
69793         (parse_opt): Parse it.
69794
69795 2012-05-09  Andreas Jaeger  <aj@suse.de>
69796
69797         [BZ #14083]
69798         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
69799         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
69800         -Wconversion warning.
69801         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
69802         Likewise.
69803
69804 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
69805
69806         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
69807         == 0.
69808         (LC_ALL): Use macro-int-constant.
69809         (LC_COLLATE): Likewise.
69810         (LC_CTYPE): Likewise.
69811         (LC_MESSAGES): Likewise.
69812         (LC_MONETARY): Likewise.
69813         (LC_NUMERIC): Likewise.
69814         (LC_TIME): Likewise.
69815         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
69816         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
69817         [ISO || ISO99 || ISO11] (*_t): Do not allow.
69818         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
69819         Specify type.
69820         [C99-based standards] (float_t): Expect type.
69821         [C99-based standards] (double_t): Expect type.
69822         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
69823         type.
69824         [C99-based standards] (HUGE_VALL): Likewise.
69825         [C99-based standards] (INFINITY): Likewise.
69826         [C99-based standards] (NAN): Likewise.
69827         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
69828         [C99-based standards] (FP_NAN): Likewise.
69829         [C99-based standards] (FP_NORMAL): Likewise.
69830         [C99-based standards] (FP_SUBNORMAL): Likewise.
69831         [C99-based standards] (FP_ZERO): Likewise.
69832         [C99-based standards] (FP_FAST_FMA): Use
69833         optional-macro-int-constant.  Specify type.  Require == 1.
69834         [C99-based standards] (FP_FAST_FMAF): Likewise.
69835         [C99-based standards] (FP_FAST_FMAL): Likewise.
69836         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
69837         [C99-based standards] (FP_ILOGBNAN): Likewise.
69838         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
69839         Specify type.
69840         [C99-based standards] (MATH_ERREXCEPT): Likewise.
69841         [C99-based standards] (math_errhandling): Specify type.
69842         [ISO99 || ISO11] (signgam): Do not allow.
69843         [non-C99-based standards] (copysignf): Do not allow.
69844         [non-C99-based standards] (exp2f): Likewise.
69845         [non-C99-based standards] (log2f): Likewise.
69846         [non-C99-based standards] (modff): Allow.
69847         [non-C99-based standards] (erff): Do not allow.
69848         [non-C99-based standards] (erfcf): Likewise.
69849         [non-C99-based standards] (gammaf): Likewise.
69850         [non-C99-based standards] (hypotf): Likewise.
69851         [non-C99-based standards] (j0f): Likewise.
69852         [non-C99-based standards] (j1f): Likewise.
69853         [non-C99-based standards] (jnf): Likewise.
69854         [non-C99-based standards] (lgammaf): Likewise.
69855         [non-C99-based standards] (tgammaf): Likewise.
69856         [non-C99-based standards] (y0f): Likewise.
69857         [non-C99-based standards] (y1f): Likewise.
69858         [non-C99-based standards] (ynf): Likewise.
69859         [non-C99-based standards] (isnanf): Likewise.
69860         [non-C99-based standards] (acoshf): Likewise.
69861         [non-C99-based standards] (asinhf): Likewise.
69862         [non-C99-based standards] (atanhf): Likewise.
69863         [non-C99-based standards] (cbrtf): Likewise.
69864         [non-C99-based standards] (expm1f): Likewise.
69865         [non-C99-based standards] (ilogbf): Likewise.
69866         [non-C99-based standards] (log1pf): Likewise.
69867         [non-C99-based standards] (logbf): Likewise.
69868         [non-C99-based standards] (nextafterf): Likewise.
69869         [non-C99-based standards] (remainderf): Likewise.
69870         [non-C99-based standards] (rintf): Likewise.
69871         [non-C99-based standards] (scalbf): Likewise.
69872         [non-C99-based standards] (copysignl): Likewise.
69873         [non-C99-based standards] (exp2l): Likewise.
69874         [non-C99-based standards] (log2l): Likewise.
69875         [non-C99-based standards] (modfl): Allow.
69876         [non-C99-based standards] (erfl): Do not allow.
69877         [non-C99-based standards] (erfcl): Likewise.
69878         [non-C99-based standards] (gammal): Likewise.
69879         [non-C99-based standards] (hypotl): Likewise.
69880         [non-C99-based standards] (j0l): Likewise.
69881         [non-C99-based standards] (j1l): Likewise.
69882         [non-C99-based standards] (jnl): Likewise.
69883         [non-C99-based standards] (lgammal): Likewise.
69884         [non-C99-based standards] (tgammal): Likewise.
69885         [non-C99-based standards] (y0l): Likewise.
69886         [non-C99-based standards] (y1l): Likewise.
69887         [non-C99-based standards] (ynl): Likewise.
69888         [non-C99-based standards] (isnanl): Likewise.
69889         [non-C99-based standards] (acoshl): Likewise.
69890         [non-C99-based standards] (asinhl): Likewise.
69891         [non-C99-based standards] (atanhl): Likewise.
69892         [non-C99-based standards] (cbrtl): Likewise.
69893         [non-C99-based standards] (expm1l): Likewise.
69894         [non-C99-based standards] (ilogbl): Likewise.
69895         [non-C99-based standards] (log1pl): Likewise.
69896         [non-C99-based standards] (logbl): Likewise.
69897         [non-C99-based standards] (nextafterl): Likewise.
69898         [non-C99-based standards] (remainderl): Likewise.
69899         [non-C99-based standards] (rintl): Likewise.
69900         [non-C99-based standards] (scalbl): Likewise.
69901         [ISO || ISO99 || ISO11] (*_t): Do not allow.
69902         [non-C99-based standards] (FP_*): Do not allow.
69903         [C99-based standards] (FP_*): Change to
69904         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
69905         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
69906         allow.
69907         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
69908         (SIG_ERR): Likewise.
69909         [X/Open-based standards] (SIG_HOLD): Likewise.
69910         (SIG_IGN): Likewise.
69911         (SIGABRT): Use macro-int-constant.  Specify type.  Require
69912         positive value.
69913         (SIGFPE): Likewise.
69914         (SIGILL): Likewise.
69915         (SIGINT): Likewise.
69916         (SIGSEGV): Likewise.
69917         (SIGTER): Likewise.
69918         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
69919         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
69920         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
69921         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
69922         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
69923         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
69924         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
69925         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
69926         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
69927         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
69928         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
69929         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
69930         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
69931         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
69932         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
69933         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
69934         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
69935         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
69936         [X/Open-based standards] (SIGTRAP): Likewise.
69937         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
69938         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
69939         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
69940         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
69941         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
69942         allow.
69943
69944 2012-05-08  Ian Wienand  <ianw@vmware.com>
69945
69946         [BZ #14080]
69947         * time/tzset.c (__tzset_parse_tz): Update default rules for
69948         daylight time changes in the Energy Policy Act of 2005.
69949
69950 2012-05-09  Andreas Jaeger  <aj@suse.de>
69951
69952         [BZ #13983]
69953         * elf/ldconfig.c (parse_conf): Change string to make clear that
69954         ldconfig only issued a warning if ld.so.conf does not exist.
69955
69956 2012-05-08  David S. Miller  <davem@davemloft.net>
69957
69958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
69959         movxtod instead of popping the value on the stack.
69960
69961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
69962
69963 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
69964
69965         * config.h.in: Add HAVE_ARM_PCS_VFP.
69966
69967 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
69968
69969         [BZ #13979]
69970         * include/features.h: Warn if user requests __FORTIFY_SOURCE
69971         checking but the checks are disabled for any reason.
69972
69973 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
69974
69975         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
69976         and ELF64_R_TYPE with ELFW(R_TYPE).
69977
69978 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
69979
69980         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
69981         (ulimit): Likewise.
69982
69983         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
69984         (settimeofday): Likewise.
69985
69986 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
69987
69988         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
69989         a struct th_u2 inside the union, and move tu_block/tu_code into
69990         a new th_u3 union of tu_block/tu_code inside of that.  Move
69991         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
69992         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
69993         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
69994         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
69995         (th_stuff): Change to th_u1.tu_stuff.
69996         (th_data): Define.
69997         (th_msg): Change to th_u1.th_u2.tu_data.
69998
69999 2012-05-07  David S. Miller  <davem@davemloft.net>
70000
70001         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70002
70003         [BZ #14074]
70004         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
70005         (SETUP_PIC_REG): Use it.
70006         (SETUP_PIC_REG_LEAF): Use it.
70007
70008 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
70009
70010         [BZ #13885]
70011         [BZ #13923]
70012         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70013         USE_AS_EXPM1L.
70014         (EXPL_FINITE): Likewise.
70015         (FLDLOG): Likewise.
70016         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70017         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70018         e_expl.S.
70019         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70020         USE_AS_EXPM1L.
70021         (EXPL_FINITE): Likewise.
70022         (FLDLOG): Likewise.
70023         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
70024         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
70025         e_expl.S.
70026         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
70027         test of -max_value argument for long double.
70028         * sysdeps/i386/fpu/libm-test-ulps: Update.
70029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70030
70031 2012-05-06  David S. Miller  <davem@davemloft.net>
70032
70033         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
70034         quad soft-float symbols whose references which are compiler
70035         generated.
70036         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
70037
70038 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
70039
70040         [BZ #13884]
70041         [BZ #13914]
70042         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70043         USE_AS_EXP10L.
70044         (EXPL_FINITE): Likewise.
70045         (FLDLOG): Likewise.
70046         (c0): Likewise.
70047         (c1): Likewise.
70048         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70049         Adjust comments for base varying.
70050         (__expl_finite): Change alias to EXPL_FINITE.
70051         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
70052         e_expl.S.
70053         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
70054         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
70055         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
70056         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
70057         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
70058         USE_AS_EXP10L.
70059         (EXPL_FINITE): Likewise.
70060         (FLDLOG): Likewise.
70061         (c0): Likewise.
70062         (c1): Likewise.
70063         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
70064         Adjust comments for base varying.
70065         (__expl_finite): Change alias to EXPL_FINITE.
70066         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
70067         tests for bugs.
70068         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70069
70070         [BZ #14064]
70071         * math/libm-test.inc (check_float_internal): Correct ulp
70072         calculation for subnormal expected results.
70073
70074 2012-05-06  Andreas Jaeger  <aj@suse.de>
70075
70076         * Makeconfig (+math-flags): New, set to -frounding-math.
70077         (+cflags): Add +math-flags so that all of glibc gets compiled with
70078         it.
70079
70080         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
70081
70082 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
70083
70084         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
70085         Disable one test.
70086
70087         [BZ #13787]
70088         [BZ #13922]
70089         [BZ #14036]
70090         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
70091         (__ieee754_expl): Allow for and saturate large arguments.
70092         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
70093         (u_threshold): Likewise.
70094         (__exp): Call __ieee754_exp before checking for overflow and
70095         underflow.
70096         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
70097         (u_threshold): Likewise.
70098         (__expf): Call __ieee754_expf before checking for overflow and
70099         underflow.
70100         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
70101         (u_threshold): Likewise.
70102         (__expl): Call __ieee754_expl before checking for overflow and
70103         underflow.
70104         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
70105         (__ieee754_expl): Allow for and saturate large arguments.
70106         * math/libm-test.inc (exp_test): Add another test.  Do not allow
70107         missing overflow exception on overflow.
70108         (expm1_test): Do not allow missing overflow exception on overflow.
70109
70110         * sysdeps/i386/fpu/e_expl.c: Move to ...
70111         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
70112         rather than using inline asm.
70113         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
70114         * sysdeps/x86_64/fpu/e_expl.S: Copy from
70115         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
70116
70117         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
70118         (nice): Likewise.
70119         (poll): Likewise.
70120         (signal): Likewise.
70121         (time): Likewise.
70122         (times): Likewise.
70123
70124 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70125
70126         * sysdeps/unix/syscalls.list (adjtime): Add entry from
70127         sysdeps/unix/common/syscalls.list.
70128         (fchmod): Likewise.
70129         (fchown): Likewise.
70130         (ftruncate): Likewise.
70131         (getrusage): Likewise.
70132         (gettimeofday): Likewise.
70133         (setpgid): Likewise.
70134         (setregid): Likewise.
70135         (setreuid): Likewise.
70136         (sigaction): Likewise.
70137         (truncate): Likewise.
70138         (vhangup): Likewise.
70139         * sysdeps/unix/common/syscalls.list: Remove file.
70140         * sysdeps/unix/bsd/Implies: Don't include unix/common.
70141         * sysdeps/unix/sysv/linux/Implies: Likewise.
70142
70143 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
70144
70145         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
70146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
70147         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
70148         Moved to ...
70149         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
70150         Here.
70151         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
70152         to ...
70153         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
70154         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
70155         to ...
70156         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
70157         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
70158         to ...
70159         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
70160         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
70161         to ...
70162         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
70163         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
70164         to ...
70165         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
70166         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
70167         to ...
70168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
70169         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
70170         to ...
70171         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
70172         Here.
70173         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
70174         to ...
70175         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
70176         Here.
70177         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
70178         to ...
70179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
70180         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
70181         Moved to ...
70182         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
70183         Here.
70184         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
70185         to ...
70186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
70187
70188 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70189
70190         * sysdeps/unix/common/bits/dirent.h: Remove file.
70191         * sysdeps/unix/common/bits/fcntl.h: Likewise.
70192
70193         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
70194         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
70195         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
70196         * sysdeps/unix/bsd/isatty.c: Likewise.
70197         * sysdeps/unix/bsd/tcdrain.c: Likewise.
70198         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
70199         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
70200
70201 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70202
70203         [BZ #13563]
70204         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
70205         long double comparison inaccuracies.
70206         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
70207         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70208
70209 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
70210
70211         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
70212         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
70213
70214 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
70215
70216         [BZ #14049]
70217         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
70218         nonzero digits before rounding a hex value.
70219         * stdlib/tst-strtod.c (tests): Add another test.
70220
70221 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
70222
70223         * sysdeps/s390/fpu/libm-test-ulps: Update.
70224
70225 2012-05-03  Andreas Jaeger  <aj@suse.de>
70226
70227         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
70228         does not get optimized out.
70229         (malloc_opt_barrier): New.
70230
70231 2012-05-03  Andreas Jaeger  <aj@suse.de>
70232             Roland McGrath  <roland@hack.frob.com>
70233
70234         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
70235         intermediate file deletion.
70236         (generated): Add .symlist files.
70237
70238 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
70239
70240         [BZ #13775]
70241         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
70242         Redirect under this condition.
70243         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70244         [__USE_GNU] (__dprintf_chk): Not under this condition.
70245         [__USE_GNU] (__vdprintf_chk): Likewise.
70246         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
70247         under this condition.
70248         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
70249         [__USE_XOPEN2K8] (dprintf): Define under this condition.
70250         [__USE_XOPEN2K8] (vdprintf): Likewise.
70251         [__USE_GNU] (__dprintf_chk): Not under this condition.
70252         [__USE_GNU] (__vdprintf_chk): Likewise.
70253         [__USE_GNU] (dprintf): Likewise.
70254         [__USE_GNU] (vdprintf): Likewise.
70255
70256 2012-05-03  Roland McGrath  <roland@hack.frob.com>
70257
70258         * elf/Makefile (common-generated): Set this instead of generated for
70259         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
70260         $(all-built-dso)-derived lists.
70261
70262 2012-05-03  Andreas Jaeger  <aj@suse.de>
70263
70264         * sysdeps/i386/fpu/libm-test-ulps: Update.
70265
70266         * FAQ: Removed.
70267         * FAQ.in: Likewise.
70268         * scripts/gen-FAQ.pl: Likewise.
70269         * manual/install.texi (Installation): Point to online location of
70270         FAQ.
70271         * Makefile (files-for-dist): Remove FAQ.
70272         (FAQ): Remove.
70273
70274 2012-05-02  Allan McRae  <allan@archlinux.org>
70275
70276         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
70277         (LDFLAGS-reldepmod5.so): Likewise.
70278         (LDFLAGS-reldep6mod1.so): Likewise.
70279         (LDFLAGS-reldep6mod4.so): Likewise.
70280         (LDFLAGS-reldep8mod3.so): Likewise.
70281         (LDFLAGS-unload4mod1.so): Likewise.
70282         (LDFLAGS-unload4mod2.so): Likewise.
70283         (LDFLAGS-tst-initorder): Likewise.
70284         (LDFLAGS-tst-initordera2.so): Likewise.
70285         (LDFLAGS-tst-initordera3.so): Likewise.
70286         (LDFLAGS-tst-initordera4.so): Likewise.
70287         (LDFLAGS-tst-initorderb2.so): Likewise.
70288         (LDFLAGS-noload): Likewise.
70289         (LDFLAGS-next): Likewise.
70290         (LDFLAGS-order2mod1.so): Likewise.
70291         (LDFLAGS-order2mod2.so): Likewise.
70292         (LDFLAGS-tst-initorder2): Likewise.
70293         (LDFLAGS-tst-initorder2a.so): Likewise.
70294         (LDFLAGS-tst-initorder2b.so): Likewise.
70295         (LDFLAGS-tst-initorder2c.so): Likewise.
70296         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
70297
70298 2012-05-02  David S. Miller  <davem@davemloft.net>
70299
70300         * sysdeps/sparc/fpu/libm-test-ulps: Update.
70301
70302 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
70303
70304         [BZ #14055]
70305         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
70306
70307 2012-05-02  Andreas Jaeger  <aj@suse.de>
70308
70309         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
70310         since we manipulate rounding mode.
70311         (CPPFLAGS-test-idouble.c): Likewise.
70312         (CPPFLAGS-test-ifloat.c): Likewise.
70313         (CFLAGS-test-ldouble.c): Likewise.
70314         (CFLAGS-test-double.c): Likewise.
70315         (CFLAGS-test-float.c): Likewise.
70316         (CFLAGS-test-misc.c): Likewise.
70317         (CFLAGS-test-test-fenv.c): Likewise.
70318
70319 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70320
70321         [BZ #2550]
70322         [BZ #2570]
70323         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
70324         comparisons to determine direction to adjust input.
70325
70326 2012-05-01  Roland McGrath  <roland@hack.frob.com>
70327
70328         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
70329         output to the target.
70330
70331         * scripts/localplt.awk: New file.
70332         * elf/Makefile ($(objpfx)check-localplt): Target removed.
70333         (check-localplt-CFLAGS): Variable removed.
70334         ($(all-built-dso:=.jmprel)): New static pattern rule.
70335         (generated): Add those targets.
70336         (localplt-built-dso): New variable.
70337         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
70338
70339         * elf/check-localplt.c: File removed.
70340
70341         * scripts/check-execstack.awk: New file.
70342         * elf/Makefile ($(objpfx)check-execstack): Target removed.
70343         (check-execstack-CFLAGS): Variable removed.
70344         ($(objpfx)check-execstack.h): Target removed.
70345         ($(objpfx)execstack-default): New target.
70346         (generated): Add that instead of check-execstack.h.
70347         ($(all-built-dso:=.phdr)): New static pattern rule.
70348         (generated): Add those targets.
70349         * elf/check-execstack.c: File removed.
70350
70351         * scripts/check-textrel.awk: New file.
70352         * elf/Makefile ($(objpfx)check-textrel): Target removed.
70353         (check-textrel-CFLAGS): Variable removed.
70354         (all-built-dso): Use := to define.o
70355         ($(all-built-dso:=.dyn)): New static pattern rule.
70356         (generated): Add those targets.
70357         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
70358         * config.make.in (READELF): New substituted variable.
70359         * elf/check-textrel.c: File removed.
70360
70361 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70362
70363         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
70364         allow.
70365         * conform/data/ctype.h-data [C99-based standards] (isblank):
70366         Expect function.
70367         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
70368         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
70369         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70370         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
70371         Specify type.  Require positive value.
70372         (EILSEQ): Likewise.
70373         (ERANGE): Likewise.
70374         [ISO || POSIX] (EILSEQ): Do not expect.
70375         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
70376         Specify type.  Require positive value.
70377         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
70378         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
70379         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
70380         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
70381         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
70382         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
70383         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
70384         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
70385         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
70386         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
70387         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
70388         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
70389         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
70390         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
70391         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
70392         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
70393         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
70394         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
70395         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
70396         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
70397         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
70398         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
70399         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
70400         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
70401         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
70402         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
70403         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
70404         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
70405         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
70406         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
70407         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
70408         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
70409         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
70410         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
70411         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
70412         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
70413         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
70414         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
70415         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
70416         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
70417         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
70418         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
70419         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
70420         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
70421         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
70422         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
70423         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
70424         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
70425         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
70426         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
70427         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
70428         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
70429         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
70430         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
70431         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
70432         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
70433         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
70434         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
70435         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
70436         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
70437         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
70438         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
70439         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
70440         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
70441         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
70442         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
70443         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
70444         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
70445         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
70446         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
70447         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
70448         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
70449         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
70450         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
70451         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
70452         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
70453         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
70454         Require >= 2.
70455         (FLT_ROUNDS): Expect as macro, not constant.
70456         (FLT_MANT_DIG): Use macro-int-constant.
70457         (DBL_MANT_DIG): Likewise.
70458         (LDBL_MANT_DIG): Likewise.
70459         (FLT_DIG): Likewise.
70460         (DBL_DIG): Likewise.
70461         (LDBL_DIG): Likewise.
70462         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
70463         (DBL_MIN_EXP): Likewise.
70464         (LDBL_MIN_EXP): Likewise.
70465         (FLT_MAX_EXP): Use macro-int-constant.
70466         (DBL_MAX_EXP): Likewise.
70467         (LDBL_MAX_EXP): Likewise.
70468         (FLT_MAX_10_EXP): Likewise.
70469         (DBL_MAX_10_EXP): Likewise.
70470         (LDBL_MAX_10_EXP): Likewise.
70471         (FLT_MAX): Use macro-constant.
70472         (DBL_MAX): Likewise.
70473         (LDBL_MAX): Likewise.
70474         (FLT_EPSILON): Use macro-constant.  Give upper bound.
70475         (DBL_EPSILON): Likewise.
70476         (LDBL_EPSILON): Likewise.
70477         (FLT_MIN): Likewise.
70478         (DBL_MIN): Likewise.
70479         (LDBL_MIN): Likewise.
70480         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
70481         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
70482         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
70483         [ISO11] (FLT_HAS_SUBNORM): Likewise.
70484         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
70485         [ISO11] (DBL_DECIMAL_DIG): Likewise.
70486         [ISO11] (FLT_DECIMAL_DIG): Likewise.
70487         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
70488         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
70489         [ISO11] (FLT_TRUE_MIN): Likewise.
70490         [ISO11] (LDBL_TRUE_MIN): Likewise.
70491         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70492         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
70493         (SCHAR_MIN): Use macro-int-constant.  Specify type.
70494         (SCHAR_MAX): Likewise.
70495         (UCHAR_MAX): Likewise.
70496         (CHAR_MIN): Likewise.
70497         (CHAR_MAX): Likewise.
70498         (MB_LEN_MAX): Use macro-int-constant.
70499         (SHRT_MIN): Use macro-int-constant.  Specify type.
70500         (SHRT_MAX): Likewise.
70501         (USHRT_MAX): Likewise.
70502         (INT_MAX): Likewise.
70503         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
70504         bound negative.
70505         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70506         bound with "U".
70507         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70508         bound with "L".
70509         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
70510         bound negative.  Suffix upper bound with "L".
70511         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
70512         bound with "UL".
70513         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
70514         Specify type.
70515         [C99-based standards] (LLONG_MAX): Likewise.
70516         [C99-based standards] (ULLONG_MAX): Likewise.
70517         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
70518         == 0.
70519         [ISO11] (max_align_t): Require type.
70520         [ISO || ISO99 || ISO11] (*_t): Do not allow.
70521
70522         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
70523         from $CFLAGS, without defining away __attribute__ calls.
70524         (checknamespace): Use $CFLAGS_namespace.
70525
70526         * conform/conformtest.pl (@keywords): Only include C99 keywords
70527         for standards based on C99 or C11.
70528
70529         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
70530         Disable tests.
70531         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
70532         UNIX98]: Likewise.
70533
70534         * conform/conformtest.pl: Handle "macro-int-constant" and test for
70535         usability of symbols in #if.
70536
70537         * conform/conformtest.pl: If macro or constant types start
70538         "promoted:", expect the symbol to be of the following type
70539         promoted by the integer promotions.
70540
70541         * conform/conformtest.pl: Parse all "constant" and "macro" lines
70542         in one place.  Also handle "macro-constant".
70543
70544         * conform/conformtest.pl: Only accept expected macro values with
70545         "==".  Parse all "macro" lines in one place.
70546         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
70547
70548         * conform/conformtest.pl: Handle braced types on "constant" lines
70549         instead of handling "typed-constant".
70550         * conform/data/signal.h-data: Use "constant" instead of
70551         "typed-constant".
70552
70553         * conform/conformtest.pl: Handle "optional-" at start of lines in
70554         one place rather than duplicating several cases.  Handle each
70555         format of "macro" line with initial "optional-".
70556
70557         * conform/conformtest.pl: Only accept expected constant or
70558         optional-constant values with "==".  Parse all "constant" lines in
70559         one place.  Parse all "optional-constant" lines in one place.
70560         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
70561         * conform/data/fmtmsg.h-data: Likewise.
70562         * conform/data/netinet/in.h-data: Likewise.
70563         * conform/data/tar.h-data: Likewise.
70564         * conform/data/limits.h-data: Use "==" form on "constant" and
70565         "optional-constant" lines.
70566
70567         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
70568         Use -std=c99 for XOPEN2K.
70569         (@knownproblems): Remove.
70570         (newtoken): Don't check %isknown.
70571
70572         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
70573         Do not expect macro.
70574         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
70575         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
70576         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
70577         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
70578         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
70579         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
70580         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
70581         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
70582         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
70583         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
70584         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
70585         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
70586         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
70587         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
70588         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
70589         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
70590         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
70591         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
70592         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
70593         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
70594         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
70595         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
70596         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
70597         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
70598         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
70599         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
70600         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
70601         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
70602         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
70603         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
70604         [XPG3] (acosh): Likewise.
70605         [XPG3] (asinh): Likewise.
70606         [XPG3] (atanh): Likewise.
70607         [XPG3] (cbrt): Likewise.
70608         [XPG3] (expm1): Likewise.
70609         [XPG3] (ilogb): Likewise.
70610         [XPG3] (log1p): Likewise.
70611         [XPG3] (logb): Likewise.
70612         [XPG3] (nextafter): Likewise.
70613         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
70614         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
70615         [XPG3] (remainder): Likewise.
70616         [XPG3] (rint): Likewise.
70617         [XPG3 || XPG4 || UNIX98] (round): Likewise.
70618         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
70619         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
70620         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
70621         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
70622         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
70623         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
70624         [UNIX98 || XOPEN2K] (scalb): Expect.
70625         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
70626         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
70627         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
70628         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
70629         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
70630         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
70631         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
70632         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
70633         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
70634         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
70635         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
70636         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
70637         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
70638         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
70639         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
70640         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
70641         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
70642         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
70643         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
70644         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
70645         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
70646         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
70647         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
70648         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
70649         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
70650         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
70651         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
70652         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
70653         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
70654         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
70655         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
70656         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
70657         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
70658         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
70659         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
70660         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
70661         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
70662         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
70663         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
70664         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
70665         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
70666         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
70667         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
70668         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
70669         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
70670         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
70671         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
70672         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
70673         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
70674         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
70675         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
70676         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
70677         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
70678         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
70679         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
70680         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
70681         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
70682         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
70683         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
70684         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
70685         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
70686         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
70687         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
70688         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
70689         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
70690         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
70691         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
70692         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
70693         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
70694         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
70695         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
70696         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
70697         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
70698         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
70699         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
70700         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
70701         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
70702         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
70703         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
70704         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
70705         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
70706         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
70707         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
70708         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
70709         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
70710         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
70711         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
70712         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
70713         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
70714         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
70715         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
70716         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
70717         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
70718         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
70719         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
70720         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
70721         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
70722         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
70723         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
70724         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
70725         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
70726         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
70727         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
70728         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
70729         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
70730         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
70731         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
70732         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
70733         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
70734         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
70735         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
70736         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
70737         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
70738         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
70739         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
70740         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
70741         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
70742         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
70743         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
70744         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
70745         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
70746         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
70747         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
70748         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
70749         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
70750         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
70751         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
70752         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
70753         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
70754         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
70755         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
70756         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
70757         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
70758         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
70759         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
70760         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
70761         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
70762
70763         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
70764         _XOPEN_SOURCE_EXTENDED for XPG4.
70765
70766         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
70767
70768         * Makeconfig (localtime): Remove variable.
70769         (inst_localtime-file): Likewise.
70770
70771 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
70772
70773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
70774         Update.
70775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70776         Update.
70777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
70778         Update.
70779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
70780         Update.
70781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
70782         Update.
70783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
70784         Update.
70785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70786         Update.
70787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
70788         Update.
70789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
70790         Update.
70791
70792 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
70793
70794         [BZ #2550]
70795         [BZ #2570]
70796         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
70797         comparisons to determine direction to adjust input.
70798         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
70799         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
70800         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
70801         Likewise.
70802         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
70803         Likewise.
70804         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
70805         Likewise.
70806         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
70807         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
70808         Likewise.
70809         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
70810         Likewise.
70811         * math/libm-test.inc (nexttoward_test): Add more tests.
70812
70813 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
70814
70815         [BZ #14040]
70816         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
70817         in version GLIBC_2.1, not GLIBC_2.0.
70818         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
70819         Likewise.
70820
70821 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
70822
70823         [BZ #13942]
70824         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
70825         (1 - x) * (1 + x).
70826         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
70827         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
70828         * math/libm-test.inc (acos_test): Add more tests.
70829         (asin_test): Likewise.
70830         * sysdeps/i386/fpu/libm-test-ulps: Update.
70831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
70832
70833         [BZ #14034]
70834         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
70835         of square root.
70836         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
70837         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
70838         * math/libm-test.inc (acos_test_tonearest): New function.
70839         (acos_test_towardzero): Likewise.
70840         (acos_test_downward): Likewise.
70841         (acos_test_upward): Likewise.
70842         (asin_test_tonearest): Likewise.
70843         (asin_test_towardzero): Likewise.
70844         (asin_test_downward): Likewise.
70845         (asin_test_upward): Likewise.
70846         (main): Call the new functions.
70847         * sysdeps/i386/fpu/libm-test-ulps: Update.
70848         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70849
70850         [BZ #13884]
70851         [BZ #13924]
70852         * math/e_exp10.c: Include <float.h>.
70853         (__ieee754_exp10): Handle underflow here rather than multiplying
70854         large negative argument by M_LN10.
70855         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
70856         of __ieee754_expf.
70857         * math/e_exp10l.c: Include <float.h>.
70858         (__ieee754_exp10l): Handle underflow here rather than multiplying
70859         large negative argument by M_LN10l.
70860         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
70861         spurious overflow exception on underflow.
70862
70863 2012-04-29  Marek Polacek  <polacek@redhat.com>
70864
70865         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
70866         (__fortify_function): New macro.
70867         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
70868         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
70869         __extern_always_inline.
70870         * libio/bits/stdio2.h: Likewise.
70871         * libio/bits/stdio.h: Likewise.
70872         * string/string.h: Likewise.
70873         * string/bits/string3.h: Likewise.
70874         * include/stdio.h: Likewise.
70875         * stdlib/bits/stdlib.h: Likewise.
70876         * stdlib/stdlib.h: Likewise.
70877         * rt/bits/mqueue2.h: Likewise.
70878         * rt/mqueue.h: Likewise.
70879         * posix/bits/unistd.h: Likewise.
70880         * posix/unistd.h: Likewise.
70881         * io/bits/poll2.h: Likewise.
70882         * io/bits/fcntl2.h: Likewise.
70883         * io/fcntl.h: Likewise.
70884         * io/sys/poll.h: Likewise.
70885         * misc/bits/syslog.h: Likewise.
70886         * misc/bits/syslog-ldbl.h: Likewise.
70887         * misc/sys/syslog.h: Likewise.
70888         * socket/bits/socket2.h: Likewise.
70889         * socket/sys/socket.h: Likewise.
70890         * debug/tst-chk1.c: Likewise.
70891         * wcsmbs/bits/wchar2.h: Likewise.
70892         * wcsmbs/bits/wchar-ldbl.h: Likewise.
70893         * wcsmbs/wchar.h: Likewise.
70894
70895 2012-04-29  Andreas Jaeger  <aj@suse.de>
70896
70897         * Makerules (tests): Remove enable-check-abi protection.
70898         (check-abi-warn): Remove.
70899         (check-abi-%): Remove check-abi-warn usage.
70900
70901         * configure.in: Remove check-abi configure option.
70902         * configure: Regenerated.
70903         * config.make.in (enable-check-abi): Remove.
70904
70905 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
70906
70907         [BZ #14033]
70908         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
70909         double functions to double *_finite functions.
70910
70911         [BZ #13941]
70912         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
70913         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
70914         LDBL_MIN_EXP.
70915         * stdio-common/Makefile (tests): Add tst-sprintf3.
70916         * stdio-common/tst-sprintf3.c: New file.
70917
70918         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
70919         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
70920
70921 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
70922
70923         * conform/conformtest.pl: Remove duplicate typed-constant
70924         handling.
70925
70926 2012-04-28  David S. Miller  <davem@davemloft.net>
70927
70928         * Makerules (%.abilist): Add vpath on sysdep_dirs.
70929         (check-abi-%): Remove AWK script prerequisite and explicit
70930         abilist directory.
70931         (check-abi): Rewrite to just diff the symlist with the abilist.
70932         (config-tls, config-abi-config): Delete, no longer used.
70933         (update-abi-%): Remove AWK script and explicit abilist directory.
70934         (update-abi): Rewrite to simply compare and conditionally copy the
70935         symlist and the sysdep abilist file.  Remove update-abi-config
70936         checks.
70937         * abilist/ld.abilist: Remove.
70938         * abilist/libBrokenLocale.abilist: Remove.
70939         * abilist/libanl.abilist: Remove.
70940         * abilist/libcrypt.abilist: Remove.
70941         * abilist/libdl.abilist: Remove.
70942         * abilist/librt.abilist: Remove.
70943         * abilist/libthread_db.abilist: Remove.
70944         * abilist/libutil.abilist: Remove.
70945         * scripts/extract-abilist.awk: Remove.
70946         * scripts/merge-abilist.awk: Remove.
70947         * sysdeps/generic/libcidn.abilist: New file.
70948         * sysdeps/generic/libnss_compat.abilist: New file.
70949         * sysdeps/generic/libnss_db.abilist: New file.
70950         * sysdeps/generic/libnss_dns.abilist: New file.
70951         * sysdeps/generic/libnss_files.abilist: New file.
70952         * sysdeps/generic/libnss_hesiod.abilist: New file.
70953         * sysdeps/generic/libnss_nis.abilist: New file.
70954         * sysdeps/generic/libnss_nisplus.abilist: New file.
70955         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
70956         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
70957         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
70958         file.
70959         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
70960         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
70961         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
70962         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
70963         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
70964         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
70965         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
70966         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
70967         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
70968         file.
70969         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
70970         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
70971         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
70972         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
70973         file.
70974         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
70975         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
70976         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
70977         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
70978         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
70979         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
70980         file.
70981         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
70982         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
70983         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
70984         file.
70985         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
70986         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
70987         New file.
70988         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
70989         New file.
70990         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
70991         New file.
70992         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
70993         New file.
70994         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
70995         New file.
70996         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
70997         New file.
70998         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
70999         New file.
71000         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
71001         New file.
71002         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
71003         New file.
71004         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
71005         New file.
71006         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
71007         New file.
71008         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
71009         New file.
71010         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
71011         New file.
71012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
71013         file.
71014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
71015         New file.
71016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
71017         New file.
71018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
71019         file.
71020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
71021         New file.
71022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
71023         New file.
71024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
71025         file.
71026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
71027         New file.
71028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
71029         New file.
71030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
71031         New file.
71032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
71033         New file.
71034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
71035         New file.
71036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
71037         New file.
71038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
71039         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
71040         file.
71041         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
71042         New file.
71043         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
71044         file.
71045         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
71046         file.
71047         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
71048         file.
71049         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
71050         file.
71051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
71052         file.
71053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
71054         New file.
71055         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
71056         file.
71057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
71058         file.
71059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
71060         New file.
71061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
71062         file.
71063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
71064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
71065         file.
71066         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
71067         New file.
71068         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
71069         file.
71070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
71071         file.
71072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
71073         file.
71074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
71075         file.
71076         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
71077         file.
71078         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
71079         New file.
71080         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
71081         file.
71082         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
71083         file.
71084         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
71085         New file.
71086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
71087         file.
71088         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
71089         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
71090         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
71091         file.
71092         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
71093         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
71094         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
71095         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
71096         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
71097         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
71098         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
71099         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
71100         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
71101         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
71102         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
71103         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
71104         file.
71105         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
71106         New file.
71107         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
71108         file.
71109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
71110         file.
71111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
71112         file.
71113         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
71114         file.
71115         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
71116         file.
71117         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
71118         New file.
71119         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
71120         New file.
71121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
71122         file.
71123         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
71124         New file.
71125         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
71126         file.
71127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
71128         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
71129         file.
71130         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
71131         New file.
71132         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
71133         file.
71134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
71135         file.
71136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
71137         file.
71138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
71139         file.
71140         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
71141         file.
71142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
71143         New file.
71144         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
71145         New file.
71146         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
71147         file.
71148         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
71149         New file.
71150         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
71151         file.
71152
71153 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
71154
71155         * conform/conformtest.pl: Fix typo in handling typed-constant from
71156         allow-header.
71157
71158 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71159
71160         * README: Cut down references to pre-2.6 Linux kernels and
71161         Linuxthreads.  Update lists of configurations in libc and ports
71162         and sort alphabetically.  Say "or newer" with Linux kernel version
71163         requirements.
71164
71165         * config.h.in [IS_IN_build]: Allow compiling without optimization.
71166
71167 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
71168
71169         [BZ #887]
71170         * math/libm-test.inc (logb_test_downward): New test to expose
71171         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
71172         rounding mode.
71173
71174 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
71175
71176         [BZ #14027]
71177         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
71178         to be done.
71179         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
71180         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
71181
71182 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
71183
71184         * sysdeps/unix/i386/brk.S: Remove file.
71185         * sysdeps/unix/i386/dl-brk.S: Likewise.
71186         * sysdeps/unix/i386/pipe.S: Likewise.
71187         * sysdeps/unix/i386/sigreturn.S: Likewise.
71188         * sysdeps/unix/i386/syscall.S: Likewise.
71189         * sysdeps/unix/i386/vfork.S: Likewise.
71190         * sysdeps/unix/i386/wait.S: Likewise.
71191
71192         * sysdeps/unix/common/tcsendbrk.c: Move to ...
71193         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
71194
71195         * configure.in (arm*-none*): Do not allow without
71196         --enable-hacker-mode.
71197         (netbsd*): Remove case setting base_os.
71198         (386bsd*): Likewise.
71199         (freebsd*): Likewise.
71200         (bsdi*): Likewise.
71201         (osf*): Likewise.
71202         (sunos*): Likewise.
71203         (ultrix*): Likewise.
71204         (newsos*): Likewise.
71205         (dynix*): Likewise.
71206         (*bsd*): Likewise.
71207         (sysv*): Likewise.
71208         (isc*): Likewise.
71209         (esix*): Likewise.
71210         (sco*): Likewise.
71211         (minix*): Likewise.
71212         (irix4*): Likewise.
71213         (irix6*): Likewise.
71214         (solaris[2-9]*): Likewise.
71215         (none): Likewise.
71216         * configure: Regenerated.
71217
71218 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71219
71220         [BZ #11521]
71221         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
71222         overflow or cancellation in calculating denominator.
71223         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
71224         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
71225         down expression to avoid unexpected rounding in newer GCCs.
71226         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
71227
71228 2012-04-26  David S. Miller  <davem@davemloft.net>
71229
71230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
71231         long-double compat symbols.
71232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
71234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
71235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
71236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
71238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
71239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
71240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
71241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
71242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
71243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
71244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
71245
71246 2012-04-25  David S. Miller  <davem@davemloft.net>
71247
71248         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
71249         HWCAP_* values only after the memory barriers have been defined.
71250         (atomic_full_barrier): Define.
71251         (atomic_read_barrier): Define.
71252         (atomic_write_barrier): Define.
71253
71254 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
71255
71256         * shlib-versions: Add libgcc_s version information.
71257         * sysdeps/generic/libgcc_s.h: Remove.
71258         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
71259         libgcc_s.h.
71260         * sysdeps/gnu/unwind-resume.c: Likewise.
71261         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
71262
71263 2012-04-25  David S. Miller  <davem@davemloft.net>
71264
71265         * sysdeps/unix/sparc/brk.S: Delete.
71266         * sysdeps/unix/sparc/dl-brk.S: Delete.
71267         * sysdeps/unix/sparc/pipe.S: Delete.
71268         * sysdeps/unix/sparc/sysdep.S: Delete.
71269         * sysdeps/unix/sparc/sysdep.h: Delete.
71270         * sysdeps/unix/sparc/vfork.S: Delete.
71271         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
71272         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
71273         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
71274         (ret_ERRVAL, r0, r1, MOVE): Define.
71275         (JUMPTARGET): Remove.
71276         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
71277         sysdeps/unix/sparc/sysdep.h
71278         (ENTRY, END): Remove.
71279         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
71280
71281 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
71282
71283         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
71284         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
71285         -DIS_IN_build.
71286
71287         * timezone/README: Update upstream location and email address for
71288         tzcode and tzdata.
71289         * timezone/zdump.c: Update from tzcode 2012b.
71290         * timezone/zic.c: Likewise.
71291
71292         * configure.in (libc_cv_as_needed): Remove test.
71293         * configure: Regenerated.
71294         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
71295         conditional definition.
71296         [$(have-as-needed) != yes] (no-as-needed): Likewise.
71297         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
71298         * config.make.in (have-as-needed): Remove variable.
71299
71300 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71301             Paul Pluzhnikov  <ppluzhnikov@google.com>
71302
71303         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
71304         strings correctly.
71305
71306 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
71307
71308         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
71309         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
71310         * sysdeps/sh/strlen.S: Likewise.
71311
71312 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71313
71314         * sysdeps/unix/fork.S: Remove file.
71315         * sysdeps/unix/i386/fork.S: Likewise.
71316         * sysdeps/unix/sparc/fork.S: Likewise.
71317
71318         * sysdeps/unix/system.c: Remove file.
71319         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
71320
71321         * sysdeps/unix/getegid.S: Remove file.
71322         * sysdeps/unix/geteuid.S: Likewise.
71323
71324 2012-04-24  Roland McGrath  <roland@hack.frob.com>
71325
71326         * scripts/check-localplt.awk: New file.
71327         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
71328         of diff.
71329         * scripts/data/localplt-generic.data: Add a comment.
71330
71331         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
71332         NODE when __dir_mkfile failed.
71333         * sysdeps/mach/hurd/symlinkat.c: Likewise.
71334         Reported by Ludovic Courtès <ludo@gnu.org>.
71335
71336 2012-04-24  Andreas Jaeger  <aj@suse.de>
71337
71338         * Makerules (common-clean): Also remove gen-as-const-headers
71339         files.
71340
71341 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71342
71343         * Makerules (native-compile): Do not change working directory for
71344         build.  Use $(OUTPUT_OPTION) in command.
71345         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
71346
71347 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71348
71349         [BZ #13886]
71350         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
71351         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
71352         * math/libm-test.inc (floor_test): Add more tests.
71353         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
71354
71355 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
71356
71357         * sysdeps/unix/getdents.c: Remove file.
71358         * sysdeps/unix/sysv/getdents.c: Likewise.
71359         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
71360
71361         * sysdeps/unix/syscalls.list (madvise): Add syscall from
71362         sysdeps/unix/mman/syscalls.list.
71363         (mmap): Likewise.
71364         (mprotect): Likewise.
71365         (msync): Likewise.
71366         (munmap): Likewise.
71367         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
71368         * sysdeps/unix/mman/syscalls.list: Remove.
71369         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
71370
71371         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
71372         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
71373         * configure: Regenerated.
71374         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
71375         $(libgcc_s_suffix).
71376         * config.make.in (libgcc_s_suffix): Remove variable.
71377
71378 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
71379
71380         * sysdeps/unix/sysv/gethostname.c: Move to ...
71381         * sysdeps/posix/gethostname.c: ... here.
71382
71383         * sysdeps/unix/execve.S: Remove file.
71384
71385         * sysdeps/unix/_exit.S: Remove file.
71386
71387 2012-04-23  Andreas Jaeger  <aj@suse.de>
71388
71389         [BZ #13739]
71390         * manual/Makefile: Remove make dist support, there's no
71391         need for a stand-alone documentation tar ball.
71392         (TEXI2DVI): Define always, it's not in Makeconfig.
71393         (dist): Removed.
71394         (tar-it): Removed.
71395         (edition): Removed.
71396         (glibc-doc-$(edition).tar): Removed
71397         (%.Z): Removed.
71398         (%.gz): Removed.
71399         (%.uu): Removed.
71400         (ETAGS): Remove, it's in Makeconfig.
71401         (move-if-change): Remove, it's in Makeconfig.
71402
71403 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         [BZ #13970]
71406         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
71407         (strtod, strtof, strtold, strtol, strtoul, strtoq)
71408         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
71409         (strtod_l, strtof_l, strtold_l): Remove __wur.
71410         It is not necessarily an error to ignore strtol's return value.
71411         One can reliably look at the stored endptr to decide whether
71412         the number had valid syntax.
71413
71414 2012-04-21  Andreas Jaeger  <aj@suse.de>
71415
71416         [BZ #13739]
71417         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
71418
71419 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
71420
71421         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
71422         * sysdeps/unix/sysv/Versions: Remove file.
71423
71424 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
71425
71426         [BZ #13927]
71427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71428
71429 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
71430
71431         [BZ #7064]
71432         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
71433         version from __vm86.
71434
71435 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
71436
71437         * sysdeps/unix/common/lxstat.c: Remove file.
71438         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
71439
71440         * sysdeps/unix/sysv/Makefile: Remove file.
71441
71442         * sysdeps/unix/sysv/direct.h: Remove file.
71443
71444         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
71445         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
71446         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
71447         * sysdeps/unix/sysv/bits/signum.h: Likewise.
71448         * sysdeps/unix/sysv/bits/stat.h: Likewise.
71449         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
71450         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
71451
71452         * sysdeps/unix/sysv/setrlimit.c: Remove file.
71453
71454         * sysdeps/unix/xmknod.c: Remove file.
71455         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
71456
71457         * sysdeps/unix/sysv/settimeofday.c: Remove file.
71458
71459         * sysdeps/unix/sysv/i386/time.S: Remove file.
71460
71461         * sysdeps/unix/fxstat.c: Remove file.
71462         * sysdeps/unix/xstat.c: Likewise.
71463         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
71464
71465         * sysdeps/unix/sysv/sigaction.c: Remove file.
71466
71467         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
71468         (sysdep_headers): Remove variable.
71469         [termio.h not in sysdep_headers] (generated): Likewise.
71470         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
71471         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
71472         * sysdeps/unix/sysv/tcdrain.c: Likewise.
71473         * sysdeps/unix/sysv/tcflow.c: Likewise.
71474         * sysdeps/unix/sysv/tcflush.c: Likewise.
71475         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
71476         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
71477         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
71478         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
71479         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
71480
71481         * sysdeps/unix/siglist.c: Remove file.
71482
71483         * sysdeps/unix/getppid.S: Remove file.
71484
71485         * sysdeps/unix/mkdir.c: Remove file.
71486         * sysdeps/unix/rmdir.c: Likewise.
71487
71488 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
71489
71490         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
71491         ERR_MAX value.
71492         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
71493         errlist-compat value.
71494
71495 2012-04-18  David S. Miller  <davem@davemloft.net>
71496
71497         * sysdeps/generic/memcopy.h (reg_char): Delete.
71498         * debug/strcat_chk.c: Use char, not reg_char.
71499         * debug/strcpy_chk.c: Likewise.
71500         * debug/strncat_chk.c: Likewise.
71501         * debug/strncpy_chk.c: Likewise.
71502         * string/memchr.c: Likewise.
71503         * string/memrchr.c: Likewise.
71504         * string/rawmemchr.c: Likewise.
71505         * string/strcat.c: Likewise.
71506         * string/strchr.c: Likewise.
71507         * string/strchrnul.c: Likewise.
71508         * string/strcmp.c: Likewise.
71509         * string/strcpy.c: Likewise.
71510         * string/strncat.c: Likewise.
71511         * string/strncmp.c: Likewise.
71512         * string/strncpy.c: Likewise.
71513
71514 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71515
71516         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
71517         __builtin_memcopy is called when src and dest ranges are known to not
71518         overlap.
71519
71520 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71521
71522         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
71523         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
71524         fwd_align_merge macro call.
71525         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
71526         bwd_align_merge macro call.
71527         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71528
71529 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
71530
71531         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
71532         bwd_align_merge macros.
71533         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
71534         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
71535         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
71536
71537 2012-04-18  David S. Miller  <davem@davemloft.net>
71538
71539         * sysdeps/sparc/sparc64/memcopy.h: Delete.
71540
71541 2012-04-18  Andreas Jaeger  <aj@suse.de>
71542
71543         [BZ# 6794]
71544         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
71545         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
71546         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71547
71548         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
71549         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
71550         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71551
71552         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
71553         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
71554         Adjust for changed ldbl-128 files.
71555
71556         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
71557         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
71558         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
71559
71560 2012-04-17  David S. Miller  <davem@davemloft.net>
71561
71562         * sysdeps/sparc/sparc32/memcopy.h: Delete.
71563
71564 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
71565
71566         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
71567         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
71568         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
71569         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
71570         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
71571         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
71572
71573 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71574
71575         [BZ #6794]
71576         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
71577         * math/libm-test.inc: Add ilogb errno and exception tests.
71578         * math/w_ilogb.c: New file: ilogb wrapper.
71579         * math/w_ilogbf.c: New file: ilogbf wrapper.
71580         * math/w_ilogbl.c: New file: ilogbl wrapper.
71581         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
71582         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
71583         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
71584         exception being thrown with 0.0 as argument.
71585         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
71586         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
71587         exception being thrown with 0.0 as argument.
71588         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
71589         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71590         exception being thrown with 0.0 as argument.
71591         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
71592         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
71593         exception being thrown with 0.0 as argument.
71594         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
71595         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
71596         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
71597         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
71598         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
71599         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
71600         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
71601         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
71602         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
71603
71604 2012-04-17  Petr Baudis  <pasky@ucw.cz>
71605
71606         * include/sys/uio.h: Change __vector to __iovec to avoid clash
71607         with altivec.
71608
71609 2012-04-16  Marek Polacek  <polacek@redhat.com>
71610
71611         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
71612
71613 2012-04-16  Marek Polacek  <polacek@redhat.com>
71614
71615         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
71616         operands of fdivp instruction.
71617
71618 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71619
71620         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
71621         * elf/tst-auditmod3b.c: Likewise.
71622         * elf/tst-auditmod4b.c: Likewise.
71623         * elf/tst-auditmod5b.c: Likewise.
71624         * elf/tst-auditmod6b.c: Likewise.
71625         * elf/tst-auditmod6c.c: Likewise.
71626         * elf/tst-auditmod7b.c: Likewise.
71627         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
71628         * sysdeps/x86_64/preconfigure.in: Likewise.
71629         * sysdeps/x86_64/preconfigure: Regenerated.
71630
71631 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
71632
71633         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
71634         __ILP32__.
71635
71636 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
71637
71638         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
71639         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
71640
71641 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
71642
71643         [BZ #13973]
71644         * locale/iso-639.def: Fix gl language name. Spotted by
71645         Yaron Shahrabani.
71646
71647 2012-04-12  Roland McGrath  <roland@hack.frob.com>
71648
71649         [BZ #2074]
71650         * libio/libio.h (__io_write_fn): Update comment.
71651
71652 2012-04-12  Petr Baudis  <pasky@ucw.cz>
71653
71654         [BZ #2074]
71655         * stdio.texi (Hook Functions): The user provided writer function
71656         is not allowed to return -1.
71657
71658 2012-04-11  David S. Miller  <davem@davemloft.net>
71659
71660         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71661
71662 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
71663
71664         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
71665         Add a leading slash to rtkaio.
71666
71667 2012-04-11  Jim Meyering  <meyering@redhat.com>
71668
71669         [BZ #11959]
71670         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
71671         It is not necessarily an error to ignore fwrite's return
71672         value.  One can reliably use ferror to test for errors after
71673         the fact.
71674
71675 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71676
71677         * bits/types.h (__snseconds_t): New type.
71678         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
71679
71680         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
71681         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71682         (__SNSECONDS_T_TYPE): Likewise.
71683         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71684         (__SNSECONDS_T_TYPE): Likewise.
71685         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71686         (__SNSECONDS_T_TYPE): Likewise.
71687
71688 2012-04-10  Andreas Jaeger  <aj@suse.de>
71689
71690         [BZ #2636]
71691         * manual/time.texi (Processor Time): Return type of times is
71692         elapsed real time since an arbitrary point in the past.
71693         (CPU Time): Move CLK_TCK from here...
71694         (Processor Time): ...to here.  Correct description.
71695         * manual/conf.texi (Constants for Sysconf): Correct description of
71696         _SC_CLK_TCK.
71697
71698 2012-04-10  David S. Miller  <davem@davemloft.net>
71699
71700         [BZ #13967]
71701         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
71702         where the is a gap between DT_REL(A) and DT_JMPREL.
71703
71704 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
71705
71706         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
71707         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71708         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71709
71710 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
71711
71712         * elf/dl-support.c (_dl_inhibit_cache): New variable.
71713         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
71714         (dl_main): Handle --inhibit-cache.
71715         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
71716         _dl_inhibit_cache.
71717         * elf/dl-load.c (_dl_map_object): Use it.
71718         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
71719
71720 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71721
71722         [BZ #13872]
71723         * sysdeps/i386/fpu/e_powl.S (p78): New object.
71724         (__ieee754_powl): Saturate large exponents rather than testing for
71725         overflow of y*log2(x).
71726         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71727         * math/libm-test.inc (pow_test): Do not permit spurious overflow
71728         exceptions.
71729
71730         [BZ #11521]
71731         * math/s_ctan.c: Include <float.h>.
71732         (__ctan): Avoid internal overflow or cancellation in calculating
71733         denominator.
71734         * math/s_ctanf.c: Likewise.
71735         * math/s_ctanl.c: Likewise.
71736         * math/s_ctanh.c: Likewise.
71737         * math/s_ctanhf.c: Likewise.
71738         * math/s_ctanhl.c: Likewise.
71739         * math/libm-test.inc (ctan_test): Add more tests.
71740         (ctanh_test): Likewise.
71741         * sysdeps/i386/fpu/libm-test-ulps: Update.
71742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71743
71744 2012-04-09  Andreas Jaeger  <aj@suse.de>
71745
71746         [BZ #6894]
71747         * manual/filesys.texi (Directory Entries): Mention that d_namlen
71748         is an optional BSD extension.
71749
71750         [BZ #10254]
71751         * manual/stdio.texi (Opening Streams): Document additional fopen
71752         parameters.
71753
71754 2012-04-09  Roland McGrath  <roland@hack.frob.com>
71755
71756         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
71757         %eax without telling the compiler.
71758
71759 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
71760
71761         [BZ # 13963]
71762         * manual/install.texi: Use sourceware.org.
71763
71764 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
71765
71766         [BZ #13873]
71767         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
71768         (__ieee754_pow): Generate overflow and underflow using huge*huge
71769         and tiny*tiny rather than just returning constant infinity or zero
71770         for large exponents.
71771         * math/libm-test.inc (pow_test): Require overflow exceptions for
71772         applicable cases of large exponents.
71773
71774         [BZ #706]
71775         * sysdeps/i386/fpu/e_pow.S (p10): New object.
71776         (__ieee754_pow): Use iterative multiplication algorithm only for
71777         integer exponents with absolute value below 1024.  Check for odd
71778         integer exponents when using algorithm for real exponents.
71779         * math/libm-test.inc (pow_test): Add more tests.
71780         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71781
71782 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
71783
71784         [BZ #13705]
71785         * math/libm-test.inc (exp_test): Do not allow overflow exception
71786         on underflow test.
71787
71788 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
71789
71790         [BZ #13705]
71791         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
71792         instead of __kernel_standard_f.
71793
71794 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
71795
71796         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
71797         * sysdeps/x86_64/memset_chk.S: Likewise.
71798
71799 2012-04-08  Andreas Jaeger  <aj@suse.de>
71800
71801         [BZ #10153]
71802         * manual/startup.texi (Environment Access): Describe return value
71803         for putenv and setenv.
71804
71805         [BZ #6895]
71806         * manual/filesys.texi (Directory Entries): Add description for
71807         DT_LNK.
71808
71809         [BZ #6890]
71810         * manual/filesys.texi (Directory Entries): Clarify that it's file
71811         system not operating system in the description of DT_UNKNOWN.
71812
71813         [BZ #6578]
71814         * manual/syslog.texi (closelog): Fix reference, it's openlog.
71815
71816 2012-04-08  Stephen Compall  <s11@member.fsf.org>
71817
71818         [BZ #6649]
71819         * manual/llio.texi (Opening and Closing Files): Add cross
71820         reference to explain mode argument.
71821
71822 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
71823
71824         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
71825         * sysdeps/x86_64/memset_chk.S: Likewise.
71826
71827 2012-04-07  David S. Miller  <davem@davemloft.net>
71828
71829         * elf/elf.h (R_SPARC_WDISP10): Define.
71830         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
71831         R_SPARC_SIZE32.
71832         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
71833         R_SPARC_SIZE64 and R_SPARC_H34.
71834
71835 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
71836
71837         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
71838         conditions and remove no longer applicable assertion.
71839
71840 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
71841
71842         * bits/byteswap.h: Include <features.h>.
71843         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
71844         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
71845
71846 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
71847
71848         * bits/byteswap.h (__bswap_16): Removed.
71849         Include <bits/byteswap-16.h> to get __bswap_16.
71850         * sysdeps/i386/bits/byteswap.h: Likewise.
71851         * sysdeps/s390/bits/byteswap.h: Likewise.
71852         * sysdeps/x86_64/bits/byteswap.h: Likewise.
71853         * bits/byteswap-16.h: New file.
71854         * sysdeps/i386/bits/byteswap-16.h: Likewise.
71855         * sysdeps/s390/bits/byteswap-16.h: Likewise.
71856         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
71857         * string/Makefile (headers): Add bits/byteswap-16.h.
71858
71859 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
71860
71861         [BZ #13895]
71862         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
71863         extra indirection.
71864         * nss/Makefile (tests-static, tests): Add tst-nss-static.
71865         * nss/tst-nss-static.c: New.
71866
71867 2012-04-06  Robert Millan  <rmh@gnu.org>
71868
71869         [BZ #6486]
71870         * manual/llio.texi (File Position Primitive): lseek
71871         refers to WHENCE when it really means OFFSET.
71872
71873 2012-04-06  Andreas Jaeger  <aj@suse.de>
71874
71875         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
71876         strncmp declarations.
71877
71878         * abilist/libc.abilist: Add __poll and __ppoll.
71879
71880 2012-04-05  David S. Miller  <davem@davemloft.net>
71881
71882         * scripts/check-local-headers.sh: Accept a host triplet in the
71883         path matched by the exclude regexp.
71884
71885         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
71886         definition.
71887         * sysdeps/powerpc/powerpc32/dl-machine.h
71888         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
71889         * sysdeps/s390/s390-32/dl-machine.h
71890         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
71891         * sysdeps/sparc/sparc32/dl-machine.h
71892         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
71893         * sysdeps/sparc/sparc64/dl-machine.h
71894         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
71895
71896         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
71897         lazy binding.
71898         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
71899         undefined symbol errors.
71900
71901         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
71902         DT_NEEDED entries.
71903
71904 2012-04-05  Michael Matz  <matz@suse.de>
71905
71906         [BZ #13592]
71907         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
71908
71909 2012-04-05  Andreas Jaeger  <aj@suse.de>
71910
71911         [BZ #13908]
71912         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
71913         comment.
71914
71915 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71916
71917         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
71918         which ROUND is no valid rounding mode.
71919
71920 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71921
71922         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
71923         read again.
71924         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
71925
71926 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71927
71928         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
71929         an exception using FPU order intentionally.
71930
71931 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
71932
71933         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
71934         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
71935         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
71936         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
71937
71938 2012-04-05  Simon Josefsson  <simon@josefsson.org>
71939
71940         [BZ #12340]
71941         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
71942         EINVAL when BUFLEN is too smal.
71943
71944 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
71945
71946         [BZ #13553]
71947         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
71948         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
71949
71950 2012-04-03  Andreas Jaeger  <aj@suse.de>
71951
71952         [BZ #13938]
71953         * manual/setjmp.texi (System V contexts): Fix sentence.
71954
71955         [BZ #13926]
71956         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
71957         New macro for this case.
71958         [!__GNUC__] (__bswap_64): New inline function for this case.
71959         * sysdeps/x86_64/bits/byteswap.h: Likewise.
71960         * bits/byteswap.h: Likewise.
71961         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
71962         ull, guard with __GLIBC_HAVE_LONG_LONG.
71963
71964         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
71965         __GLIBC_HAVE_LONG_LONG.
71966
71967         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
71968         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
71969
71970 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
71971
71972         [BZ #13691]
71973         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
71974         inptr and inend, rather than using last_ch.
71975
71976 2012-04-02  David S. Miller  <davem@davemloft.net>
71977
71978         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
71979         * stdio-common/printf-parse.h (read_int): Change return type to
71980         'int', return -1 on INT_MAX overflow.
71981         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
71982         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
71983         overflows INT_MAX.  Check for overflow of in-format-string precision
71984         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
71985         SIZE_MAX not INT_MAX for integer overflow test.
71986         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
71987         skip the construct in the format string but do not record anything.
71988         * stdio-common/bug22.c: Adjust to test both width/prevision
71989         INT_MAX overflow as well as total length INT_MAX overflow.  Check
71990         explicitly for proper errno values.
71991
71992 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
71993
71994         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
71995         CHAR_MAX.
71996         * string/test-strcmp.c [! WIDE]: Likewise.
71997         * time/tst-mktime2.c: Likewise for INT_MAX.
71998         * string/test-string.h: #include <sys/param.h> for MIN.
71999
72000         * csu/init-first.c (__libc_init_first): Call __ctype_init.
72001         * sysdeps/i386/init-first.c (init): Likewise.
72002         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
72003         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
72004         * sysdeps/sh/init-first.c (init): Likewise.
72005
72006 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
72007
72008         * po/ru.po: Update from translation team.
72009         * po/vi.po: Likewise.
72010
72011 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
72012
72013         * resolv/nss_dns/dns-host.c: Merge copyright years.
72014
72015 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72016
72017         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
72018         Optimize memcpy with prefetch if
72019         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
72020         src, dst pointers have unequal 16 byte alignments.
72021
72022 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
72023
72024         [BZ #13928]
72025         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
72026         from a CNAME entry and return the minimum ttl for the query.
72027         (gaih_getanswer_slice): Likewise.
72028
72029 2012-03-30  Jeff Law  <law@redhat.com>
72030
72031         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
72032         due to long keys.
72033         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
72034         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
72035
72036         * resolv/nss_dns/dns-host.c: Update copyright year.
72037
72038 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
72039
72040         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
72041         requests to save a system call.  Fix check that all bytes are sent.
72042
72043         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
72044         comments for sendmmsg.
72045
72046 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
72047
72048         [BZ #13691]
72049         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
72050         with only 1 character between 0x0041 and 0x01b0.
72051         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
72052         * wcsmbs/tst-mbsnrtowcs.c: New file.
72053
72054 2012-03-29  David S. Miller  <davem@davemloft.net>
72055
72056         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
72057         small copies by hand.
72058
72059 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
72060
72061         [BZ #13761]
72062         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
72063         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
72064         group memberships.
72065
72066 2012-03-28  David S. Miller  <davem@davemloft.net>
72067
72068         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
72069         that branches into memcpy.
72070         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
72071         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
72072         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
72073         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
72074         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
72075         bits.
72076         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
72077         implementation too.
72078         * sysdeps/sparc/mempcpy.S: New file.
72079
72080         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
72081         the IFUNC routine in the libc case.
72082         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
72083
72084         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
72085         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
72086         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
72087         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
72088         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
72089         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
72090         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
72091         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
72092
72093         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
72094         loop to 256 bytes instead of 64 bytes and fix test signedness.
72095
72096         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
72097         * sysdeps/sparc/sparc32/Makefile: rather than here...
72098         * sysdeps/sparc/sparc64/Makefile: and here.
72099
72100 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
72101
72102         * malloc/mallocbug.c: Avoid warnings about unused variables.
72103
72104 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
72105
72106         [BZ #13760]
72107         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
72108         in the right place. Discard and retry query if response is
72109         larger than input buffer size.
72110
72111 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
72112
72113         [BZ #369]
72114         [BZ #2678]
72115         [BZ #3866]
72116         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
72117         x for large integer exponent.
72118         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
72119         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
72120         sign of result as needed afterwards.
72121         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
72122         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
72123         result for underflowing pow the same as for overflow.
72124         (__kernel_standard_l): Handle powl overflow and underflow here
72125         rather than calling __kernel_standard.
72126         * math/libm-test.inc (pow_test): Add more tests.
72127
72128         [BZ #3868]
72129         [BZ #13879]
72130         [BZ #13910]
72131         [BZ #13911]
72132         [BZ #13912]
72133         [BZ #13913]
72134         [BZ #13915]
72135         [BZ #13916]
72136         [BZ #13917]
72137         [BZ #13918]
72138         [BZ #13919]
72139         [BZ #13920]
72140         [BZ #13921]
72141         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
72142         * sysdeps/ieee754/k_standard.c: Include <float.h>.
72143         (__kernel_standard_l): New function.
72144         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
72145         __kernel_standard.
72146         * math/w_acosl.c (__acosl): Likewise.
72147         * math/w_asinl.c (__asinl): Likewise.
72148         * math/w_atan2l.c (__atan2l): Likewise.
72149         * math/w_atanhl.c (__atanhl): Likewise.
72150         * math/w_coshl.c (__coshl): Likewise.
72151         * math/w_exp10l.c (__exp10l): Likewise.
72152         * math/w_exp2l.c (__exp2l): Likewise.
72153         * math/w_fmodl.c (__fmodl): Likewise.
72154         * math/w_hypotl.c (__hypotl): Likewise.
72155         * math/w_j0l.c (__j0l, __y0l): Likewise.
72156         * math/w_j1l.c (__j1l, __y1l): Likewise.
72157         * math/w_jnl.c (__jnl, __ynl): Likewise.
72158         * math/w_lgammal.c (__lgammal): Likewise.
72159         * math/w_log10l.c (__log10l): Likewise.
72160         * math/w_log2l.c (__log2l): Likewise.
72161         * math/w_logl.c (__logl): Likewise.
72162         * math/w_powl.c (__powl): Likewise.
72163         * math/w_remainderl.c (__remainderl): Likewise.
72164         * math/w_scalbl.c (sysv_scalbl): Likewise.
72165         * math/w_sinhl.c (__sinhl): Likewise.
72166         * math/w_sqrtl.c (__sqrtl): Likewise.
72167         * math/w_tgammal.c (__tgammal): Likewise.
72168         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
72169         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
72170         * math/libm-test.inc (acos_test): Add more tests.
72171         (acosh_test): Likewise.
72172         (asin_test): Likewise.
72173         (atanh_test): Likewise.
72174         (exp_test): Likewise.
72175         (exp10_test): Likewise.
72176         (exp2_test): Likewise.
72177         (expm1_test): Likewise.
72178         (lgamma_test): Likewise.
72179         (log_test): Likewise.
72180         (log10_test): Likewise.
72181         (log1p_test): Likewise.
72182         (log2_test): Likewise.
72183         (pow_test): Do not allow some spurious overflow exceptions.
72184         (sqrt_test): Add more tests.
72185         (tgamma_test): Likewise.
72186         (y0_test): Likewise.
72187         (y1_test): Likewise.
72188         (yn_test): Likewise.
72189
72190 2012-03-27  Anton Blanchard  <anton@samba.org>
72191
72192         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
72193         MAP_HUGETLB.
72194         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
72195         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
72196         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
72197
72198 2012-03-27  David S. Miller  <davem@davemloft.net>
72199
72200         * conform/Makefile: Run run-conformtest.sh using $(BASH).
72201
72202         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
72203         have-as-vis3 check.
72204
72205 2012-03-27  Andreas Jaeger  <aj@suse.de>
72206
72207         * sysdeps/x86_64/elf/configure.in: Moved to ...
72208         * sysdeps/x86_64/configure.in: ... here.
72209         * sysdeps/x86_64/elf/start.S: Moved to ...
72210         * sysdeps/x86_64/start.S: ... here.
72211         * sysdeps/x86_64/elf/configure: Delete.
72212
72213         * sysdeps/x86_64/configure.in: Merge contents from
72214         sysdeps/i386/configure.in (without i686 check).
72215
72216         * sysdeps/i386/elf/Versions: Merge into ...
72217         * sysdeps/i386/Versions: ... this.
72218         * sysdeps/i386/elf/Versions: Delete file.
72219         * sysdeps/i386/elf/start.S: Moved to ...
72220         * sysdeps/i386/start.S: ...here.
72221         * sysdeps/i386/elf/configure.in: Merge into...
72222         * sysdeps/i386/configure.in: ...here.
72223         * sysdeps/i386/elf/configure.in: Delete file.
72224         * sysdeps/i386/elf/configure: Delete file.
72225
72226         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
72227         * debug/backtracesyms.c: ... here.
72228         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
72229         * debug/backtracesymsfd.c: ... here.
72230         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
72231         * sysdeps/generic/ifunc-sel.h: ... here.
72232
72233         * sysdeps/unix/i386/start.c: Delete file.
72234         * sysdeps/unix/sparc/start.c: Delete file.
72235         * sysdeps/unix/start.c: Delete file.
72236
72237         * sysdeps/sh/elf/configure.in: Moved to ...
72238         * sysdeps/sh/configure.in: ... here.
72239         * sysdeps/sh/elf/start.S: Moved to ...
72240         * sysdeps/sh/start.S: ... here.
72241         * sysdeps/sh/elf/configure: Delete file.
72242
72243         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
72244         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
72245         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
72246         * sysdeps/powerpc/powerpc64/entry.h: ... here.
72247         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
72248         * sysdeps/powerpc/powerpc64/start.S: here.
72249         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
72250         * sysdeps/powerpc/powerpc64/Makefile: ... this.
72251         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
72252         * sysdeps/powerpc/powerpc64/configure.in: ... this.
72253         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
72254
72255         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
72256         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
72257         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
72258         * sysdeps/powerpc/powerpc32/start.S: ... here.
72259         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
72260         * sysdeps/powerpc/powerpc32/configure.in: ... this.
72261         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
72262
72263         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
72264         * sysdeps/powerpc/ifunc-sel.h: ... here.
72265         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
72266         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
72267
72268         * sysdeps/sparc/elf/configure.in: Moved to ...
72269         * sysdeps/sparc/configure.in: ... here.
72270         * sysdeps/sparc/elf/configure: Delete file.
72271         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
72272         * sysdeps/sparc/sparc32/start.S: ... here.
72273         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
72274         * sysdeps/sparc/sparc64/start.S: ... here.
72275         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
72276         * sysdeps/sparc/sparc32/Makefile: ... this.
72277         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
72278         * sysdeps/sparc/sparc64/Makefile: ... this.
72279
72280         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
72281         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
72282         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
72283         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
72284         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
72285         * sysdeps/s390/s390-32/setjmp.S: ... here.
72286         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
72287         * sysdeps/s390/s390-32/configure.in: ... here.
72288         * sysdeps/s390/s390-32/elf/configure: Delete file.
72289         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
72290         * sysdeps/s390/s390-32/start.S: ... here.
72291
72292         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
72293         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
72294         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
72295         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
72296         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
72297         * sysdeps/s390/s390-64/setjmp.S: ... here.
72298         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
72299         * sysdeps/s390/s390-64/configure.in: ... here
72300         * sysdeps/s390/s390-64/elf/configure: Delete file.
72301         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
72302         * sysdeps/s390/s390-64/start.S: ... here.
72303         * sysdeps/s390/s390-64/elf/configure: Delete.
72304
72305         * configure.in: Remove support for elf directories in sysdeps.
72306
72307         * configure: Regenerated.
72308         * sysdeps/i386/configure: Regenerated.
72309         * sysdeps/powerpc/powerpc32/configure: Regenerated.
72310         * sysdeps/powerpc/powerpc64/configure: Regenerated.
72311         * sysdeps/s390/s390-32/configure: Regenerated.
72312         * sysdeps/s390/s390-64/configure: Regenerated.
72313         * sysdeps/sh/configure: Regenerated.
72314         * sysdeps/sparc/configure: Regenerated.
72315         * sysdeps/x86_64/configure: Regenerated.
72316
72317 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
72318
72319         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72320
72321         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
72322         denormal result into account.
72323
72324 2012-03-25  Roland McGrath  <roland@hack.frob.com>
72325
72326         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
72327         Reported by Allan McRae <allan@archlinux.org>.
72328
72329 2012-03-23  Jeff Law  <law@redhat.com>
72330
72331         * nss/getnssent.c (__nss_getent): Fix typo.
72332
72333 2012-03-23  David S. Miller  <davem@davemloft.net>
72334
72335         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72336
72337 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
72338
72339         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
72340         to pad to uint64_t for each field.
72341         (dl_tls_index): Replace unsigned long with uint64_t.
72342
72343 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
72344         Paul Pluzhnikov  <ppluzhnikov@google.com>
72345
72346         [BZ #6528]
72347         * grp/Makefile (otherlibs): Don't set it.
72348         * inet/Makefile (otherlibs): Likewise.
72349         * login/Makefile (otherlibs): Likewise.
72350         * nscd/Makefile (otherlibs): Likewise.
72351         * posix/Makefile (otherlibs): Likewise.
72352         * pwd/Makefile (otherlibs): Likewise.
72353         * rt/Makefile (otherlibs): Likewise.
72354         * sunrpc/Makefile (otherlibs): Likewise.
72355         * nss/Makefile (otherlibs): Likewise.
72356         Add libnss_files to routines and static-only-routines.
72357         ($(objpfx)getent): Remove rule.
72358         * resolv/Makefile: Add libnss_dns and libresolv to routines and
72359         static-only-routines.
72360
72361 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72362
72363         [BZ #13892]
72364         * math/s_cexp.c: Include <float.h>.
72365         (__cexp): Handle exp result overflowing not necessarily
72366         overflowing both real and imaginary parts of result.
72367         * math/s_cexpf.c: Likewise.
72368         * math/s_cexpl.c: Likewise.
72369         * math/libm-test.inc (cexp_test): Add more tests.
72370         * sysdeps/i386/fpu/libm-test-ulps: Update.
72371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72372
72373 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72374
72375         * include/link.h (ELFW): New macro.
72376         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
72377         Replace ELF64_R_TYPE with ELFW(R_TYPE).
72378
72379 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72380
72381         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
72382         with uint64_t.
72383
72384 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72385
72386         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
72387         declaration.
72388         (struct La_x32_retval): Likewise.
72389
72390 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
72391
72392         * sysdeps/x86_64/preconfigure.in: New file.
72393         * sysdeps/x86_64/preconfigure: New generated file.
72394
72395 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
72396
72397         [BZ #13824]
72398         * math/e_exp2l.c: Include <float.h>.
72399         (__ieee754_exp2l): Handle overflow and underflow cases
72400         separately.  Only pass fractional part of argument to
72401         __ieee754_expl.
72402         * math/libm-test.inc (exp2_test): Add more tests.
72403
72404         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
72405         negating x to take absolute value.
72406         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
72407         Likewise.
72408         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
72409         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
72410         Likewise.
72411         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
72412         computing low part if x was negated.
72413         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
72414
72415 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72416
72417         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
72418         la_x32_gnu_pltexit.
72419         (pltexit): Cast int_retval to ptrdiff_t.
72420         * elf/tst-auditmod3b.c: Likewise.
72421         * elf/tst-auditmod4b.c: Likewise.
72422         * elf/tst-auditmod5b.c: Likewise.
72423         * elf/tst-auditmod6b.c: Likewise.
72424         * elf/tst-auditmod6c.c: Likewise.
72425         * elf/tst-auditmod7b.c: Likewise.
72426
72427         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
72428         and x32_gnu_pltexit.
72429
72430         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
72431         __ELF_NATIVE_CLASS.
72432         (La_x32_regs): New macro.
72433         (La_x32_retval): Likewise.
72434         (la_x32_gnu_pltenter): New function prototype.
72435         (la_x32_gnu_pltexit): Likewise.
72436
72437 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
72438
72439         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
72440         exponent.
72441
72442         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72443
72444         * configure.in (libc_cv_cc_nofma): Check for option to disable
72445         generation of FMA instructions.
72446         * configure: Regenerate.
72447         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
72448         * sysdeps/ieee754/dbl-64/Makefile: New file.
72449         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
72450         Remove brandred-fma4.
72451         (CFLAGS-brandred-fma4.c): Remove.
72452         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
72453         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
72454         define.
72455         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
72456         define.
72457
72458 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72459
72460         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
72461         LLONG_MAX != LONG_MAX.
72462         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72463         (_fitoa_word): Likewise.
72464         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
72465         LLONG_MAX != LONG_MAX.
72466         * stdio-common/_itowa.h: Include <_itoa.h>.
72467         (_itowa_word): Use _ITOA_WORD_TYPE on value.
72468         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
72469         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
72470         only if not defined.
72471         (_ITOA_WORD_TYPE): Likewise.
72472         (_itoa_word): Use _ITOA_WORD_TYPE on value.
72473         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
72474
72475 2012-03-21  David S. Miller  <davem@davemloft.net>
72476
72477         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72478
72479 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
72480
72481         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
72482         of x86_64 when setting libc_cv_slibdir, libdir and
72483         libc_cv_localedir.
72484         * sysdeps/unix/sysv/linux/configure: Regenerated.
72485
72486 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72487
72488         * manual/lang.texi (Old Varargs): Remove section.
72489         (How Variadic): Update menu.
72490         (va_start): Do not mention varargs.h.
72491
72492 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72493             Joseph Myers  <joseph@codesourcery.com>
72494
72495         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
72496         link test.
72497         * configure: Regenerated.
72498
72499 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
72500
72501         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
72502         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
72503         conformtest.pl
72504
72505 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72506
72507         * NOTES: Remove.
72508         * Makefile (files-for-dist): Remove NOTES.
72509         (NOTES): Remove rule.
72510         * README: Don't refer to NOTES.
72511         * manual/creature.texi: Don't include macros.texi.
72512         * manual/intro.texi (creature.texi): Remove comment referring to
72513         NOTES.
72514
72515         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
72516         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
72517         * configure: Regenerated.
72518         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
72519         LIBC_TRY_CC_OPTION.
72520         (libc_cv_as_i686): Likewise.
72521         (libc_cv_cc_avx): Likewise.
72522         (libc_cv_cc_sse2avx): Likewise.
72523         (libc_cv_cc_fma4): Likewise.
72524         (libc_cv_cc_novzeroupper): Likewise.
72525         * sysdeps/i386/configure: Regenerated.
72526
72527         [BZ #13883]
72528         * sysdeps/i386/fpu/s_cexp.S: Remove.
72529         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
72530         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
72531         * math/libm-test.inc (cexp_test): Add more tests.
72532         * sysdeps/i386/fpu/libm-test-ulps: Update.
72533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72534
72535 2012-03-21  Allan McRae  <allan@archlinux.org>
72536
72537         * timezone/Makefile: Do not install iso3166.tab and zone.tab
72538
72539 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
72540
72541         [BZ #13871]
72542         * math/w_exp2.c: Do not include <float.h>.
72543         (o_threshold, u_threshold): Remove.
72544         (__exp2): Calculate result before checking finiteness and calling
72545         __kernel_standard.
72546         * math/w_exp2f.c: Likewise.
72547         * math/w_exp2l.c: Likewise.
72548         * math/libm-test.inc (exp2_test): Require overflow exception for
72549         1e6 input.
72550
72551         [BZ #3866]
72552         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
72553         range of signed 64-bit integers before using fistpll.  Remove
72554         checks for whether integers fit in mantissa bits.
72555         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
72556         the range of signed 32-bit integers before using fistpl.  Remove
72557         checks for whether integers fit in mantissa bits.
72558         * sysdeps/i386/fpu/e_powl.S (p64): New object.
72559         (__ieee754_powl): Test for y outside the range of signed 64-bit
72560         integers before using fistpll.  Reduce 64-bit values to 63-bit
72561         ones as needed.
72562         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
72563         divide-by-zero is raised for zero to large negative powers.
72564         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
72565         (__ieee754_powl): Test for y outside the range of signed 64-bit
72566         integers before using fistpll.  Reduce 64-bit values to 63-bit
72567         ones as needed.
72568         * math/libm-test.inc (pow_test): Add more tests.
72569
72570 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72571
72572         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
72573         <stdio-common/_itoa.h>.
72574         * debug/segfault.c: Likewise.
72575         * elf/dl-cache.c: Likewise.
72576         * elf/dl-minimal.c: Likewise.
72577         * elf/dl-misc.c: Likewise.
72578         * elf/dl-sysdep.c: Likewise.
72579         * elf/dl-version.c: Likewise.
72580         * elf/rtld.c: Likewise.
72581         * hurd/hurdsock.c: Likewise.
72582         * hurd/lookup-retry.c: Likewise.
72583         * malloc/malloc.c: Likewise.
72584         * malloc/mtrace.c: Likewise.
72585         * nscd/nscd_getgr_r.c: Likewise.
72586         * nscd/nscd_getpw_r.c: Likewise.
72587         * nscd/nscd_getserv_r.c: Likewise.
72588         * posix/getopt_init.c: Likewise.
72589         * posix/wordexp.c: Likewise.
72590         * stdio-common/_itoa.c: Likewise.
72591         * stdio-common/printf_fphex.c: Likewise.
72592         * stdio-common/vfprintf.c: Likewise.
72593         * string/_strerror.c: Likewise.
72594         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
72595         * sysdeps/i386/i686/hp-timing.h: Likewise.
72596         * sysdeps/mach/_strerror.c: Likewise.
72597         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
72598         * sysdeps/mach/hurd/sethostid.c: Likewise.
72599         * sysdeps/mach/hurd/xmknodat.c: Likewise.
72600         * sysdeps/mach/xpg-strerror.c: Likewise.
72601         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
72602         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
72603         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
72604         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
72605         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
72606         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
72607         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
72608         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
72609         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
72610         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
72611         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
72612         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
72613         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
72614         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
72615         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
72616         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
72617         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
72618         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
72619         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
72620         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
72621         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
72622
72623         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
72624
72625         * stdio-common/_itoa.h: Moved to ...
72626         * sysdeps/generic/_itoa.h: Here.
72627
72628         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
72629
72630         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
72631         instead of "_itoa.h" and "_itowa.h".
72632         * stdio-common/vfprintf.: Likewise.
72633
72634 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72635
72636         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
72637         <bits/wordsize.h>.
72638         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
72639         (__signbit): Likwise.
72640         (llrintf): Likwise.
72641         (llrint): Likwise.
72642
72643 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
72644
72645         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
72646         __WORDSIZE != 64.
72647
72648 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
72649
72650         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
72651         OVERFLOW_EXCEPTION_OK.
72652         * math/libm-test.inc ("Philosophy"): Update comment about
72653         exception testing.
72654         (OVERFLOW_EXCEPTION): Define.
72655         (OVERFLOW_EXCEPTION_OK): Likewise.
72656         (INVALID_EXCEPTION_OK): Renumber.
72657         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
72658         (IGNORE_ZERO_INF_SIGN): Likewise.
72659         (test_exceptions): Handle FE_OVERFLOW.
72660         (exp10_test): Expect overflow exceptions.
72661         (exp2_test): Likewise.
72662         (expm1_test): Likewise.
72663         (nextafter_test): Likewise.
72664         (pow_test): Likewise.
72665         (scalbn_test): Likewise.
72666         (scalbln_test): Likewise.
72667
72668 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72669
72670         * sysdeps/x86_64/bits/atomic.h
72671         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
72672         64bit integer.
72673         (atomic_exchange_acq): Likewise.
72674         (__arch_exchange_and_add_body): Likewise.
72675         (__arch_add_body): Likewise.
72676         (atomic_add_negative): Likewise.
72677         (atomic_add_zero): Likewise.
72678
72679 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72680
72681         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
72682         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
72683
72684 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72685
72686         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
72687         Check __x86_64__ instead of __WORDSIZE.
72688
72689 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72690
72691         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
72692
72693 2012-03-19  David S. Miller  <davem@davemloft.net>
72694
72695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
72696
72697         * sysdeps/sparc/fpu/fenv_private.h: New file.
72698         * sysdeps/sparc/fpu/math_private.h: Use it.
72699         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
72700         Remove.
72701         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
72702         (libc_feholdexcept_setroundl): Remove.
72703         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
72704         Remove.
72705         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
72706         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
72707
72708 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72709
72710         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
72711         int64_t instead of long int.
72712         (INSERT_WORDS64): Likwise.
72713
72714 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
72715
72716         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
72717         _Unwind_GetCFA return to _Unwind_Ptr first.
72718
72719 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
72720
72721         [BZ #13629]
72722         * math/s_clog.c: Include <float.h>.
72723         (__clog): Scale large or subnormal inputs.
72724         * math/s_clogf.c: Likewise.
72725         * math/s_clogl.c: Likewise.
72726         * math/s_clog10.c: Include <float.h>.
72727         (M_LOG10_2): Define.
72728         (__clog10): Scale large or subnormal inputs.
72729         * math/s_clog10f.c: Likewise.
72730         * math/s_clog10l.c: Likewise.
72731         * math/libm-test.inc (clog_test): Add more tests.
72732         (clog10_test): Likewise.
72733         * sysdeps/i386/fpu/libm-test-ulps: Update.
72734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72735
72736         [BZ #11451]
72737         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
72738         x and y.
72739         * math/libm-test.inc (atan2_test): Add another test.
72740
72741         * Makerules (common-objdir-compile): Remove.
72742         * sysdeps/unix/Makefile (config-generated): Do not add
72743         $(unix-generated) to variable.
72744         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
72745         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
72746         Remove rule.
72747         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
72748         Likewise.
72749         [generic bits/local_lim.h] (before-compile): Do not append to
72750         variable.
72751         [generic bits/local_lim.h] (common-generated): Likewise.
72752         [generic sys/param.h] (before-compile): Do not append to variable.
72753         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
72754         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
72755         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
72756         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
72757         include.
72758         [generic sys/param.h] (sys/param.h-includes): Remove variable.
72759         [generic sys/param.h] (sys/param.h-includes): Remove rule.
72760         [generic sys/param.h] ($(addprefix
72761         $(common-objpfx),$(sys/param.h-includes))): Likewise.
72762         [generic sys/param.h] (common-generated): Do not append to
72763         variable.
72764         [generic sys/param.h] (sysdep_headers): Likewise.
72765         [generic bits/errno.h] (before-compile): Do not append to
72766         variable.
72767         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
72768         rule.
72769         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
72770         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
72771         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
72772         [generic bits/errno.h] (common-generated): Do not append to
72773         variable.
72774         [generic bits/ioctls.h] (before-compile): Do not append to
72775         variable.
72776         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
72777         rule.
72778         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
72779         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
72780         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
72781         rule.
72782         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
72783         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
72784         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
72785         [generic bits/ioctls.h] (common-generated): Do not append to
72786         variable.
72787         [generic sys/syscall.h] (syscall.h): Remove variable.
72788         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
72789         rule.
72790         [generic sys/syscall.h] (before-compile): Do not append to
72791         variable.
72792         [generic sys/syscall.h] (common-generated): Likewise.
72793         * sysdeps/unix/errnos-tmpl.c: Remove file.
72794         * sysdeps/unix/errnos.awk: Likewise.
72795         * sysdeps/unix/ioctls-tmpl.c: Likewise.
72796         * sysdeps/unix/ioctls.awk: Likewise.
72797         * sysdeps/unix/mk-local_lim.c: Likewise.
72798         * sysdeps/unix/snarf-ioctls: Likewise.
72799
72800 2012-03-19  Richard Henderson  <rth@twiddle.net>
72801
72802         * sysdeps/i386/fpu/fenv_private.h: New file.
72803         * sysdeps/i386/fpu/math_private.h: Use it.
72804         (math_opt_barrier, math_force_eval): Remove.
72805         (libc_feholdexcept_setround_53bit): Remove.
72806         (libc_feupdateenv_53bit): Remove.
72807         * sysdeps/x86_64/fpu/math_private.h: Likewise.
72808         (math_opt_barrier, math_force_eval): Remove.
72809         (libc_feholdexcept): Remove.
72810         (libc_feholdexcept_setround): Remove.
72811         (libc_fetestexcept, libc_fesetenv): Remove.
72812         (libc_feupdateenv_test): Remove.
72813         (libc_feupdateenv, libc_feholdsetround): Remove.
72814         (libc_feresetround): Remove.
72815
72816         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
72817         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
72818
72819         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
72820         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
72821         (libc_feupdateenv_testl): New.
72822         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
72823         (libc_feupdateenv_testf): New.
72824         (libc_feupdateenv): Use libc_feupdateenv_test.
72825         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
72826         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
72827
72828         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
72829         (libc_feholdsetroundf, libc_feholdsetroundl): New.
72830         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
72831         (libc_feresetround_noex): New.
72832         (libc_feresetround_noexf): New.
72833         (libc_feresetround_noexl): New.
72834         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
72835         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
72836         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
72837         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
72838         SET_RESTORE_ROUND.
72839         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
72840         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
72841         (__cos): Likewise.
72842         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
72843         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
72844         SET_RESTORE_ROUND_NOEX.
72845         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
72846         SET_RESTORE_ROUND_NOEXF.
72847         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
72848         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
72849         (libc_feholdsetroundf): New.
72850         (libc_feresetround, libc_feresetroundf): New.
72851
72852         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
72853         (libc_feholdexcept_setround_53bit): Convert from macro to function.
72854         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
72855
72856         * sysdeps/generic/math_private.h: Include <fenv.h>.
72857         (default_libc_feholdexcept): New.
72858         (default_libc_feholdexcept_setround): New.
72859         (default_libc_fesetenv, default_libc_feupdateenv): New.
72860         (libc_feholdexcept): Only define if undefined.
72861         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
72862         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
72863         (libc_feholdexcept_setroundl): Likewise.
72864         (libc_feholdexcept_setround_53bit): Likewise.
72865         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
72866         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
72867         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
72868         (libc_feupdateenv_53bit): Likewise.
72869         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
72870         (libc_feholdexcept): Convert from macro to inline function.
72871         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
72872         (libc_fesetenv, libc_feupdateenv): Likewise.
72873
72874         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
72875         not previously defined.
72876         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
72877         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
72878         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
72879         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
72880         * sysdeps/ieee754/flt-32/math_private.h: New file.
72881         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
72882         math_private.h below SET_FLOAT_WORD.
72883         (__isnan, __isinf_ns, __finite): Remove.
72884         (__isnanf, __isinf_nsf, __finitef): Remove.
72885
72886 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
72887
72888         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
72889
72890 2012-03-17  David S. Miller  <davem@davemloft.net>
72891
72892         [BZ #6471]
72893         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
72894         for 2.16.
72895
72896 2012-03-16  David S. Miller  <davem@davemloft.net>
72897
72898         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
72899         warnings.
72900
72901         [BZ #6471]
72902         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
72903         properly.
72904         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
72905         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
72906         sysdep_routines when subdir is sysvipc.
72907         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
72908         __getshmlba helper.
72909
72910         * sysdeps/sparc/fpu/libm-test/ulps: Update.
72911
72912 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72913
72914         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
72915         [__LP64__].
72916
72917 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72918
72919         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
72920         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
72921         (__lround): Renamed to ...
72922         (__llround): This.  Replace long int with long long int.
72923         Define lround functions as aliases of llround functions.
72924         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
72925
72926 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72927
72928         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
72929         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
72930         adresses to uintptr_t.  Replace "long int" and "unsigned long
72931         int" with "greg_t" on va_arg.
72932
72933 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
72934
72935         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
72936         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
72937
72938         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
72939         Move e_machine check before EI_CLASS check.  Handle x32
72940         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
72941         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
72942         SKIP_EM_IA_64 and include
72943         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
72944
72945         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
72946         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
72947         (add_system_dir): New macro.
72948
72949         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
72950         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
72951
72952 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
72953
72954         [BZ #2551]
72955         [BZ #2552]
72956         [BZ #2553]
72957         [BZ #2554]
72958         [BZ #2562]
72959         [BZ #2563]
72960         [BZ #2565]
72961         [BZ #2566]
72962         [BZ #2576]
72963         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
72964         (y0): Likewise.
72965         * math/w_j0f.c (j0f): Likewise.
72966         (y0f): Likewise.
72967         * math/w_j0l.c (__j0l): Likewise.
72968         (__y0l): Likewise.
72969         * math/w_j1.c (j1): Likewise.
72970         (y1): Likewise.
72971         * math/w_j1f.c (j1f): Likewise.
72972         (y1f): Likewise.
72973         * math/w_j1l.c (__j1l): Likewise.
72974         (__y1l): Likewise.
72975         * math/w_jn.c (jn): Likewise.
72976         (yn): Likewise.
72977         * math/w_jnf.c (jnf): Likewise.
72978         (ynf): Likewise.
72979         * math/w_jnl.c (__jnl): Likewise.
72980         (__ynl): Likewise.
72981         * math/libm-test.inc (j0_test): Add more tests.
72982         (j1_test): Likewise.
72983         (jn_test): Likewise.  Add trailing semicolon to existing test.
72984         (y0_test): Likewise.
72985         (y1_test): Likewise.
72986         * sysdeps/i386/fpu/libm-test-ulps: Update.
72987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
72988
72989         [BZ #13851]
72990         [BZ #13854]
72991         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
72992         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
72993         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
72994         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
72995         (__tanl): Set errno for infinite argument.
72996         * sysdeps/i386/fpu/mptan.c: Remove.
72997         * sysdeps/i386/fpu/s_tan.S: Likewise.
72998         * sysdeps/i386/fpu/s_tanl.S: Likewise.
72999         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
73000         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
73001         * math/libm-test.inc (tan_test): Add more tests and enable more
73002         tests for double and long double.
73003         * sysdeps/i386/fpu/libm-test-ulps: Update.
73004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73005
73006 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
73007
73008         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
73009         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
73010
73011 2012-03-16  Roland McGrath  <roland@hack.frob.com>
73012
73013         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
73014         * configure.in: Use it for both main tree and add-ons.
73015         * configure: Regenerated.
73016
73017 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
73018
73019         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
73020
73021 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
73022
73023         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
73024         in comment.
73025
73026         [BZ #13851]
73027         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
73028         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
73029         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
73030         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
73031         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
73032         infinite argument.
73033         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
73034         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
73035         != 0 for prec == 2.
73036         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
73037         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
73038         * sysdeps/i386/fpu/s_cosl.S: Likewise.
73039         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
73040         * sysdeps/i386/fpu/s_sinl.S: Likewise.
73041         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
73042         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
73043         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
73044         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
73045         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
73046         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
73047         * math/libm-test.inc (cos_test): Add more tests and enable more
73048         tests for long double.
73049         (sin_test): Likewise.
73050         (sincos_test): Likewise.
73051         * sysdeps/i386/fpu/libm-test-ulps: Update.
73052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73053
73054 2012-03-16  David S. Miller  <davem@davemloft.net>
73055
73056         * sysdeps/sparc/fpu/math_private.h: New file.
73057
73058 2012-03-15  David S. Miller  <davem@davemloft.net>
73059
73060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
73061         file.
73062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
73063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
73064         file.
73065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
73066         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
73067         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
73068         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
73069         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
73070         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
73071         sysdep routines.
73072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73073
73074         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
73075         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
73076
73077         * sysdeps/sparc/sparc-ifunc.h: New file.
73078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
73079         sparc-ifunc.h
73080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
73081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
73082         Likewise.
73083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
73084         Likewise.
73085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
73086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
73087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
73088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
73089         Likewise.
73090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
73091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
73092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
73093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
73094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
73095         Likewise.
73096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
73097         Likewise.
73098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
73099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
73100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
73101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
73102         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
73103         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
73104         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
73105         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
73106         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
73107         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
73108         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
73109         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
73110         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
73111         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
73112         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
73113         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
73114         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
73115         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
73116         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
73117         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
73118         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
73119         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
73120         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
73121         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
73122
73123 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73124
73125         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
73126         scaling.
73127         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73128
73129 2012-03-15  Andreas Jaeger  <aj@suse.de>
73130
73131         [BZ #13852]
73132         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
73133         ieee754/flt-32 implementation for sin, cos and sincos.
73134         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
73135         * sysdeps/i386/fpu/s_cosf.S: Likewise.
73136         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
73137         * sysdeps/i386/fpu/s_sinf.S: Likewise.
73138         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
73139         ieee754/flt-32 implementation for tan.
73140
73141         * math/libm-test.inc (cos_test): Enable some large input tests for
73142         float as well
73143         (sin_test): Likewise.
73144         (sincos_test): Likewise.
73145         (tan_test): Add tests for large input.
73146
73147         * sysdeps/i386/fpu/libm-test-ulps: Update.
73148
73149 2012-03-15  Andreas Jaeger  <aj@suse.de>
73150
73151         [BZ #13658]
73152         * math/libm-test.inc (cos_test): Add more test cases.
73153         (sin_test): Likewise.
73154         (sincos_test): Likewise.
73155
73156 2012-03-15  Andreas Jaeger  <aj@suse.de>
73157
73158         [BZ #13837]
73159         * math/libm-test.inc (cos_test): Add a test case for large input
73160         value.
73161         (sin_test): Likewise.
73162         (sincos_test): Likewise.
73163
73164 2012-03-15  Andreas Jaeger  <aj@suse.de>
73165             Joseph Myers  <joseph@codesourcery.com>
73166
73167         [BZ #13658]
73168         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
73169         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
73170         * sysdeps/i386/fpu/branred.c: Likewise.
73171         * sysdeps/i386/fpu/dosincos.c: Likewise.
73172         * sysdeps/i386/fpu/mpa.c: Likewise.
73173         * sysdeps/i386/fpu/s_cos.S: Likewise.
73174         * sysdeps/i386/fpu/s_sin.S: Likewise.
73175         * sysdeps/i386/fpu/s_sincos.S: Likewise.
73176         * sysdeps/i386/fpu/sincos32.c: Likewise.
73177
73178         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
73179         Define.
73180         (libc_feupdateenv_53bit): Define.
73181         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
73182         Define.
73183         (libc_feupdateenv_53bit): Define.
73184
73185         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
73186         53 bit (without extend i386 double precision).
73187
73188         * math/libm-test.inc (sincos_test): Add tests for large input.
73189         (sin): Likewise.
73190         (cos): Likewise.
73191
73192         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
73193
73194 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
73195
73196         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73197
73198 2012-03-15  David S. Miller  <davem@davemloft.net>
73199
73200         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
73201         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
73202         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
73203         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
73204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
73205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
73206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
73207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
73208         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
73209         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
73210         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
73211         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
73212         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
73213         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
73214         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
73215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
73216         file.
73217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
73218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
73219         file.
73220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
73221         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
73222         file.
73223         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
73224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
73225         file.
73226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
73227         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
73228         fmin/fmax sysdep routines.
73229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
73230
73231 2012-03-14  David S. Miller  <davem@davemloft.net>
73232
73233         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
73234         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
73235         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
73236         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
73237         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
73238         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
73239         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
73240         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
73241         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
73242         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
73243         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
73244         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
73245         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
73246         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
73247         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
73248         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
73249         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
73250         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
73251         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
73252         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
73253         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
73254         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
73255         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
73256         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
73257         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
73258         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
73259         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
73260         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
73261         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
73262         routines.
73263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
73264         file.
73265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
73266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
73267         file.
73268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
73269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
73270         file.
73271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
73272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
73273         file.
73274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
73275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
73276         file.
73277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
73278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
73279         file.
73280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
73281         file.
73282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
73283         file.
73284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
73285         file.
73286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
73287         New file.
73288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
73289         file.
73290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
73291         file.
73292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
73293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
73294         file.
73295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
73296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
73297         file.
73298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
73299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
73300         file.
73301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
73302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
73303         VIS3 routines.
73304
73305         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
73306         New file.
73307
73308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73309
73310         * sysdeps/sparc/configure.in: New file.
73311         * sysdeps/sparc/configure: Generate.
73312         * configure.in (libc_cv_sparc_as_vis3): Substitute.
73313         * configure: Regenerate.
73314         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
73315         * config.make.in (have-as-vis3): New.
73316         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
73317         available use -Av9d instead of -Av9a.
73318         * sysdeps/sparc/sparc64/Makefile: Likewise.
73319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
73320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
73321         New file.
73322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
73323         file.
73324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
73325         New file.
73326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
73327         file.
73328         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
73329         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
73330         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
73331         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
73332         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
73333
73334         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
73335         fzeros/fnegs to load 0x80000000 into a float register instead of
73336         using the stack.
73337         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
73338
73339 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73340
73341         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73342         bits/syscall.h.
73343         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
73344         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
73345         ($(inst_includedir)/bits/syscall.h): Remove rule.
73346         ($(objpfx)bits/syscall.d): Include instead of
73347         $(objpfx)syscall-list.d.
73348         (generated): Change syscall-list.h and syscall-list.d to
73349         bits/syscall.h and bits/syscall.d.
73350
73351 2012-03-14  Roland McGrath  <roland@hack.frob.com>
73352
73353         [BZ #13846]
73354         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
73355
73356 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
73357
73358         [BZ #13841]
73359         * math/s_csqrt.c: Include <float.h>.
73360         (__csqrt): Scale large or subnormal inputs.
73361         * math/s_csqrtf.c: Likewise.
73362         * math/s_csqrtl.c: Likewise.
73363         * math/libm-test.inc (csqrt_test): Add more tests.
73364         * sysdeps/i386/fpu/libm-test-ulps: Update.
73365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73366
73367         [BZ #13840]
73368         * math/libm-test.inc (hypot_test): Add more tests.
73369
73370 2012-03-13  David S. Miller  <davem@davemloft.net>
73371
73372         [BZ #13840]
73373         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
73374         double-precision for the calculation instead of scaling.
73375
73376 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
73377
73378         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
73379         manipulate bits before adding and subtracting TWO52[sx].
73380         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
73381         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
73382         Likewise.
73383         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
73384
73385 2012-03-13  David S. Miller  <davem@davemloft.net>
73386
73387         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
73388         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
73389         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
73390         rtld-global-offsets.h
73391         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73392
73393         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
73394         large parameters.
73395
73396         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
73397
73398         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
73399         'err' in the ifdef scope in which it is actually used.
73400
73401         * nss/nss_db/db-init.c: Include string.h
73402
73403 2012-03-12  David S. Miller  <davem@davemloft.net>
73404
73405         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73406         masking out of the most significant byte of random value used.
73407         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73408         Fix coding style in previous change.
73409
73410         * sysdeps/unix/sysv/linux/kernel-features.h
73411         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
73412         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
73413         expression.
73414         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
73415         later.
73416
73417 2012-03-11  David S. Miller  <davem@davemloft.net>
73418
73419         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
73420         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
73421         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
73422         for 'resultvar' otherwise things get truncated on 64-bit.
73423
73424         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
73425         Fix masking out of the most significant byte of random value used.
73426
73427         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73428
73429 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
73430
73431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
73432
73433 2012-03-09  David S. Miller  <davem@davemloft.net>
73434
73435         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
73436         variables with appropriate CPP guards.
73437         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
73438         from the frame pointer, not the stack pointer.  Correct layout
73439         comments.  Fix test on resulting framesize and the management of
73440         the outregs buffer for pltexit.  Preserve floating point return
73441         values across _dl_call_pltexit call.
73442         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
73443         framesize and the management of the outregs buffer for pltexit.
73444         Preserve floating point return values across _dl_call_pltexit
73445         call.
73446         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
73447         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
73448         (la_sparc64_gnu_pltexit): New functions.
73449         (print_exit): Fix format string for return register value.
73450
73451 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
73452
73453         * sunrpc/Makefile (others): Add rpcgen.
73454         ($(objpfx)rpcgen): Remove special build rule and dependency on
73455         libc.
73456         * sunrpc/rpcgen.c: New file.
73457
73458 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         [BZ #13673]
73461         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
73462         * stdio-common/bug-vfprintf-nargs.c: Likewise.
73463         * sysdeps/i386/crti.S: Likewise.
73464         * sysdeps/i386/crtn.S: Likewise.
73465         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
73466         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
73467         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
73468         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
73469         * sysdeps/sh/crti.S: Likewise.
73470         * sysdeps/sh/crtn.S: Likewise.
73471         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73472
73473         [BZ #13673]
73474         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
73475         with URL.
73476         * locale/programs/locfile-kw.gperf: Likewise.
73477         * locale/programs/charmap-kw.h: Regenerated.
73478         * locale/programs/locfile-kw.h: Likewise.
73479
73480         [BZ #13673]
73481         * intl/plural.y: Replace FSF snail mail address with URL.
73482         * intl/plural.c: Regenerated.
73483
73484 2012-03-09  Richard Henderson  <rth@twiddle.net>
73485
73486         * include/math_private.h: Remove file.
73487         * math/math_private.h: Move file ...
73488         * sysdeps/generic/math_private.h: ... here.
73489
73490         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
73491         * sysdeps/powerpc/fpu/math_private.h: Likewise.
73492         * sysdeps/x86_64/fpu/math_private.h: Likewise.
73493
73494         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
73495         and <math_private.h>.
73496         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
73497         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
73498         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
73499         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
73500         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
73501         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
73502         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
73503         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
73504         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
73505         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
73506         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
73507         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
73508         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
73509         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
73510         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
73511         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
73512         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
73513         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
73514         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
73515         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
73516         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
73517         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
73518         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
73519         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
73520         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
73521         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
73522         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
73523         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
73524         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
73525         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
73526         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
73527         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
73528         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
73529         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
73530         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
73531         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
73532         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
73533         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
73534         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
73535         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
73536         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
73537         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
73538         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
73539         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73540         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
73541         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
73542         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
73543         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
73544         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
73545         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
73546         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
73547         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
73548         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
73549         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
73550         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
73551         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
73552         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
73553         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
73554         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
73555         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
73556         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
73557         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
73558         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
73559         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
73560         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
73561         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
73562         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
73563         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
73564         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
73565         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
73566         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
73567         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
73568         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
73569         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
73570         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
73571         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
73572         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
73573         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
73574         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
73575         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
73576         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
73577         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
73578         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
73579         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
73580         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
73581         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
73582         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
73583         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
73584         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
73585         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
73586         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
73587         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
73588         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
73589         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
73590         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
73591         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
73592         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
73593         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
73594         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
73595         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
73596         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
73597         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
73598         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
73599         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
73600         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
73601         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
73602         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
73603         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
73604         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
73605         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
73606         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
73607         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
73608         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
73609         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
73610         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
73611         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
73612         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
73613         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
73614         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
73615         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
73616         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
73617         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
73618         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
73619         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
73620         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
73621         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
73622         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
73623         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
73624         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
73625         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
73626         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
73627         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
73628         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
73629         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
73630         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
73631         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
73632         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
73633         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
73634         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
73635         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
73636         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
73637         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
73638         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
73639         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
73640         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
73641         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
73642         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
73643         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
73644         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
73645         * sysdeps/ieee754/k_standard.c: Likewise.
73646         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
73647         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
73648         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
73649         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
73650         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
73651         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
73652         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
73653         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
73654         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
73655         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
73656         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
73657         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
73658         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
73659         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
73660         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
73661         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
73662         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
73663         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
73664         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
73665         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
73666         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
73667         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
73668         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
73669         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
73670         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
73671         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
73672         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
73673         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
73674         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
73675         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
73676         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
73677         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
73678         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
73679         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
73680         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
73681         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
73682         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
73683         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
73684         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
73685         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
73686         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
73687         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
73688         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
73689         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
73690         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
73691         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
73692         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
73693         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
73694         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
73695         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
73696         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
73697         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
73698         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
73699         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
73700         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
73701         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
73702         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
73703         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
73704         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
73705         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
73706         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
73707         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
73708         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
73709         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
73710         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
73711         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
73712         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
73713         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
73714         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
73715         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
73716         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
73717         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
73718         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
73719         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
73720         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
73721         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
73722         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
73723         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
73724         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
73725         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
73726         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
73727         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
73728         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
73729         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
73730         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
73731         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
73732         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
73733         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
73734         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
73735         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
73736         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
73737         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
73738         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
73739         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
73740         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
73741         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
73742         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
73743         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
73744         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
73745         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
73746         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
73747         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
73748         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
73749         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
73750         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
73751         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
73752         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
73753         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
73754         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
73755         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
73756         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
73757         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
73758         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
73759         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
73760         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
73761         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
73762         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
73763         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
73764         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
73765         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
73766         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
73767         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
73768         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
73769         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
73770         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
73771         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
73772         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
73773         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
73774         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
73775         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
73776         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
73777         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
73778         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
73779         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
73780         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
73781         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
73782         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
73783         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
73784         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
73785         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
73786         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
73787         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
73788         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
73789         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
73790         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
73791         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
73792         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
73793         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
73794         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
73795         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
73796         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
73797         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
73798         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
73799         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
73800         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
73801         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
73802         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
73803         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
73804         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
73805         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
73806         * sysdeps/ieee754/s_lib_version.c: Likewise.
73807         * sysdeps/ieee754/s_matherr.c: Likewise.
73808         * sysdeps/ieee754/s_signgam.c: Likewise.
73809         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
73810         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
73811         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
73812         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
73813         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
73814         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
73815         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
73816         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
73817         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
73818         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
73819         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
73820         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
73821         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
73822         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
73823         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
73824         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
73825         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
73826         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
73827         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
73828         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
73829         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
73830
73831 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
73832
73833         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
73834         * sunrpc/rpc_main.c: Likewise.
73835         * sunrpc/rpc_svcout.c: Likewise.
73836
73837 2012-03-09  David S. Miller  <davem@davemloft.net>
73838
73839         * include/math_private.h: New file.
73840
73841 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
73842
73843         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
73844         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
73845         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
73846         from <bits/socket_type.h>.
73847         (enum __socket_type): Don't define here.
73848         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
73849         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
73850         bits/socket_type.h.
73851
73852         [BZ #13566]
73853         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
73854         checking __USE_GNU.
73855
73856         * Makerules ($(inst_includedir)/%.h): New rule.
73857         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
73858         (install-others): Remove variable setting.
73859         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
73860
73861 2012-03-08  Richard Henderson  <rth@twiddle.net>
73862
73863         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
73864         from macro to inline function; merge with the
73865         !__LIBC_INTERNAL_MATH_INLINES version.
73866         (__ieee754_sqrtf): Likewise.
73867
73868         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
73869         to inline function.
73870         (__rintf, __floor, __floorf): Likewise.
73871
73872         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
73873         macro to inline function.
73874         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
73875
73876         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
73877         not <math/math_private.h>.
73878
73879 2012-03-08  David S. Miller  <davem@davemloft.net>
73880
73881         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
73882         copyright year.
73883         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
73884
73885 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
73886
73887         * resolv/gai_misc.c (handle_requests): Fix struct timespec
73888         normalization.
73889         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
73890         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
73891
73892 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
73893
73894         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
73895         be defined individually, they must be defined as a block.  Define
73896         S for printing a string instead of hidint the different by using a
73897         macro for adding the 'l'.
73898         * stdio-common/tst-fphex-wide.c: Adjust.
73899
73900 2012-03-07  Marek Polacek  <polacek@redhat.com>
73901
73902         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
73903
73904 2012-03-08  Marek Polacek  <polacek@redhat.com>
73905
73906         [BZ #13806]
73907         * stdio-common/Makefile (tests): Add tst-fphex-wide.
73908         * stdio-common/tst-fphex.c: Define a few macros to make the
73909         test reusable.  Use them.
73910         * stdio-common/tst-fphex-wide.c: New file.
73911
73912 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
73913
73914         [BZ #6911]
73915         * manual/macros.texi (gnusystems): New macro.
73916         (nongnusystems): Likewise.
73917         (gnulinuxhurdsystems): Likewise.
73918         (gnuhurdsystems): Likewise..
73919         (gnulinuxsystems): Likewise.
73920         * manual/charset.texi: Use new macros or @theglibc{} to refer to
73921         variants of the GNU system, not "GNU system".
73922         * manual/conf.texi: Likewise.
73923         * manual/errno.texi: Likewise.  Update example of errno macro
73924         expansion.
73925         * manual/filesys.texi: Likewise.
73926         (getumask): Document as specific to GNU/Hurd.
73927         * manual/install.texi: Likewise.  Reword some references to
73928         GNU/Linux.
73929         * manual/intro.texi: Likewise.
73930         * manual/io.texi: Likewise.
73931         (File Name Portability): Detail which constraints are inapplicable
73932         to all GNU systems and which are only inapplicable to GNU/Hurd.
73933         * manual/job.texi: Likewise.
73934         * manual/llio.texi: Likewise.
73935         (O_NOCTTY): Document as present on GNU/Linux.
73936         * manual/maint.texi: Likewise.
73937         * manual/memory.texi: Likewise.
73938         * manual/pattern.texi: Likewise.
73939         * manual/pipe.texi: Likewise.
73940         * manual/process.texi: Likewise.
73941         * manual/resource.texi: Likewise.
73942         (RUSAGE_CHILDREN): Remove statement about specifying a particular
73943         child on GNU/Hurd.
73944         * manual/setjmp.texi: Likewise.
73945         * manual/signal.texi: Likewise.
73946         * manual/startup.texi: Likewise.
73947         * manual/stdio.texi: Likewise.
73948         * manual/terminal.texi: Likewise.
73949         (ONLCR): Document as POSIX.
73950         (OXTABS): Document availability on GNU/Linux as XTABS.
73951         (ONOEOT): Document availability separately from other bits.
73952         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
73953         * manual/time.texi: Likewise.
73954         * manual/users.texi: Likewise.
73955         * INSTALL: Regenerated.
73956         * sysdeps/gnu/errlist.c: Regenerated.
73957
73958         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
73959         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
73960         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
73961         puts.
73962         * configure: Regenerated.
73963
73964 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
73965
73966         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
73967         default includes instead of AC_HEADER_CHECK.
73968         * sysdeps/i386/configure: Regenerated.
73969
73970         [BZ #10716]
73971         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
73972         * math/s_cacoshf.c (__cacoshf): Likewise.
73973         * math/s_cacoshl.c (__cacoshl): Likewise.
73974         * math/s_casinh.c (__casinh): Set signs of result from argument.
73975         * math/s_casinhf.c (__casinhf): Likewise.
73976         * math/s_casinhl.c (__casinhl): Likewise.
73977         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
73978         (casinh_test): Add more tests.
73979         * sysdeps/i386/fpu/libm-test-ulps: Update.
73980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73981
73982 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
73983
73984         * po/zh_TW.po: Update from translation team.
73985
73986         * login/Makefile (distribute): Remove variable.
73987         * catgets/Makefile: Likewise.
73988         * mach/Makefile: Likewise.
73989         * malloc/Makefile: Likewise.
73990         * misc/Makefile: Likewise.
73991         * iconv/Makefile: Likewise.
73992         * nscd/Makefile: Likewise.
73993         * hurd/Makefile: Likewise.
73994         * manual/Makefile: Likewise.
73995         * locale/Makefile: Likewise.
73996         * intl/Makefile: Likewise.
73997         * conform/Makefile: Likewise.
73998         * nss/Makefile: Likewise.
73999         * time/Makefile: Likewise.
74000         * soft-fp/Makefile: Likewise.
74001         * dirent/Makefile: Likewise.
74002         * gmon/Makefile: Likewise.
74003         * po/Makefile: Likewise.
74004         * rt/Makefile: Likewise.
74005         * socket/Makefile: Likewise.
74006         * math/Makefile: Likewise.
74007         * signal/Makefile: Likewise.
74008         * debug/Makefile: Likewise.
74009         * elf/Makefile: Likewise.
74010         * timezone/Makefile: Likewise.
74011         * stdlib/Makefile: Likewise.
74012         * iconvdata/Makefile: Likewise.
74013         * sunrpc/Makefile: Likewise.
74014         * io/Makefile: Likewise.
74015         * argp/Makefile: Likewise.
74016         * inet/Makefile: Likewise.
74017         * hesiod/Makefile: Likewise.
74018         * grp/Makefile: Likewise.
74019         * csu/Makefile: Likewise.
74020         * wctype/Makefile: Likewise.
74021         * crypt/Makefile: Likewise.
74022         * libio/Makefile: Likewise.
74023         * string/Makefile: Likewise.
74024         * nis/Makefile: Likewise.
74025         * resolv/Makefile: Likewise.
74026         * stdio-common/Makefile: Likewise.
74027         * wcsmbs/Makefile: Likewise.
74028         * dlfcn/Makefile: Likewise.
74029         * posix/Makefile: Likewise.
74030
74031         [BZ #6959]
74032         * timezone/Makefile: Don't install timezone files, just the programs
74033         and scripts.
74034
74035 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
74036
74037         * nss/databases.def: Add missing gshadow entry.
74038
74039         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
74040
74041 2012-03-06  Marek Polacek  <polacek@redhat.com>
74042
74043         [BZ #13726]
74044         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
74045         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
74046         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
74047         * stdio-common/tst-long-dbl-fphex.c: New file.
74048
74049 2012-03-06  David S. Miller  <davem@davemloft.net>
74050
74051         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
74052         (set_obp_int): New function.
74053         (get_obp_int): New function.
74054         (__get_clockfreq_via_dev_openprom): Likewise.
74055         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
74056         Avoid unused variable warnings on 'val' and use builtin_expect.
74057         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
74058         __builtin_expect.
74059         (INLINE_CLONE_SYSCALL): Likewise.
74060
74061 2012-03-05  David S. Miller  <davem@davemloft.net>
74062
74063         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74064
74065 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
74066
74067         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74068
74069         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
74070         only for |x| >= 40.
74071         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
74072
74073 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
74074
74075         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
74076         Replace gettimeofday with __vdso_gettimeofday.
74077
74078         * sysdeps/unix/sysv/linux/x86_64/init-first.c
74079         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
74080         __vdso_clock_gettime and __vdso_getcpu.
74081
74082         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
74083         time with __vdso_time.
74084
74085 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74086
74087         * manual/lang.texi (size_t): Note types to which size_t may be
74088         equivalent with the GNU C Library, but do not describe when
74089         differences between them are significant.
74090
74091 2012-03-05  Andreas Jaeger  <aj@suse.de>
74092
74093         * sysdeps/i386/fpu/libm-test-ulps: Update.
74094
74095 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
74096
74097         [BZ #3976]
74098         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
74099         (__ieee754_pow): Save and restore rounding mode and use
74100         round-to-nearest for main computations.
74101         * math/libm-test.inc (pow_test_tonearest): New function.
74102         (pow_test_towardzero): Likewise.
74103         (pow_test_downward): Likewise.
74104         (pow_test_upward): Likewise.
74105         (main): Call the new functions.
74106         * sysdeps/i386/fpu/libm-test-ulps: Update.
74107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74108
74109         [BZ #3976]
74110         * math/libm-test.inc (cosh_test_tonearest): New function.
74111         (cosh_test_towardzero): Likewise.
74112         (cosh_test_downward): Likewise.
74113         (cosh_test_upward): Likewise.
74114         (sinh_test_tonearest): Likewise.
74115         (sinh_test_towardzero): Likewise.
74116         (sinh_test_downward): Likewise.
74117         (sinh_test_upward): Likewise.
74118         (main): Call the new functions.
74119         * sysdeps/i386/fpu/libm-test-ulps: Update.
74120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74121
74122 2012-03-05  Tom de Vries  <tom@codesourcery.com>
74123
74124         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
74125         default stack guard is set in last bytes.
74126         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
74127
74128 2012-03-05  Kees Cook  <keescook@chromium.org>
74129
74130         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
74131
74132         [BZ #13656]
74133         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
74134         possibly allocate from heap instead of stack.
74135         * stdio-common/bug-vfprintf-nargs.c: New file.
74136         * stdio-common/Makefile (tests): Add nargs overflow test.
74137
74138 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
74139
74140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74141
74142 2012-03-03  Marek Polacek  <polacek@redhat.com>
74143
74144         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
74145         * math/math_private.h: Likewise.
74146         * stdlib/tst-strtod.c: Likewise.
74147         * sysdeps/i386/i486/bits/atomic.h: Likewise.
74148         * sysdeps/x86_64/bits/atomic.h: Likewise.
74149
74150 2012-03-02  David S. Miller  <davem@davemloft.net>
74151
74152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
74153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
74154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
74155         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
74156         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
74157         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
74158         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
74159         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
74160
74161 2012-03-02  Roland McGrath  <roland@hack.frob.com>
74162
74163         [BZ #13792]
74164         * manual/examples/README: New file, says the example source files
74165         can be used under GPL>=2.
74166         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
74167         line containing just "*/".
74168         * manual/examples/add.c: Add copyright header (GPL>=2).
74169         * manual/examples/argp-ex1.c: Likewise.
74170         * manual/examples/argp-ex2.c: Likewise.
74171         * manual/examples/argp-ex3.c: Likewise.
74172         * manual/examples/argp-ex4.c: Likewise.
74173         * manual/examples/atexit.c: Likewise.
74174         * manual/examples/db.c: Likewise.
74175         * manual/examples/dir.c: Likewise.
74176         * manual/examples/dir2.c: Likewise.
74177         * manual/examples/execinfo.c: Likewise.
74178         * manual/examples/filecli.c: Likewise.
74179         * manual/examples/filesrv.c: Likewise.
74180         * manual/examples/fmtmsgexpl.c: Likewise.
74181         * manual/examples/genpass.c: Likewise.
74182         * manual/examples/inetcli.c: Likewise.
74183         * manual/examples/inetsrv.c: Likewise.
74184         * manual/examples/isockad.c: Likewise.
74185         * manual/examples/longopt.c: Likewise.
74186         * manual/examples/memopen.c: Likewise.
74187         * manual/examples/memstrm.c: Likewise.
74188         * manual/examples/mkfsock.c: Likewise.
74189         * manual/examples/mkisock.c: Likewise.
74190         * manual/examples/mygetpass.c: Likewise.
74191         * manual/examples/pipe.c: Likewise.
74192         * manual/examples/popen.c: Likewise.
74193         * manual/examples/rprintf.c: Likewise.
74194         * manual/examples/search.c: Likewise.
74195         * manual/examples/select.c: Likewise.
74196         * manual/examples/setjmp.c: Likewise.
74197         * manual/examples/sigh1.c: Likewise.
74198         * manual/examples/sigusr.c: Likewise.
74199         * manual/examples/stpcpy.c: Likewise.
74200         * manual/examples/strdupa.c: Likewise.
74201         * manual/examples/strftim.c: Likewise.
74202         * manual/examples/strncat.c: Likewise.
74203         * manual/examples/subopt.c: Likewise.
74204         * manual/examples/swapcontext.c: Likewise.
74205         * manual/examples/termios.c: Likewise.
74206         * manual/examples/testopt.c: Likewise.
74207         * manual/examples/testpass.c: Likewise.
74208         * manual/examples/timeval_subtract.c: Likewise.
74209
74210         [BZ #13792]
74211         * manual/time.texi (Elapsed Time): Move timeval_subtract example
74212         function to ...
74213         * manual/timeval_subtract.c.texi: ... here, new file.
74214
74215 2012-03-02  David S. Miller  <davem@davemloft.net>
74216
74217         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
74218
74219 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
74220
74221         [BZ #3976]
74222         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
74223         (__sin): Save and restore rounding mode and use round-to-nearest
74224         for all computations.
74225         (__cos): Save and restore rounding mode and use round-to-nearest
74226         for all computations.
74227         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
74228         <fenv.h>.
74229         (tan): Save and restore rounding mode and use round-to-nearest for
74230         all computations.
74231         * math/libm-test.inc (cos_test_tonearest): New function.
74232         (cos_test_towardzero): Likewise.
74233         (cos_test_downward): Likewise.
74234         (cos_test_upward): Likewise.
74235         (sin_test_tonearest): Likewise.
74236         (sin_test_towardzero): Likewise.
74237         (sin_test_downward): Likewise.
74238         (sin_test_upward): Likewise.
74239         (tan_test_tonearest): Likewise.
74240         (tan_test_towardzero): Likewise.
74241         (tan_test_downward): Likewise.
74242         (tan_test_upward): Likewise.
74243         (main): Call the new functions.
74244         * sysdeps/i386/fpu/libm-test-ulps: Update.
74245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74246
74247         [BZ #10135]
74248         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
74249         small n, then large n, before computing and testing k+n.
74250         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
74251         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
74252         Likewise.
74253         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
74254         Likewise.
74255         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
74256         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
74257         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
74258         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
74259         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
74260         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
74261         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
74262         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
74263         * math/libm-test.inc (scalbn_test): Add more tests.
74264         (scalbln_test): Likewise.
74265
74266         * manual/filesys.texi (mode_t): Describe constraints on size and
74267         signedness, not exact equivalence to a particular type.
74268         (ino_t): Likewise.
74269         (ino64_t): Likewise.
74270         (dev_t): Likewise.
74271         (nlink_t): Likewise.
74272         (blkcnt_t): Likewise.
74273         (blkcnt64_t): Likewise.
74274         * manual/llio.texi (off_t): Likewise.
74275
74276         [BZ #3976]
74277         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
74278         (__ieee754_exp): Save and restore rounding mode and use
74279         round-to-nearest for all computations.
74280         * math/libm-test.inc (exp_test_tonearest): New function.
74281         (exp_test_towardzero): Likewise.
74282         (exp_test_downward): Likewise.
74283         (exp_test_upward): Likewise.
74284         (main): Call the new functions.
74285         * sysdeps/i386/fpu/libm-test-ulps: Update.
74286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74287
74288 2012-03-01  Chris Demetriou  <cgd@google.com>
74289
74290         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
74291         have predictable order.
74292
74293 2012-03-01  David S. Miller  <davem@davemloft.net>
74294
74295         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
74296
74297         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
74298         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
74299         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
74300         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
74301
74302         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
74303         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
74304         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
74305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
74306         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
74307         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
74308         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
74309         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
74310         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
74311
74312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74313
74314         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
74315         * sysdeps/sparc/fpu/libm-test-ulps: to here.
74316         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
74317
74318         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
74319         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
74320         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74321         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
74322         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
74323         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
74324         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
74325         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
74326         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74327         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
74328         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
74329         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74330         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
74331         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74332         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74333         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
74334         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
74335         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
74336         * sysdeps/sparc/elf/configure: Regenerated.
74337
74338 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
74339
74340         * configure.in (AS, LD): Require binutils 2.20 or later.
74341         * configure: Regenerated.
74342         * manual/install.texi (Tools for Compilation): Give binutils 2.20
74343         as required minimum version.
74344         * INSTALL: Regenerated.
74345
74346         [BZ #2541]
74347         [BZ #4108]
74348         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
74349         before squaring exponent.
74350         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
74351         bottom long double and 27 bits of top long double before squaring
74352         exponent.
74353         * math/libm-test.inc (erfc_test): Add more tests.
74354         * sysdeps/i386/fpu/libm-test-ulps: Update.
74355         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74357
74358 2012-03-01  Kai Tietz  <ktietz@redhat.com>
74359
74360         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
74361         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
74362         containing bit-fields.
74363         * soft-fp/extended.h (_FP_UNION_E): Likewise.
74364         * soft-fp/single.h (_FP_UNION_S): Likewise.
74365         * soft-fp/double.h (_FP_UNION_D): Likewise.
74366
74367 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74368
74369         [BZ #13786]
74370         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
74371         not include ../strcmp.S.
74372         [USE_AS_STRNCASECMP_L]: Likewise.
74373         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
74374         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
74375         * sysdeps/i386/i686/multiarch/strncase_l-c.c
74376         (__strncasecmp_l_ia32): Define as alias to
74377         __strncasecmp_l_nonascii.
74378
74379         [BZ #5794]
74380         * math/libm-test.inc (expm1_test): Add test for bug 5794.
74381         * sysdeps/i386/fpu/libm-test-ulps: Update.
74382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74383
74384         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
74385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74386
74387 2012-02-29  Jeff Law  <law@redhat.com>
74388
74389         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
74390         out of bounds read.
74391
74392 2012-02-29  Marek Polacek  <polacek@redhat.com>
74393
74394         [BZ #13706]
74395         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
74396         * elf/Makefile: Add rules to run tst-unused-dep.out.
74397
74398 2012-02-28  David S. Miller  <davem@davemloft.net>
74399
74400         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
74401         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
74402         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
74403         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
74404         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
74405         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
74406
74407 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
74408
74409         * math/libm-test.inc (llround_test): Move one test from
74410         lround_test.  Use TEST_f_L in moved test.
74411         (lround_test): Move misplaced test to llround_test.  Add testcase
74412         from bug 2561.
74413
74414 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
74415
74416         * sysdeps/x86_64/fpu/e_expf.S: New file.
74417         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
74418
74419 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
74420
74421         [BZ #13637]
74422         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
74423         of remain_len that may cause incomplete multi-byte character and
74424         false match.
74425         * posix/bug-regex33.c: New file.
74426         * posix/Makefile (tests): Add bug-regex33.
74427
74428 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
74429
74430         * manual/macros.texi: New file.
74431         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
74432         * manual/libc.texinfo: Include macros.texi.
74433         * manual/creatute.texi: Likewise.
74434         * manual/install.texi: Likewise.
74435         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
74436         @glibcadj{} in references to the GNU C Library.
74437         * manual/charset.texi: Likewise.
74438         * manual/conf.texi: Likewise.
74439         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
74440         when not using those macros.
74441         * manual/creature.texi: Likewise.
74442         * manual/crypt.texi: Likewise.
74443         * manual/errno.texi: Likewise.
74444         * manual/filesys.texi: Likewise.
74445         * manual/header.texi: Likewise.
74446         * manual/install.texi: Likewise.
74447         * manual/intro.texi: Likewise.
74448         * manual/io.texi: Likewise.
74449         * manual/job.texi: Likewise.
74450         * manual/lang.texi: Likewise.
74451         * manual/libc.texiinfo: Likewise.
74452         * manual/llio.texi: Likewise.
74453         * manual/locale.texi: Likewise.
74454         * manual/maint.texi: Likewise.
74455         * manual/math.texi: Likewise.
74456         * manual/memory.texi: Likewise.
74457         * manual/message.texi: Likewise.
74458         * manual/nss.texi: Likewise.
74459         * manual/pattern.texi: Likewise.
74460         * manual/process.texi: Likewise.
74461         * manual/resource.texi: Likewise.
74462         * manual/search.texi: Likewise.
74463         * manual/setjmp.texi: Likewise.
74464         * manual/signal.texi: Likewise.
74465         * manual/socket.texi: Likewise.
74466         * manual/startup.texi: Likewise.
74467         * manual/stdio.texi: Likewise.
74468         * manual/string.texi: Likewise.
74469         * manual/sysinfo.texi: Likewise.
74470         * manual/syslog.texi: Likewise.
74471         * manual/terminal.texi: Likewise.
74472         * manual/time.texi: Likewise.
74473         * manual/users.texi: Likewise.
74474         * INSTALL: Regenerated.
74475         * NOTES: Regenerated.
74476         * sysdeps/gnu/errlist.c: Regenerated.
74477
74478 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
74479
74480         * include/dirent.h: Include <dirstream.h> before
74481         <dirent/dirent.h>.
74482
74483 2012-02-28  David S. Miller  <davem@davemloft.net>
74484
74485         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
74486         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
74487         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
74488         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
74489
74490 2012-02-27  David S. Miller  <davem@davemloft.net>
74491
74492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
74493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
74494         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
74495         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
74496
74497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
74498         frame pointer instead of stack pointer relative arg slot.
74499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74500         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74501         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74502
74503 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
74504
74505         [BZ #3992]
74506         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
74507
74508 2012-02-27  David S. Miller  <davem@davemloft.net>
74509
74510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
74511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
74512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
74513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
74514         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
74515         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
74516         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
74517         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
74518
74519 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74520
74521         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
74522         later.  Allow versions 5-9.
74523         * configure: Regenerated.
74524         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
74525         required minimum version and 4.6 as recommended version.  Do not
74526         mention bugs in GCC 2.7 and 2.8.
74527         * INSTALL: Regenerated.
74528
74529 2012-02-27  David S. Miller  <davem@davemloft.net>
74530
74531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
74532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
74533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
74534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
74535         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
74536         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
74537         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
74538         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
74539
74540         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
74541         manipulate bits before adding and subtracting TWO112[sx].
74542         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
74543
74544 2012-02-27  Roland McGrath  <roland@hack.frob.com>
74545
74546         [BZ #13775]
74547         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
74548         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
74549         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
74550         being in POSIX, because they are in 1003.1-2008.
74551
74552         * rt/tst-aio.c: Include <fcntl.h>.
74553         * rt/tst-aio7.c: Likewise.
74554         * rt/tst-aio64.c: Likewise.
74555
74556         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
74557
74558 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
74559
74560         * manual/install.texi (--with-headers): Describe headers as
74561         interface headers, not private headers.
74562         (Specific advice for GNU/Linux systems): Describe use of headers
74563         from "make headers_install", not private headers from older
74564         kernels.
74565         * INSTALL: Regenerated.
74566         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
74567         Change to 2.6.19.
74568         * sysdeps/unix/sysv/linux/configure: Regenerated.
74569
74570         * manual/llio.texi (fclean): Remove documentation.
74571
74572         * manual/Makefile (libc-texi-generated): New variable.  Include
74573         version.texi.
74574         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
74575         $(libc-texi-generated), not duplicated list of files.
74576         (version.texi, stamp-version): New rules.
74577         (realclean): Remove $(libc-texi-generated), not individual files
74578         from that list.  Do not remove dir-add.texinfo.
74579         * manual/libc.texinfo: Comment out uses of edition numbers and
74580         references to printed manual.  Remove last-updated dates.
74581         (EDITION): Comment out.
74582         (ISBN): Likewise.
74583         (VERSION, UPDATED): Remove.
74584         (version.texi): Include.
74585
74586 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
74587
74588         * sysdeps/posix/spawni.c: Include <signal.h>.
74589         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
74590         * sysdeps/pthread/aio_fsync.c: Likewise.
74591
74592 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
74593
74594         * conform/Makefile (tests): Run only when not cross-compiling and
74595         when fast-check is not defined.
74596
74597         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
74598         * conform/data/limits.h-data: Fixes for POSIX2008.
74599         * conform/run-conformtest.sh: Run all tests.
74600         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
74601         headers.
74602         * include/bits/dlfcn.h: Likewise.
74603         * include/langinfo.h: Likewise.
74604         * include/monetary.h: Likewise.
74605         * include/sys/poll.h: Likewise.
74606
74607         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
74608         for __USE_GNU.
74609         * posix/spawn.h: Define __need_sigset_t.
74610         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
74611         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
74612         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
74613         to get sigevent_t only.
74614         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
74615         only for __USE_GNU.
74616         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
74617         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
74618         process_vm_writev only for __USE_GNU.
74619         * termios/termios.h: Declare tcgetsid also for POSIX2008.
74620
74621         * conform/Makefile: For now ignore errors from run-conformtest.
74622         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
74623         POSIX to avoid namespace pollution.  Don't prepend headers.
74624         * conform/data/aio.h-data: Fixes for POSIX testing.
74625         * conform/data/fcntl.h-data: Likewise.
74626         * conform/data/glob.h-data: Likewise.
74627         * conform/data/grp.h-data: Likewise.
74628         * conform/data/pthread.h-data: Likewise.
74629         * conform/data/pwd.h-data: Likewise.
74630         * conform/data/signal.h-data: Likewise.
74631         * conform/data/spawn.h-data: Likewise.
74632         * conform/data/stdio.h-data: Likewise.
74633         * conform/data/stdlib.h-data: Likewise.
74634         * conform/data/stropts.h-data: Likewise.
74635         * conform/data/sys/mman.h-data: Likewise.
74636         * conform/data/sys/stat.h-data: Likewise.
74637         * conform/data/sys/types.h-data: Likewise.
74638         * conform/data/sys/wait.h-data: Likewise.
74639         * conform/data/time.h-data: Likewise.
74640         * conform/data/unistd.h-data: Likewise.
74641         * conform/data/utime.h-data: Likewise.
74642
74643         * io/sys/stat.h: fchmod was always in POSIX.
74644         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
74645         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
74646         * rt/aio.h: Define __need_timespec before including <time.h>.
74647         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
74648         struct.  Add forward declaration of pthread_attr_t and use it in
74649         sigevent.
74650         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74651         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74652         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
74653         always remove CLK_TCK definition.
74654
74655 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
74656
74657         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
74658
74659 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
74660
74661         * conform/run-conformtest.sh: New file.
74662         * conform/Makefile: Run run-conformtest for tests.
74663         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
74664         support.
74665
74666         * conform/data/uchar.h-data: New file.
74667         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
74668         * conform/data/arpa/inet.h-data: Likewise.
74669         * conform/data/assert.h-data: Likewise.
74670         * conform/data/complex.h-data: Likewise.
74671         * conform/data/cpio.h-data: Likewise.
74672         * conform/data/ctype.h-data: Likewise.
74673         * conform/data/dirent.h-data: Likewise.
74674         * conform/data/dlfcn.h-data: Likewise.
74675         * conform/data/errno.h-data: Likewise.
74676         * conform/data/fcntl.h-data: Likewise.
74677         * conform/data/float.h-data: Likewise.
74678         * conform/data/fmtmsg.h-data: Likewise.
74679         * conform/data/fnmatch.h-data: Likewise.
74680         * conform/data/ftw.h-data: Likewise.
74681         * conform/data/glob.h-data: Likewise.
74682         * conform/data/grp.h-data: Likewise.
74683         * conform/data/iconv.h-data: Likewise.
74684         * conform/data/inttypes.h-data: Likewise.
74685         * conform/data/langinfo.h-data: Likewise.
74686         * conform/data/libgen.h-data: Likewise.
74687         * conform/data/limits.h-data: Likewise.
74688         * conform/data/locale.h-data: Likewise.
74689         * conform/data/math.h-data: Likewise.
74690         * conform/data/monetary.h-data: Likewise.
74691         * conform/data/mqueue.h-data: Likewise.
74692         * conform/data/ndbm.h-data: Likewise.
74693         * conform/data/net/if.h-data: Likewise.
74694         * conform/data/netdb.h-data: Likewise.
74695         * conform/data/netinet/in.h-data: Likewise.
74696         * conform/data/nl_types.h-data: Likewise.
74697         * conform/data/poll.h-data: Likewise.
74698         * conform/data/pthread.h-data: Likewise.
74699         * conform/data/pwd.h-data: Likewise.
74700         * conform/data/regex.h-data: Likewise.
74701         * conform/data/sched.h-data: Likewise.
74702         * conform/data/search.h-data: Likewise.
74703         * conform/data/semaphore.h-data: Likewise.
74704         * conform/data/setjmp.h-data: Likewise.
74705         * conform/data/signal.h-data: Likewise.
74706         * conform/data/spawn.h-data: Likewise.
74707         * conform/data/stdarg.h-data: Likewise.
74708         * conform/data/stdio.h-data: Likewise.
74709         * conform/data/stdlib.h-data: Likewise.
74710         * conform/data/string.h-data: Likewise.
74711         * conform/data/strings.h-data: Likewise.
74712         * conform/data/stropts.h-data: Likewise.
74713         * conform/data/sys/ipc.h-data: Likewise.
74714         * conform/data/sys/mman.h-data: Likewise.
74715         * conform/data/sys/msg.h-data: Likewise.
74716         * conform/data/sys/resource.h-data: Likewise.
74717         * conform/data/sys/select.h-data: Likewise.
74718         * conform/data/sys/sem.h-data: Likewise.
74719         * conform/data/sys/shm.h-data: Likewise.
74720         * conform/data/sys/socket.h-data: Likewise.
74721         * conform/data/sys/stat.h-data: Likewise.
74722         * conform/data/sys/statvfs.h-data: Likewise.
74723         * conform/data/sys/time.h-data: Likewise.
74724         * conform/data/sys/timeb.h-data: Likewise.
74725         * conform/data/sys/times.h-data: Likewise.
74726         * conform/data/sys/types.h-data: Likewise.
74727         * conform/data/sys/uio.h-data: Likewise.
74728         * conform/data/sys/un.h-data: Likewise.
74729         * conform/data/sys/utsname.h-data: Likewise.
74730         * conform/data/sys/wait.h-data: Likewise.
74731         * conform/data/syslog.h-data: Likewise.
74732         * conform/data/tar.h-data: Likewise.
74733         * conform/data/termios.h-data: Likewise.
74734         * conform/data/utime.h-data: Likewise.
74735         * conform/data/utmpx.h-data: Likewise.
74736         * conform/data/varargs.h-data: Likewise.
74737         * conform/data/wchar.h-data: Likewise.
74738         * conform/data/wctype.h-data: Likewise.
74739         * conform/data/wordexp.h-data: Likewise.
74740
74741         * include/stropts.h: New file.
74742         * include/uchar.h: New file.
74743         * include/aio.h: Changes to allow conformtest.pl to use the headers.
74744         * include/assert.h: Likewise.
74745         * include/ctype.h: Likewise.
74746         * include/dirent.h: Likewise.
74747         * include/dlfcn.h: Likewise.
74748         * include/fcntl.h: Likewise.
74749         * include/fnmatch.h: Likewise.
74750         * include/glob.h: Likewise.
74751         * include/grp.h: Likewise.
74752         * include/libio.h: Likewise.
74753         * include/locale.h: Likewise.
74754         * include/math.h: Likewise.
74755         * include/net/if.h: Likewise.
74756         * include/netdb.h: Likewise.
74757         * include/netinet/in.h: Likewise.
74758         * include/pthread.h: Likewise.
74759         * include/pwd.h: Likewise.
74760         * include/regex.h: Likewise.
74761         * include/sched.h: Likewise.
74762         * include/search.h: Likewise.
74763         * include/setjmp.h: Likewise.
74764         * include/signal.h: Likewise.
74765         * include/stdio.h: Likewise.
74766         * include/stdlib.h: Likewise.
74767         * include/string.h: Likewise.
74768         * include/sys/cdefs.h: Likewise.
74769         * include/sys/mman.h: Likewise.
74770         * include/sys/msg.h: Likewise.
74771         * include/sys/resource.h: Likewise.
74772         * include/sys/select.h: Likewise.
74773         * include/sys/socket.h: Likewise.
74774         * include/sys/stat.h: Likewise.
74775         * include/sys/statvfs.h: Likewise.
74776         * include/sys/time.h: Likewise.
74777         * include/sys/times.h: Likewise.
74778         * include/sys/uio.h: Likewise.
74779         * include/sys/utsname.h: Likewise.
74780         * include/sys/wait.h: Likewise.
74781         * include/termios.h: Likewise.
74782         * include/time.h: Likewise.
74783         * include/ulimit.h: Likewise.
74784         * include/unistd.h: Likewise.
74785         * include/utime.h: Likewise.
74786         * include/wchar.h: Likewise.
74787         * include/wctype.h: Likewise.
74788         * include/wordexp.h: Likewise.
74789
74790         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
74791
74792         * time/time.h: TIME_UTC must be a macro.
74793         Make timespec_get available for ISO C11 only as well.
74794
74795 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
74796
74797         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
74798         Reported by Peng Haitao <penght@cn.fujitsu.com>.
74799
74800 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74801
74802         * configure.in: Use -o not -a in test for unsupported multi-arch.
74803
74804 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74805
74806         * manual/texinfo.tex: Update to version 2012-01-19.16.
74807
74808 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
74809
74810         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
74811
74812 2012-02-24  Roland McGrath  <roland@hack.frob.com>
74813
74814         [BZ #13738]
74815         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
74816         * manual/fdl-1.3.texi: New file.
74817         * manual/fdl-1.1.texi: File removed.
74818
74819         [BZ #13738]
74820         * manual/libc.texinfo (FDL_VERSION): New @set.
74821         Use it for mention of FDL in cover text.
74822         (Documentation License): Use it in @include file name.
74823
74824 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74825             Roland McGrath  <roland@hack.frob.com>
74826
74827         [BZ #5461]
74828         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
74829         (not LONG_LONG_MAX and LONG_LONG_MIN.
74830         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
74831         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
74832         name.
74833         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
74834
74835 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74836
74837         [BZ #2547]
74838         [BZ #11365]
74839         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
74840         manipulate bits before adding and subtracting TWO23[sx].
74841         * math/libm-test.inc (nearbyint_test): Add more tests.
74842
74843 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74844
74845         [BZ #2548]
74846         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
74847         bits before adding and subtracting TWO23[sx].
74848         * math/libm-test.inc (rint_test): Add more tests.
74849         (rint_test_tonearest): Likewise.
74850         (rint_test_towardzero): Likewise.
74851         (rint_test_downward): Likewise.
74852         (rint_test_upward: Likewise.
74853
74854 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74855
74856         [BZ #10110]
74857         * include/stdc-predef.h: New file.  Extracted from features.h.
74858         * include/features.h: Include stdc-predef.h.
74859         * Makefile (headers): Add stdc-predef.h.
74860         * CONFORMANCE (Compiler limitations): Update.
74861
74862 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
74863
74864         * manual/libc.texinfo (VERSION, UPDATED): Revert.
74865
74866 2012-02-21  David S. Miller  <davem@davemloft.net>
74867
74868         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
74869         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
74870
74871 2012-02-20  David S. Miller  <davem@davemloft.net>
74872
74873         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
74874         using a normal save/restore sequence, rather than allocating a
74875         dummy stack frame just to store a frame pointer and restore.
74876         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74877
74878 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
74879
74880         * manual/install.texi: Fix stray word in line-wrapped comment.
74881
74882 2012-02-20  David S. Miller  <davem@davemloft.net>
74883
74884         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
74885         both binutils and gcc support GOTDATA.
74886
74887         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
74888         "rd %pc" in the PIC register setup sequences.
74889
74890         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
74891         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
74892         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
74893         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
74894         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
74895         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
74896         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
74897         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
74898         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
74899         (SYSCALL_ERROR_HANDLER): Likewise.
74900         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
74901         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
74902         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
74903         (SYSCALL_ERROR_HANDLER): Likewise.
74904
74905         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
74906         (HAVE_GCC_GOTDATA): New.
74907         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
74908         relocation support in both binutils and gcc.
74909         * sysdeps/sparc/elf/configure: Regenerate.
74910
74911         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
74912         * sysdeps/sparc/sparc32/elf/configure: Delete.
74913         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
74914         * sysdeps/sparc/sparc64/elf/configure: Delete.
74915         * sysdeps/sparc/elf/configure.in: New file.
74916         * sysdeps/sparc/elf/configure: Generate.
74917
74918         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
74919         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
74920         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
74921         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
74922         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
74923
74924 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
74925
74926         * manual/install.texi: Do not mention specific glibc version
74927         numbers.
74928         * manual/libc.texinfo (VERSION, UPDATED): Update.
74929         (@copying): Use @copyright{} and range of years.
74930
74931 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
74932
74933         [BZ #13695]
74934         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
74935         [crti.S not in sysdirs] (generated): Do not append.
74936         [crti.S not in sysdirs] (omit-deps): Likewise.
74937         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
74938         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
74939         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
74940         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
74941         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
74942         Likewise.
74943         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
74944         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
74945         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
74946         * csu/defs.awk: Remove file.
74947         * sysdeps/generic/initfini.c: Likewise.
74948         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
74949         variable.
74950         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
74951         Likewise.
74952
74953 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
74954
74955         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
74956         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
74957         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
74958         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
74959         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
74960         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
74961         <bits/epoll.h>.
74962         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
74963         (__EPOLL_PACKED): Define to empty if not defined by
74964         <bits/epoll.h>.
74965         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
74966         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74967         bits/epoll.h.
74968
74969 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
74970
74971         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
74972         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
74973         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
74974         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
74975         <bits/timerfd.h>.
74976         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
74977         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74978         bits/timerfd.h.
74979
74980 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
74981
74982         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
74983         in C locale.
74984         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
74985         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
74986         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
74987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74988
74989 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
74990
74991         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
74992         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
74993
74994 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
74995
74996         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
74997         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
74998         defined.
74999         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
75000         Likewise.
75001         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
75002         entry for 2.16.
75003
75004 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
75005
75006         * math/w_acos.c: Use non-signaling floating-point comparisons.
75007         * math/w_acosf.c: Likewise.
75008         * math/w_acosh.c: Likewise.
75009         * math/w_acoshf.c: Likewise.
75010         * math/w_acoshl.c: Likewise.
75011         * math/w_acosl.c: Likewise.
75012         * math/w_asin.c: Likewise.
75013         * math/w_asinf.c: Likewise.
75014         * math/w_asinl.c: Likewise.
75015         * math/w_atanh.c: Likewise.
75016         * math/w_atanhf.c: Likewise.
75017         * math/w_atanhl.c: Likewise.
75018         * math/w_exp2.c: Likewise.
75019         * math/w_exp2f.c: Likewise.
75020         * math/w_exp2l.c: Likewise.
75021         * math/w_j0.c: Likewise.
75022         * math/w_j0f.c: Likewise.
75023         * math/w_j0l.c: Likewise.
75024         * math/w_j1.c: Likewise.
75025         * math/w_j1f.c: Likewise.
75026         * math/w_j1l.c: Likewise.
75027         * math/w_jn.c: Likewise.
75028         * math/w_jnf.c: Likewise.
75029         * math/w_log.c: Likewise.
75030         * math/w_log10.c: Likewise.
75031         * math/w_log10f.c: Likewise.
75032         * math/w_log10l.c: Likewise.
75033         * math/w_log2.c: Likewise.
75034         * math/w_log2f.c: Likewise.
75035         * math/w_log2l.c: Likewise.
75036         * math/w_logf.c: Likewise.
75037         * math/w_logl.c: Likewise.
75038         * math/w_sqrt.c: Likewise.
75039         * math/w_sqrtf.c: Likewise.
75040         * math/w_sqrtl.c: Likewise.
75041         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
75042         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
75043         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
75044         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
75045         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
75046
75047 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75048
75049         [BZ #9739]
75050         * manual/string.texi (strnlen): Use correct parameter name in
75051         equivalent expression.
75052
75053 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75054
75055         [BZ #11174]
75056         * manual/users.texi (seteuid): Consistently use neweuid for
75057         argument name.
75058
75059 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
75060
75061         [BZ #13704]
75062         * manual/nss.texi (Services in the NSS configuration): Correct
75063         list of services in example configuration file.
75064
75065 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
75066
75067         [BZ #11322]
75068         * manual/arith.texi: Remove statements about negative zero
75069         behaving identically to zero.
75070
75071 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75072
75073         [BZ #5993]
75074         * manual/install.texi: Do not document upgrading from libc5.
75075
75076 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
75077
75078         [BZ #4596]
75079         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
75080
75081 2012-02-18  David S. Miller  <davem@davemloft.net>
75082
75083         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
75084         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
75085         %o7 across the call.
75086         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
75087         instead.
75088         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
75089         SETUP_PIC_REG_LEAF.
75090         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
75091         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
75092         * sysdeps/sparc/crtn.S: Likewise.
75093
75094 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
75095
75096         * aout/Makefile: Remove.
75097
75098 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
75099
75100         [BZ #13058]
75101         * manual/examples/argp-ex1.c (main): Format definition in GNU
75102         style.
75103         * manual/examples/argp-ex2.c (main): Likewise.
75104         * manual/examples/argp-ex3.c (main): Likewise.
75105         * manual/examples/argp-ex4.c (main): Likewise.
75106         * manual/examples/longopt.c (main): Use new-style prototype
75107         definition.
75108         * manual/examples/strncat.c (main): Specify return type and use
75109         (void) for arguments.
75110         * manual/examples/subopt.c (main): Use char **argv argument.
75111
75112 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75113
75114         [BZ #5077]
75115         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
75116         rounding modes.
75117
75118 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
75119
75120         [BZ #6907]
75121         * manual/string.texi (strchr): Change when strchrnul is
75122         recommended.
75123
75124 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
75125
75126         [BZ #174]
75127         * manual/locale.texi (setlocale): Document LOCPATH.
75128
75129 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75130
75131         [BZ #10210]
75132         * manual/process.texi (execle): Move @dots{} before last argument.
75133
75134 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
75135
75136         [BZ #12047]
75137         * manual/charset.texi (Generic Charset Conversion): Fix typo
75138         (LC_TYPE -> LC_CTYPE).
75139
75140 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
75141
75142         [BZ #5805]
75143         * manual/arith.texi (scalbn): Use @var{} on parameter names.
75144         (scalbnf): Likewise.
75145         (scalbnl): Likewise.
75146         (scalbln): Likewise.
75147         (scalblnf): Likewise.
75148         (scalblnl): Likewise.
75149         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
75150         (vwarnx): Likewise.
75151         (verr): Likewise.
75152         (verrx): Likewise.
75153         * manual/filesys.texi (telldir): Use braces around return type.
75154         * manual/llio.texi (mmap): Add space after comma.
75155         (mmap64): Likewise.
75156         * manual/math.texi (jn): Use @var{} on parameter names.
75157         (jnf): Likewise.
75158         (jnl): Likewise.
75159         (yn): Likewise.
75160         (ynf): Likewise.
75161         (ynl): Likewise.
75162         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
75163         line.
75164         * manual/resource.texi (ulimit): Use @dots{} instead of literal
75165         "...".
75166         (sched_get_priority_min): Remove semicolon on @deftypefun line.
75167         (sched_get_priority_max): Likewise.
75168         * manual/signal.texi (sigvec): Add space after comma.
75169         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
75170         names.
75171         (if_indextoname): Likewise.
75172         (if_freenameindex): Likewise.
75173         (sendto): Use ',' instead of '.' in prototype.
75174         * manual/startup.texi (syscall): Use @dots{} instead of literal
75175         "...".
75176         * manual/stdio.texi (__fpending): Separate initial words of
75177         paragraph from @deftypefun line.
75178         * manual/syslog.texi (syslog): Use @dots{} instead of literal
75179         "...".
75180         (vsyslog): Use @var{} on parameter names.
75181         * manual/terminal.texi (stty): Use @var{} on parameter names.
75182         * manual/users.texi (getutmp): Use @var{} on parameter names.
75183         (getutmpx): Likewise.
75184
75185 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75186
75187         [BZ #6884]
75188         * manual/stdio.texi (fopen): Fix typos in description of
75189         ",ccs=STRING".
75190
75191 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
75192
75193         [BZ #4026]
75194         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
75195         get clock_id definition.
75196
75197 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
75198
75199         [BZ #4822]
75200         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
75201         (madvise): Cast every argument to void on its own.
75202
75203 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75204
75205         [BZ #9902]
75206         * manual/startup.texi (Exit Status): Fix typo.
75207
75208 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
75209
75210         [BZ #10140]
75211         * manual/examples/argp-ex1.c: Include <stdlib.h>.
75212         * manual/examples/argp-ex2.c: Likewise.
75213         * manual/examples/argp-ex3.c: Likewise.
75214
75215 2012-02-16  Richard Henderson  <rth@redhat.com>
75216
75217         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
75218         * sysdeps/s390/s390-32/initfini.c: Remove.
75219         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
75220         * sysdeps/s390/s390-64/initfini.c: Remove.
75221
75222 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75223
75224         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
75225         compiler output for sysdeps/generic/initfini.c.
75226         * sysdeps/sh/elf/initfini.c: Remove file.
75227
75228 2012-02-16  David S. Miller  <davem@davemloft.net>
75229
75230         [BZ #11494]
75231         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
75232
75233         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
75234         * sysdeps/sparc/crti.S: New file.
75235         * sysdeps/sparc/crtn.S: New file.
75236         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
75237         * sysdeps/sparc/sparc64/Makefile: Likewise.
75238
75239 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
75240
75241         [BZ #3335]
75242         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
75243
75244 2012-02-15  Roland McGrath  <roland@hack.frob.com>
75245
75246         [BZ #4822]
75247         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
75248
75249         * mach/devstream.c (cookie_io_functions_t): Macro removed.
75250         (write, read, close): Likewise.
75251         Patch by Aurelien Jarno <aurelien@aurel32.net>.
75252
75253 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
75254
75255         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
75256         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
75257         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
75258         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
75259         <bits/signalfd.h>.
75260         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
75261         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75262         bits/signalfd.h.
75263
75264 2012-02-14  Marek Polacek  <polacek@redhat.com>
75265
75266         * sysdeps/x86_64/crti.S: New file.
75267         * sysdeps/x86_64/crtn.S: New file.
75268         * sysdeps/x86_64/elf/initfini.c: Remove file.
75269
75270 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75271
75272         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
75273         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
75274         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
75275         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
75276         <bits/inotify.h>.
75277         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
75278         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75279         bits/inotify.h.
75280
75281 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
75282
75283         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
75284         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
75285         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
75286         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
75287         <bits/eventfd.h>.
75288         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
75289         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75290         bits/eventfd.h.
75291
75292 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
75293
75294         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
75295         __feraiseexcept instead of feraiseexcept.
75296
75297         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
75298         nanosleep invocations.
75299         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
75300         strings, and add error checking for a nanosleep invocations.
75301
75302 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         Replace FSF snail mail address with URLs, as per GNU coding standards.
75305         Most of the snail mail addresses were wrong anyway, and omitting
75306         them makes the source code easier to maintain.  Almost all of the
75307         changes are to license notices and to locale LC_IDENTIFICATION
75308         addresses, except for this one:
75309         * manual/libc.texinfo: In "Published by", give the FSF's URL,
75310         not its snail mail address.
75311
75312 2012-02-09  Richard Henderson  <rth@twiddle.net>
75313
75314         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
75315         of kernel-features.h.
75316
75317         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
75318
75319 2012-02-08  Marek Polacek  <polacek@redhat.com>
75320
75321         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
75322         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
75323         * sysdeps/gnu/_G_config.h: Likewise.
75324         * sysdeps/generic/_G_config.h: Likewise.
75325
75326 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
75327
75328         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
75329         tests.
75330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75331
75332         * sysdeps/powerpc/powerpc32/crti.S: New file.
75333         * sysdeps/powerpc/powerpc32/crtn.S: New file.
75334         * sysdeps/powerpc/powerpc64/crti.S: New file.
75335         * sysdeps/powerpc/powerpc64/crtn.S: New file.
75336
75337         * Makeconfig (have-initfini): Don't set.
75338         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
75339         * configure.in (nopic_initfini): Don't substitute.
75340         * config.h.in (HAVE_INITFINI): Don't #undef.
75341         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
75342         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
75343
75344 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
75345
75346         Support crti.S and crtn.S provided directly by architectures.
75347         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
75348         [crti.S in sysdirs] (omit-deps): Likewise.
75349         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
75350         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
75351         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
75352         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
75353         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
75354         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
75355         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
75356         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
75357         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
75358         compiler output for sysdeps/generic/initfini.c.
75359         * sysdeps/i386/elf/Makefile: Remove file.
75360         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
75361
75362 2012-02-07  Marek Polacek  <polacek@redhat.com>
75363
75364         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
75365         * sysdeps/gnu/_G_config.h: Likewise.
75366         * sysdeps/mach/hurd/_G_config.h: Likewise.
75367
75368 2012-02-07  Marek Polacek  <polacek@redhat.com>
75369
75370         * math/Makefile (tests): Add tst-CMPLX2.
75371         * math/tst-CMPLX2.c: New file.
75372
75373 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
75374
75375         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
75376
75377         * math/libm-test.inc (jn_test): Add missing L suffix.
75378
75379 2012-02-06  Marek Polacek  <polacek@redhat.com>
75380
75381         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
75382         * sysdeps/i386/fpu/e_powf.S: Likewise.
75383         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
75384         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
75385         * sysdeps/i386/fpu/e_acosh.S: Likewise.
75386         * sysdeps/i386/fpu/e_pow.S: Likewise.
75387         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
75388         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
75389         * sysdeps/i386/fpu/s_expm1.S: Likewise.
75390         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
75391         * sysdeps/i386/fpu/e_log2.S: Likewise.
75392         * sysdeps/i386/fpu/e_log2l.S: Likewise.
75393         * sysdeps/i386/fpu/e_scalb.S: Likewise.
75394         * sysdeps/i386/fpu/e_powl.S: Likewise.
75395         * sysdeps/i386/fpu/s_log1p.S: Likewise.
75396         * sysdeps/i386/fpu/e_log10f.S: Likewise.
75397         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
75398         * sysdeps/i386/fpu/e_logl.S: Likewise.
75399         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
75400         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
75401         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
75402         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
75403         * sysdeps/i386/fpu/e_log2f.S: Likewise.
75404         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
75405         * sysdeps/i386/fpu/e_log.S: Likewise.
75406         * sysdeps/i386/fpu/s_cexp.S: Likewise.
75407         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
75408         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
75409         * sysdeps/i386/fpu/e_logf.S: Likewise.
75410         * sysdeps/i386/fpu/e_log10l.S: Likewise.
75411         * sysdeps/i386/fpu/e_atanh.S: Likewise.
75412         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
75413         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
75414         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
75415         * sysdeps/i386/fpu/e_log10.S: Likewise.
75416         * sysdeps/i386/fpu/s_frexp.S: Likewise.
75417         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
75418         * sysdeps/i386/fpu/s_asinh.S: Likewise.
75419         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
75420         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
75421         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
75422         * sysdeps/i386/asm-syntax.h: Likewise.
75423         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
75424         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
75425         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
75426         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75427         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
75428         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
75429         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
75430         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
75431         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
75432         * sysdeps/powerpc/sysdep.h: Likewise.
75433         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
75434         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
75435
75436 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75437
75438         [BZ #411]
75439         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
75440
75441 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
75442
75443         * sysdeps/i386/sysdep.h: Include <features.h>.
75444         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
75445         version.
75446
75447 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
75448
75449         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
75450         Define.
75451         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
75452         LOAD_PIC_REG_STR.
75453
75454 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75455
75456         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
75457         (SETUP_PIC_REG): Use GET_PC_THUNK.
75458         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
75459         macro.
75460
75461 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75462
75463         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
75464         for non-PIC compilation.
75465         (SETUP_PIC_REG): Add .p2align directive.
75466         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
75467         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
75468         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
75469         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
75470         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
75471         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
75472         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
75473         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75474         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
75475         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
75476         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
75477         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
75478         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
75479         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
75480         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
75481         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
75482         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
75483         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
75484         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
75485         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
75486         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
75487         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
75488         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
75489         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
75490         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
75491         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
75492         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
75493         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
75494         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
75495         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
75496         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
75497         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
75498         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
75499         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
75500         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
75501         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
75502         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
75503         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
75504         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
75505         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
75506         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
75507
75508 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
75509
75510         * math/tst-CMPLX.c: Include <stdio.h>.
75511
75512 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
75513
75514         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
75515         float.
75516         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75517         * sysdeps/sparc/bits/mathdef.h: Likewise.
75518
75519 2012-01-31  Marek Polacek  <polacek@redhat.com>
75520
75521         * libio/libio.h: Don't define _PARAMS.
75522         * locale/programs/config.h: Don't define PARAMS.
75523         * stdlib/strtol_l.c: Likewise.
75524         (__strtol_l): Remove PARAMS from the prototype.
75525
75526 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
75527
75528         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
75529         names.  Just use the correct names.  Remove unnecessary wrapper
75530         functions.
75531         * malloc/arena.c: Likewise.
75532         * malloc/hooks.c: Likewise.
75533
75534         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
75535         ARENA_TEST says not to.  Simplify test for creation of a new arena.
75536         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
75537
75538 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
75539
75540         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
75541         into tail calls.
75542         (update_get_addr): New function.
75543         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
75544         GET_ADDR_MODULE parameter.
75545
75546 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75547
75548         * crypt/cert.c: Remove __STDC__ conditionals.
75549         * crypt/crypt-entry.c: Likewise.
75550         * crypt/crypt_util.c: Likewise.
75551         * libio/filedoalloc.c: Likewise.
75552         * libio/fileops.c: Likewise.
75553         * libio/genops.c: Likewise.
75554         * libio/iofclose.c: Likewise.
75555         * libio/iofdopen.c: Likewise.
75556         * libio/iofopen.c: Likewise.
75557         * libio/iofopen64.c: Likewise.
75558         * libio/iogetdelim.c: Likewise.
75559         * libio/iopopen.c: Likewise.
75560         * libio/obprintf.c: Likewise.
75561         * libio/oldfileops.c: Likewise.
75562         * libio/oldiofclose.c: Likewise.
75563         * libio/oldiofdopen.c: Likewise.
75564         * libio/oldiofopen.c: Likewise.
75565         * libio/oldiopopen.c: Likewise.
75566         * libio/wfiledoalloc.c: Likewise.
75567         * libio/wgenops.c: Likewise.
75568         * locale/programs/xmalloc.c: Likewise.
75569         * misc/syslog.c: Likewise.
75570         * stdio-common/xbug.c: Likewise.
75571         * string/memchr.c: Likewise.
75572         * string/memcmp.c: Likewise.
75573         * string/memrchr.c: Likewise.
75574         * string/rawmemchr.c: Likewise.
75575         * sysdeps/posix/getcwd.c: Likewise.
75576         * time/strftime_l.c: Likewise.
75577
75578 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
75579
75580         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
75581         * config.make.in (config-cflags-sse2avx): Define.
75582         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
75583         Fix typo.
75584
75585 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
75586
75587         * scripts/config.guess: Update from upstream config git repository.
75588         * scripts/config.sub: Likewise.
75589
75590 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
75591
75592         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
75593         (EM_NUM): Update.
75594         (R_TILEPRO_*, R_TILEGX_*): New macros.
75595
75596         * scripts/firstversions.awk: Fix bug in version range handling.
75597
75598         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
75599
75600         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
75601
75602         * include/sys/epoll.h: New file.
75603         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
75604         libc_hidden_def.
75605
75606 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
75607
75608         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
75609         Avoid unnecessary __WORDSIZE == 64 test.
75610         (fmaxf): Use VEX format if possible.
75611         (fmax): Likewise.
75612         (fminf): Likewise.
75613         (fmin): Likewise.
75614
75615         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
75616         * math/math_private.h: Remove libc_fegetround* and
75617         libc_fesetround*.
75618         * sysdeps/i386/configure.in: Check for -msse2avx.
75619         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
75620         also if SSE2AVX is defined.
75621         Remove libc_fegetround* and libc_fesetround*.
75622         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
75623         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
75624         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
75625         of HAS_YMM_USABLE.
75626         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75627         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75628         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75629         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75630         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75631
75632         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
75633
75634 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75635
75636         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
75637         size is not set.
75638         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75639
75640 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
75641
75642         [BZ #13618]
75643         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
75644         relocation.
75645         * Makeconfig (libm): Define.
75646         * elf/Makefile: Add rules to build and run tst-relsort1.
75647         * elf/tst-relsort1.c: New file.
75648         * elf/tst-relsort1mod1.c: New file.
75649         * elf/tst-relsort1mod2.c: New file.
75650
75651 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
75652
75653         * math/s_ldexp.c: Remove __STDC__ conditionals.
75654         * math/s_ldexpf.c: Likewise.
75655         * math/s_ldexpl.c: Likewise.
75656         * math/s_nextafter.c: Likewise.
75657         * math/s_nexttowardf.c: Likewise.
75658         * math/s_significand.c: Likewise.
75659         * math/s_significandf.c: Likewise.
75660         * math/s_significandl.c: Likewise.
75661         * math/w_jnl.c: Likewise.
75662         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
75663         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
75664         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
75665         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
75666         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
75667         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
75668         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
75669         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
75670         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
75671         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
75672         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
75673         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
75674         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
75675         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
75676         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
75677         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
75678         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
75679         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
75680         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
75681         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
75682         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
75683         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
75684         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
75685         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
75686         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
75687         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
75688         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
75689         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
75690         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
75691         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
75692         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
75693         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
75694         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
75695         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
75696         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
75697         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
75698         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
75699         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
75700         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
75701         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
75702         * sysdeps/ieee754/k_standard.c: Likewise.
75703         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
75704         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
75705         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
75706         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
75707         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
75708         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
75709         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
75710         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
75711         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
75712         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
75713         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
75714         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
75715         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
75716         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
75717         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
75718         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
75719         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
75720         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
75721         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
75722         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
75723         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
75724         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
75725         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
75726         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
75727         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
75728         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
75729         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
75730         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
75731         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
75732         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
75733         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
75734         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
75735         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
75736         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
75737         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
75738         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
75739         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
75740         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
75741         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
75742         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
75743         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
75744         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
75745         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
75746         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
75747         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
75748         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
75749         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
75750         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
75751         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
75752         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
75753         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
75754         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
75755         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
75756         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
75757         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
75758         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
75759         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
75760         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
75761         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
75762         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
75763         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
75764         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
75765         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
75766         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
75767         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
75768         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
75769         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
75770         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
75771         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
75772         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
75773         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
75774         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
75775         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
75776         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
75777         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
75778         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
75779         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
75780         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
75781         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
75782         * sysdeps/ieee754/s_matherr.c: Likewise.
75783         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
75784         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
75785         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
75786         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
75787
75788 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75789
75790         * crypt/md5.h: Remove __STDC__ conditionals.
75791         * libio/libioP.h: Likewise.
75792         * locale/programs/config.h: Likewise.
75793         * sysdeps/generic/sysdep.h: Likewise.
75794         * sysdeps/i386/asm-syntax.h: Likewise.
75795         * sysdeps/s390/asm-syntax.h: Likewise.
75796         * sysdeps/unix/sysdep.h: Likewise.
75797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
75798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
75799
75800 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
75801
75802         * libio/libio.h: Remove __STDC__ conditionals.
75803         * malloc/obstack.h: Likewise.
75804         * math/complex.h: Likewise.
75805         * math/math.h: Likewise.
75806         * sysdeps/generic/_G_config.h: Likewise.
75807         * sysdeps/gnu/_G_config.h: Likewise.
75808         * sysdeps/mach/hurd/_G_config.h: Likewise.
75809         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75810         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
75811         * sysdeps/sparc/bits/mathdef.h: Likewise.
75812
75813 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
75814
75815         [BZ #13583]
75816         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
75817         Clean up HAS_* macros.
75818         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
75819         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
75820         possible.
75821         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
75822         HAS_AVX.
75823         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
75824         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
75825         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
75826         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
75827         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
75828
75829 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
75830
75831         * elf/tst-unique3.cc (gets): Remove declaration.
75832         * elf/tst-unique3lib.cc (gets): Likewise.
75833         * elf/tst-unique3lib2.cc (gets): Likewise.
75834         * elf/tst-unique4.cc (gets): Likewise.
75835
75836 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
75837
75838         * include/stdio.h: Add C++ protection.  Add gets declarations and
75839         definitions.
75840         * debug/tst-chk1.c: Don't declare gets here.
75841         * stdio-common/tst-gets.c: Likewise.
75842
75843 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
75844
75845         * posix/glob: Remove directory.
75846
75847 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
75848
75849         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
75850
75851 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
75852
75853         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
75854         of the non-standard EPFNOSUPPORT.
75855
75856 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75857
75858         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
75859         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
75860         ANYWHERE set to 1 only on KERN_NO_SPACE error.
75861
75862 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
75863
75864         * wcsmbs/uchar.h: Test __STDC_VERSION__.
75865
75866 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
75867
75868         * nscd/aicache.c (addhstaiX): Do not cache negative results of
75869         transient errors.
75870         * nscd/grpcache.c (cache_addgr): Likewise.
75871         * nscd/hstcache.c (cache_addhst): Likewise.
75872         * nscd/initgrcache.c (addinitgroupsX): Likewise.
75873         * nscd/pwdcache.c (cache_addpw): Likewise.
75874         * nscd/servicescache.c (cache_addserv): Likewise.
75875
75876 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
75877
75878         * malloc/malloc.c: Various cleanups.
75879         * malloc/hooks.c: Likewise.
75880
75881         * stdlib/Makefile (tests): Add bug-fmtmsg1.
75882         * stdlib/bug-fmtmsg1.c: New file.
75883
75884         * stdlib/fmtmsg.c (init): Add missing unlock.
75885         Patch by Peng Haitao <penght@cn.fujitsu.com>.
75886
75887 2012-01-12  Marek Polacek  <polacek@redhat.com>
75888
75889         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
75890         and _GNU_SOURCE.
75891
75892 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
75893
75894         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
75895         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
75896         macro to ensure uniqueness of label name.
75897         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
75898         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
75899
75900 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
75901
75902         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
75903
75904         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
75905         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
75906         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
75907         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
75908
75909 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
75910
75911         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
75912
75913         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
75914         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
75915         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
75916
75917         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
75918
75919         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
75920         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
75921         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
75922         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
75923
75924         * math/bits/math-finite.h: Add ldexp support.
75925
75926 2012-01-10  Marek Polacek  <polacek@redhat.com>
75927
75928         * locale/programs/localedef.h (show_archive_content): Add noreturn
75929         attribute.
75930
75931 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
75932
75933         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
75934
75935 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
75936
75937         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
75938
75939         * io/Makefile (headers): Add bits/poll2.h.
75940
75941 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
75942
75943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
75944         typo #include statement.
75945
75946 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
75947
75948         * include/sys/cdefs.h: Define __attribute_alloc_size.
75949         * catgets/gencat.c: Add alloc_size attribute and apply consistently
75950         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
75951         * elf/pldd.c: Likewise.
75952         * iconv/iconv_charmap.c: Likewise.
75953         * iconv/iconvconfig.c: Likewise.
75954         * iconv/strtab.c: Likewise.
75955         * locale/programs/locale.c: Likewise.
75956         * locale/programs/localedef.h: Likewise.
75957         * locale/programs/simple-hash.c: Likewise.
75958         * nscd/nscd.h: Likewise.
75959         * nss/makedb.c: Likewise.
75960         * sysdeps/generic/ldconfig.h: Likewise.
75961         * locale/programs/localedef.c: Remove xmalloc prototype.
75962         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
75963
75964 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75965
75966         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
75967         appropriate.
75968
75969 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
75970
75971         * math/Makefile (tests): Add tst-CMPLX.
75972         * math/tst-CMPLX.c: New file.
75973
75974         * math/complex.h (CMPLXL): Fix typo.
75975
75976         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
75977         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
75978         GLIBC_2.16.
75979         * debug/tst-chk1.c: Add poll and ppoll tests.
75980         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
75981         * include/sys/poll.h: Add hidden proto for ppoll.
75982         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
75983         * sysdeps/mach/hurd/ppoll.c: Likewise.
75984         * io/ppoll.c: Likewise.
75985         * debug/poll_chk.c: New file.
75986         * debug/ppoll_chk.c: New file.
75987         * include/bits/poll2.h: New file.
75988         * io/bits/poll2.h: New file.
75989
75990         [BZ #1350]
75991         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
75992
75993         * configure.in: static is always set to yes.  Remove.
75994         * config.make.in: Don't set build-static.
75995         * Makeconfig: Remove use of build-static.
75996         * dlfcn/Makefile: Likewise.
75997         * elf/Makefile: Likewise.
75998         * math/Makefile: Likewise.
75999         * misc/Makefile: Likewise.
76000         * nptl/Makefile: Likewise.
76001         * sysdeps/mach/hurd/Makefile: Likewise.
76002
76003         * configure.in: PWD_P is not used anymore.
76004         * config.make.in: Remove PWD_P entry.
76005
76006         * configure.in: Remove last remnants of RANLIB.
76007         No need to check for signed size_t anymore.
76008         Don't set libc_commonpagesize and libc_relro_required here for Alpha
76009         and IA-64.
76010         Remove __builtin_expect test because we require at least gcc 3.4.
76011         * aclocal.m4: Likewise.
76012
76013         * wcsmbs/mbrtoc16.c: Implement using towc function.
76014         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
76015         * wcsmbs/wcsmbsload.c: Likewise.
76016         * iconv/gconv_simple.c: Likewise.
76017         * iconv/gconv_int.h: Likewise.
76018         * iconv/gconv_builtin.h: Likewise.
76019         * iconv/iconv_prog.c: Remove CHAR16 handling.
76020
76021         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
76022
76023         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
76024
76025         * configure.in: Remove --with-elf and --enable-bounded options.
76026         Dont set base_machine for ia64.  More non-ELF conditions removed.
76027         Remove testing and setting of leading underscore information.
76028         * config.make.in (build-bounded): Set to no.
76029         * config.h.in: Remove NO_UNDERSCORES entry.
76030         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
76031         them.
76032         * csu/start.c: Remove !NO_UNDERSCORE code.
76033         * locale/localeinfo.h: Likewise.
76034         * sysdeps/generic/machine-gmon.h: Likewise.
76035         * sysdeps/generic/sysdep.h: Likewise.
76036         * sysdeps/i386/sysdep.h: Likewise.
76037         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76038         * sysdeps/mach/sysdep.h: Likewise.
76039         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76040         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76041         * sysdeps/sh/sysdep.h: Likewise.
76042         * sysdeps/sparc/sparc32/alloca.S: Likewise.
76043         * sysdeps/unix/i386/sysdep.S: Likewise.
76044         * sysdeps/unix/sparc/start.c: Likewise.
76045         * sysdeps/unix/sparc/sysdep.S: Likewise.
76046         * sysdeps/unix/sparc/sysdep.h: Likewise.
76047         * sysdeps/unix/start.c: Likewise.
76048         * sysdeps/unix/x86_64/sysdep.S: Likewise.
76049         * sysdeps/x86_64/sysdep.h: Likewise.
76050
76051 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
76052
76053         [BZ #13553]
76054         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
76055         for non-gcc.
76056         * argp/argp-fmtstream.h: Use const instead __const.
76057         * argp/argp.h: Likewise.
76058         * assert/assert.h: Likewise.
76059         * bits/fenv.h: Likewise.
76060         * bits/sched.h: Likewise.
76061         * bits/sigset.h: Likewise.
76062         * bits/sigthread.h: Likewise.
76063         * catgets/nl_types.h: Likewise.
76064         * conform/data/pthread.h-data: Likewise.
76065         * crypt/crypt-private.h: Likewise.
76066         * crypt/crypt.h: Likewise.
76067         * crypt/crypt_util.c: Likewise.
76068         * ctype/ctype.h: Likewise.
76069         * debug/execinfo.h: Likewise.
76070         * debug/mbsnrtowcs_chk.c: Likewise.
76071         * debug/mbsrtowcs_chk.c: Likewise.
76072         * debug/wcsnrtombs_chk.c: Likewise.
76073         * debug/wcsrtombs_chk.c: Likewise.
76074         * debug/wcstombs_chk.c: Likewise.
76075         * dirent/dirent.h: Likewise.
76076         * dlfcn/dlfcn.h: Likewise.
76077         * elf/neededtest4.c: Likewise.
76078         * grp/grp.h: Likewise.
76079         * gshadow/gshadow.h: Likewise.
76080         * iconv/gconv.h: Likewise.
76081         * iconv/gconv_int.h: Likewise.
76082         * iconv/gconv_simple.c: Likewise.
76083         * iconv/iconv.h: Likewise.
76084         * iconv/loop.c: Likewise.
76085         * iconv/skeleton.c: Likewise.
76086         * include/aio.h: Likewise.
76087         * include/aliases.h: Likewise.
76088         * include/argz.h: Likewise.
76089         * include/arpa/inet.h: Likewise.
76090         * include/assert.h: Likewise.
76091         * include/dirent.h: Likewise.
76092         * include/dlfcn.h: Likewise.
76093         * include/execinfo.h: Likewise.
76094         * include/fcntl.h: Likewise.
76095         * include/fenv.h: Likewise.
76096         * include/glob.h: Likewise.
76097         * include/grp.h: Likewise.
76098         * include/libintl.h: Likewise.
76099         * include/mntent.h: Likewise.
76100         * include/netdb.h: Likewise.
76101         * include/pwd.h: Likewise.
76102         * include/rpc/netdb.h: Likewise.
76103         * include/sched.h: Likewise.
76104         * include/search.h: Likewise.
76105         * include/shadow.h: Likewise.
76106         * include/signal.h: Likewise.
76107         * include/stdio.h: Likewise.
76108         * include/stdlib.h: Likewise.
76109         * include/string.h: Likewise.
76110         * include/sys/socket.h: Likewise.
76111         * include/sys/stat.h: Likewise.
76112         * include/sys/statfs.h: Likewise.
76113         * include/sys/statvfs.h: Likewise.
76114         * include/sys/syslog.h: Likewise.
76115         * include/sys/time.h: Likewise.
76116         * include/sys/uio.h: Likewise.
76117         * include/time.h: Likewise.
76118         * include/unistd.h: Likewise.
76119         * include/utmp.h: Likewise.
76120         * include/wchar.h: Likewise.
76121         * include/wctype.h: Likewise.
76122         * inet/aliases.h: Likewise.
76123         * inet/arpa/inet.h: Likewise.
76124         * inet/netinet/ether.h: Likewise.
76125         * inet/netinet/in.h: Likewise.
76126         * intl/libintl.h: Likewise.
76127         * io/bits/fcntl2.h: Likewise.
76128         * io/fcntl.h: Likewise.
76129         * io/ftw.h: Likewise.
76130         * io/sys/poll.h: Likewise.
76131         * io/sys/stat.h: Likewise.
76132         * io/sys/statfs.h: Likewise.
76133         * io/sys/statvfs.h: Likewise.
76134         * io/utime.h: Likewise.
76135         * libio/bits/stdio.h: Likewise.
76136         * libio/bits/stdio2.h: Likewise.
76137         * libio/libio.h: Likewise.
76138         * libio/libioP.h: Likewise.
76139         * libio/stdio.h: Likewise.
76140         * locale/lc-ctype.c: Likewise.
76141         * locale/locale.h: Likewise.
76142         * login/utmp.h: Likewise.
76143         * malloc/arena.c: Likewise.
76144         * malloc/malloc.c: Likewise.
76145         * malloc/malloc.h: Likewise.
76146         * malloc/mcheck.c: Likewise.
76147         * malloc/mtrace.c: Likewise.
76148         * math/bits/mathcalls.h: Likewise.
76149         * math/fenv.h: Likewise.
76150         * math/math_private.h: Likewise.
76151         * misc/bits/error.h: Likewise.
76152         * misc/bits/syslog.h: Likewise.
76153         * misc/err.h: Likewise.
76154         * misc/error.h: Likewise.
76155         * misc/fstab.h: Likewise.
76156         * misc/mntent.h: Likewise.
76157         * misc/regexp.h: Likewise.
76158         * misc/search.h: Likewise.
76159         * misc/sgtty.h: Likewise.
76160         * misc/sys/mman.h: Likewise.
76161         * misc/sys/syslog.h: Likewise.
76162         * misc/sys/uio.h: Likewise.
76163         * misc/sys/xattr.h: Likewise.
76164         * misc/ttyent.h: Likewise.
76165         * nis/rpcsvc/ypclnt.h: Likewise.
76166         * nss/nss.h: Likewise.
76167         * posix/bits/unistd.h: Likewise.
76168         * posix/fnmatch.h: Likewise.
76169         * posix/glob.h: Likewise.
76170         * posix/sched.h: Likewise.
76171         * posix/spawn.h: Likewise.
76172         * posix/sys/wait.h: Likewise.
76173         * posix/unistd.h: Likewise.
76174         * posix/wordexp.h: Likewise.
76175         * pwd/pwd.h: Likewise.
76176         * resolv/netdb.h: Likewise.
76177         * resource/sys/resource.h: Likewise.
76178         * rt/aio.h: Likewise.
76179         * rt/bits/mqueue2.h: Likewise.
76180         * rt/mqueue.h: Likewise.
76181         * shadow/shadow.h: Likewise.
76182         * signal/signal.h: Likewise.
76183         * socket/send.c: Likewise.
76184         * socket/sendto.c: Likewise.
76185         * socket/sys/socket.h: Likewise.
76186         * stdio-common/printf.h: Likewise.
76187         * stdlib/bits/stdlib.h: Likewise.
76188         * stdlib/fmtmsg.h: Likewise.
76189         * stdlib/monetary.h: Likewise.
76190         * stdlib/stdlib.h: Likewise.
76191         * stdlib/ucontext.h: Likewise.
76192         * streams/stropts.h: Likewise.
76193         * string/argz.h: Likewise.
76194         * string/bits/string2.h: Likewise.
76195         * string/string.h: Likewise.
76196         * string/strings.h: Likewise.
76197         * sunrpc/rpc/auth.h: Likewise.
76198         * sunrpc/rpc/auth_des.h: Likewise.
76199         * sunrpc/rpc/clnt.h: Likewise.
76200         * sunrpc/rpc/netdb.h: Likewise.
76201         * sunrpc/rpc/pmap_clnt.h: Likewise.
76202         * sunrpc/rpc/xdr.h: Likewise.
76203         * sysdeps/generic/inttypes.h: Likewise.
76204         * sysdeps/generic/net/if.h: Likewise.
76205         * sysdeps/generic/sys/swap.h: Likewise.
76206         * sysdeps/gnu/net/if.h: Likewise.
76207         * sysdeps/gnu/utmpx.h: Likewise.
76208         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
76209         * sysdeps/i386/i486/bits/string.h: Likewise.
76210         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
76211         * sysdeps/s390/bits/string.h: Likewise.
76212         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
76213         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
76214         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
76215         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
76216         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
76217         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
76218         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
76219         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
76220         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
76221         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
76222         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
76223         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
76224         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
76225         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
76226         * sysdeps/unix/sysv/linux/readv.c: Likewise.
76227         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
76228         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
76229         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
76230         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
76231         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
76232         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76233         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
76234         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
76235         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
76236         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
76237         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
76238         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
76239         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76240         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
76241         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
76242         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
76243         * sysvipc/sys/ipc.h: Likewise.
76244         * sysvipc/sys/msg.h: Likewise.
76245         * sysvipc/sys/sem.h: Likewise.
76246         * sysvipc/sys/shm.h: Likewise.
76247         * termios/termios.h: Likewise.
76248         * time/sys/time.h: Likewise.
76249         * time/time.h: Likewise.
76250         * wcsmbs/bits/wchar2.h: Likewise.
76251         * wcsmbs/uchar.h: Likewise.
76252         * wcsmbs/wchar.h: Likewise.
76253         * wctype/wctype.h: Likewise.
76254
76255         [BZ #13551]
76256         * Makeconfig: Remove all but ELF support including AIX support.
76257         * Makerules: Likewise.
76258         * config.h.in: Likewise.
76259         * config.make.in: Likewise.
76260         * configure: Likewise.
76261         * configure.in: Likewise.
76262         * csu/Makefile: Likewise.
76263         * csu/version.c: Likewise.
76264         * debug/Makefile: Likewise.
76265         * dlfcn/Makefile: Likewise.
76266         * elf/Makefile: Likewise.
76267         * extra-lib.mk: Likewise.
76268         * iconv/Makefile: Likewise.
76269         * include/libc-symbols.h: Likewise.
76270         * include/shlib-compat.h: Likewise.
76271         * resolv/Makefile: Likewise.
76272         * resolv/res_libc.c: Likewise.
76273         * rt/Makefile: Likewise.
76274         * sysdeps/i386/asm-syntax.h: Likewise.
76275         * sysdeps/i386/sysdep.h: Likewise.
76276         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
76277         * sysdeps/mach/sysdep.h: Likewise.
76278         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
76279         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
76280         * sysdeps/s390/asm-syntax.h: Likewise.
76281         * sysdeps/s390/s390-32/sysdep.h: Likewise.
76282         * sysdeps/s390/s390-64/sysdep.h: Likewise.
76283         * sysdeps/sh/sysdep.h: Likewise.
76284         * sysdeps/unix/sparc/sysdep.h: Likewise.
76285         * sysdeps/wordsize-32/divdi3.c: Likewise.
76286         * sysdeps/x86_64/sysdep.h: Likewise.
76287
76288         * argp/Versions: Remove _argp_unlock_xxx.
76289
76290         [BZ #13559]
76291         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
76292         * abilist/libBrokenLocale.abilist: Likewise.
76293         * abilist/libanl.abilist: Likewise.
76294         * abilist/libc.abilist: Likewise.
76295         * abilist/libcrypt.abilist: Likewise.
76296         * abilist/libdl.abilist: Likewise.
76297         * abilist/libm.abilist: Likewise.
76298         * abilist/libnsl.abilist: Likewise.
76299         * abilist/libpthread.abilist: Likewise.
76300         * abilist/libresolv.abilist: Likewise.
76301         * abilist/librt.abilist: Likewise.
76302         * abilist/libthread_db.abilist: Likewise.
76303         * abilist/libutil.abilist: Likewise.
76304         * abilist/libnss_db.abilist: New file.
76305
76306         * scripts/abilist.awk: Add support for indirect functions.
76307
76308         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
76309
76310         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
76311
76312         * shlib-versions: Remove entries for ports architectures.
76313
76314         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
76315         files in ports.
76316         * elf/stackguard-macros.h: Remove support for IA-64.
76317         * elf/tst-auditmod1.c: Likewise.
76318         * sysdeps/generic/ldsodefs.h: Likewise.
76319
76320         * sysdeps/unix/sysv/linux/configure.in: Ports should define
76321         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
76322         configure files.
76323
76324         [BZ #13552]
76325         * configure.in: Remove --enable-omitfp support.
76326         * FAQ.in: Adjust.
76327         * config.make.in: Likewise.
76328         * Makeconfig: Likewise.
76329         * manual/install.texi: Likewise.
76330
76331         In case anyone cares, the IA-64 architecture could move to ports.
76332         * sysdeps/ia64/*: Removed.
76333         * sysdeps/unix/sysv/linux/ia64/*: Removed.
76334         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
76335
76336         [BZ #13555]
76337         * configure.in: Remove entries for unsupported architectures.
76338
76339         [BZ #13533]
76340         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
76341         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
76342         routines.
76343         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
76344         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
76345         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
76346         fall back to using wcrtomb.
76347         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
76348         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
76349         renaming.
76350         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
76351         * wcsmbs/tst-c16c32-1.c: New file.
76352
76353         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
76354         local variable.
76355
76356         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
76357
76358         * elf/tst-unique3.cc: Add explicit declaration of gets.
76359         * elf/tst-unique3lib.cc: Likewise.
76360         * elf/tst-unique3lib2.cc: Likewise.
76361         * elf/tst-unique4.cc: Likewise.
76362
76363         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
76364
76365 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
76366
76367         [BZ #13566]
76368         * assert/assert.h (static_assert): Don't define for C++.
76369         * libio/stdio.h (gets): Do declare for C++ <= C++11.
76370         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
76371
76372 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
76373
76374         * iconv/loop.c (single loop): Fix assertion in storing of
76375         remaining bytes.
76376
76377         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
76378
76379 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
76380
76381         * posix/getconf.c: Update copyright year.
76382         * nss/getent.c: Likewise.
76383         * nss/makedb.c: Likewise.
76384         * iconv/iconvconfig.c: Likewise.
76385         * iconv/iconv_prog.c: Likewise.
76386         * elf/ldconfig.c: Likewise.
76387         * elf/pldd.c: Likewise.
76388         * elf/sotruss.ksh: Likewise.
76389         * catgets/gencat.c: Likewise.
76390         * csu/version.c: Likewise.
76391         * elf/ldd.bash.in: Likewise.
76392         * elf/sprof.c (print_version): Likewise.
76393         * locale/programs/locale.c: Likewise.
76394         * locale/programs/localedef.c: Likewise.
76395         * login/programs/pt_chown.c: Likewise.
76396         * nscd/nscd.c (print_version): Likewise.
76397         * debug/xtrace.sh: Likewise.
76398         * malloc/memusage.sh: Likewise.
76399         * malloc/mtrace.pl: Likewise.
76400         * debug/catchsegv.sh: Likewise.
76401
76402 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
76403
76404         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
76405         pure attribute.
76406
76407 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
76408
76409         [BZ #13533]
76410         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
76411         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
76412         transformations.
76413         * iconv/gconv_int.h: Likewise.
76414         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
76415         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
76416         from libc for GLIBC_2.16.
76417         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
76418         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
76419         * wcsmbs/uchar.h: Really define mbstate_t.
76420         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
76421         * wcsmbs/c16rtomb.c: New file.
76422         * wcsmbs/mbrtoc16.c: New file.
76423         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
76424         for C/POSIX locale.
76425         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
76426         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
76427
76428         * wcsmbs/wchar.h: Add missing __restrict.
76429
76430 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76431
76432         [BZ #13532]
76433         * time/Makefile (routines): Add timespec_get.
76434         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
76435         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
76436         timespec for ISO C11.
76437         * time/timespec_get.c: New file.
76438         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
76439         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
76440
76441         [BZ #13531]
76442         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
76443         * stdlib/stdlib.h: Declare aligned_alloc.
76444         * Versions.def: Add GLIBC_2.16 for libc.
76445         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
76446
76447         [BZ 13527]
76448         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
76449         ISO C11.
76450
76451         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
76452         code.
76453
76454         [BZ #13528]
76455         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
76456
76457         [BZ #13529]
76458         * assert/assert.h (static_assert): Define.
76459
76460         * version.h: Update for 2.16 development version.
76461
76462         [BZ #13526]
76463         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
76464         _ISOC11_SOURCE.
76465
76466         * version.h (RELEASE): Bump for 2.15 release.
76467         * include/features.h (__GLIBC_MINOR__): Bump to 15.
76468
76469         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
76470         Patch by Marek Polacek <mpolacek@redhat.com>.
76471
76472         * bits/byteswap.h: Protect long long constants with __extension__.
76473         * sysdeps/i386/bits/byteswap.h: Likewise.
76474         * sysdeps/ia64/bits/byteswap.h: Likewise.
76475         * sysdeps/s390/bits/byteswap.h: Likewise.
76476         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76477
76478 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76479
76480         [BZ #13540]
76481         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
76482         destination buffer.
76483         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
76484
76485 2011-12-23  Marek Polacek  <polacek@redhat.com>
76486
76487         * elf/dl-addr.c (determine_info): Add inline keyword.
76488         * elf/tst-auditmod4b.c (check_avx): Likewise.
76489         * elf/tst-auditmod6b.c (check_avx): Likewise.
76490         * elf/tst-auditmod6c.c (check_avx): Likewise.
76491         * elf/tst-auditmod7b.c (check_avx): Likewise.
76492
76493 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
76494
76495         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
76496         !__SSE_MATH__.
76497
76498 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76499
76500         [BZ #13540]
76501         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
76502         processing for last bytes.
76503
76504 2011-08-06  Bruno Haible  <bruno@clisp.org>
76505
76506         [BZ #13061]
76507         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
76508         U+0385, not to U+1FEE.
76509
76510         [BZ #13062]
76511         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
76512         entry for U+00A5 U+0301.
76513
76514 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76515
76516         [BZ #13166]
76517         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
76518         buffer for the output is too small.
76519
76520         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
76521         optimization.
76522
76523         [BZ #13185]
76524         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
76525         SSE flags if possible.
76526
76527 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76528
76529         [BZ #13540]
76530         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
76531         processing for last bytes.
76532
76533 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
76534
76535         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
76536         (syscall-list-default-options, syscall-list-default-condition)
76537         (syscall-list-includes): Define.
76538         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
76539         list of ABIs and options and #if conditions for each ABI.  Do not
76540         handle common syscalls between ABIs specially.
76541         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
76542         Remove.
76543         (syscall-list-variants, syscall-list-32bit-options)
76544         (syscall-list-32bit-condition, syscall-list-64bit-options)
76545         (syscall-list-64bit-condition): Define.
76546         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
76547         (syscall-list-variants, syscall-list-32bit-options)
76548         (syscall-list-32bit-condition, syscall-list-64bit-options)
76549         (syscall-list-64bit-condition): Define.
76550         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
76551         Remove.
76552         (syscall-list-variants, syscall-list-32bit-options)
76553         (syscall-list-32bit-condition, syscall-list-64bit-options)
76554         (syscall-list-64bit-condition): Define.
76555         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
76556         Remove.
76557         (syscall-list-variants, syscall-list-32bit-options)
76558         (syscall-list-32bit-condition, syscall-list-64bit-options)
76559         (syscall-list-64bit-condition): Define.
76560
76561 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
76562
76563         * locale/iso-639.def: Add brx entry.
76564
76565         [BZ #13328]
76566         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
76567         Proposed by Mariusz_Cukr <marcukr@op.pl>.
76568
76569         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
76570         __feraiseexcept_renamed.
76571
76572 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76573
76574         [BZ #13538]
76575         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
76576         EPOLLET with unsigned values.
76577         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
76578         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
76579
76580         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
76581         to large cancellation.
76582         * math/s_cacoshf.c: Likewise.
76583         * math/s_cacoshl.c: Likewise.
76584
76585 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
76586
76587         [BZ #13305]
76588         [BZ #12786]
76589         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
76590         * math/s_cacoshf.c: Likewise.
76591         * math/s_cacoshl.c: Likewise.
76592
76593 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
76594
76595         [BZ #13439]
76596         * iconv/gconv.h: Define __GCONV_SWAP.
76597         * iconvdata/unicode.c: The swap bit must be stored in __flags.
76598         * iconvdata/utf-16.c: Likewise.
76599         * iconvdata/utf-32.c: Likewise.
76600
76601 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
76602
76603         [BZ #13524]
76604         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
76605         numerator after shifting it by one limb.
76606
76607 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
76608
76609         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
76610         under [__USE_EXTERN_INLINES].
76611
76612 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76613
76614         [BZ #13446]
76615         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
76616
76617 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76618
76619         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
76620         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
76621         optimized code.
76622         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
76623         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
76624         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
76625         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
76626         for strncasecmp/strncasecmp_l compilation.
76627         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
76628         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
76629
76630 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
76631
76632         [BZ #13484]
76633         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
76634         of __asm__.
76635
76636 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
76637
76638         [BZ #13506]
76639         * time/tzfile.c (__tzfile_read): Check values from file header.
76640
76641 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
76642
76643         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
76644         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
76645         * powerpc/powerpc32/dl-start.S: Likewise.
76646         * powerpc/powerpc32/elf/start.S: Likewise.
76647         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
76648         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
76649         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
76650         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
76651         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
76652         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
76653         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
76654         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
76655         * powerpc/powerpc32/fpu/s_round.S: Likewise.
76656         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
76657         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
76658         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
76659         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
76660         * powerpc/powerpc32/memset.S: Likewise.
76661         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
76662         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
76663         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
76664         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
76665         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
76666         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
76667         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
76668         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
76669         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
76670         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
76671         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
76672         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
76673         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
76674
76675 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76676
76677         * math/libm-test.inc: Added more nearbyint tests.
76678         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
76679         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
76680         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
76681         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
76682
76683 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
76684
76685         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
76686         FD_CLOEXEC.
76687
76688 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76689
76690         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
76691         Add wcscpy-ssse3 wcscpy-c.
76692         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
76693         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
76694         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
76695         * sysdeps/x86_64/wcschr.S: New file.
76696         * sysdeps/x86_64/wcsrchr.S: New file.
76697         * string/test-strcmp.c: Remove checking of wcscmp function for
76698         wrong alignments.
76699         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
76700         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
76701         wcsrchr-sse2 wcsrchr-c.
76702         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
76703         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
76704         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
76705         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
76706         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
76707         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
76708         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
76709         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
76710         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
76711         * wcsmbc/wcschr.c (WCSCHR): New macro.
76712
76713 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
76714
76715         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
76716         * wcsmbs/test-wcsrchr.c: New file.
76717         * string/test-strrchr.c: Add wcsrchr support.
76718         (WIDE): New macro.
76719         * wcsmbs/test-wcscpy.c: New file.
76720         * string/test-strcpy.c: Add wcscpy support.
76721         (WIDE): New macro.
76722
76723 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
76724
76725         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
76726         the inner loop.
76727
76728 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
76729
76730         [BZ #13472]
76731         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
76732
76733 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
76734
76735         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
76736         Minor optimizations.
76737
76738         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
76739         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
76740         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
76741
76742 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
76743
76744         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
76745         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
76746         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
76747         for gcc to avoid warnings.
76748         * inet/Makefile (tests): Add tst-checks.
76749         * inet/tst-checks.c: New file.
76750
76751         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
76752         warning.
76753
76754         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
76755         __wmemcmp_sse2.
76756
76757         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
76758         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
76759
76760         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
76761
76762 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
76763
76764         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
76765         problem.
76766
76767         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
76768
76769 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
76770
76771         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
76772         conditional on GCC version.
76773         (__arch_compare_and_exchange_val_8_acq)
76774         (__arch_compare_and_exchange_val_16_acq)
76775         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
76776         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
76777         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
76778
76779 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
76780
76781         * sysdeps/sh/backtrace.c: New file.
76782
76783 2011-12-02  Andreas Schwab  <schwab@redhat.com>
76784
76785         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
76786         parenthesis.
76787
76788 2011-12-01  Andreas Schwab  <schwab@redhat.com>
76789
76790         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
76791         falling back to utime.
76792
76793 2011-11-30  Andreas Schwab  <schwab@redhat.com>
76794
76795         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
76796         expectations for float.
76797
76798 2011-11-29  Andreas Schwab  <schwab@redhat.com>
76799
76800         * locale/weight.h (findidx): Add parameter len.
76801         * locale/weightwc.h (findidx): Likewise.
76802         * posix/fnmatch_loop.c (FCT): Adjust caller.
76803         * posix/regcomp.c (build_equiv_class): Likewise.
76804         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
76805         * posix/regexec.c (check_node_accept_bytes): Likewise.
76806         * string/strcoll_l.c (STRCOLL): Likewise.
76807         * string/strxfrm_l.c (STRXFRM): Likewise.
76808
76809 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
76810
76811         * Makefile.in: Remove CVSOPT handling.
76812         * configure.in: Remove use of AC_REVISION.
76813         * iconvdata/Makefile (distribute): No need to filter out CVS.
76814         * scripts/list-sources.sh: Remove CVS, subversion and monotone
76815         handling.
76816
76817 2011-11-16  Andreas Schwab  <schwab@redhat.com>
76818
76819         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
76820         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
76821         [USE_AS_STRNCASECMP_L]: Likewise.
76822         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
76823         NO_TLS_DIRECT_SEG_REFS.
76824         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
76825         Fix argument offsets for non-PIC.
76826         [USE_AS_STRNCASECMP_L]: Likewise.
76827         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
76828         NO_TLS_DIRECT_SEG_REFS.
76829
76830 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
76831
76832         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
76833         O_CLOEXEC.
76834         * locale/loadlocale.c (_nl_load_locale): Likewise.
76835
76836 2011-11-15  Andreas Schwab  <schwab@redhat.com>
76837
76838         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
76839         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
76840         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
76841         (SYSCALL_GETTIME): Set errno on error.
76842
76843         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
76844         count references to noai6ai_cached.
76845
76846 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
76847
76848         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
76849
76850         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
76851         FD_CLOEXEC for /proc/self/maps.
76852
76853         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
76854         FD_CLOEXEC for /proc/meminfo.
76855
76856         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
76857         gai.conf.
76858
76859         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
76860         FD_CLOEXEC for given file.
76861
76862         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
76863
76864         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
76865         FD_CLOEXEC for /etc/hosts.
76866         (_gethtent): Likewise.
76867
76868         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
76869
76870         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
76871         cancellation and set FD_CLOEXEC for /etc/netgroup.
76872
76873         * nss/nss_files/files-key.c (search): Don't allow cancellation when
76874         reading /etc/publickey.
76875
76876         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
76877         allow cancellation when reading /etc/group.
76878
76879         * nss/nss_files/files-alias.c (internal_setent): Don't allow
76880         cancellation.
76881         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
76882
76883         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
76884         when using data file.
76885
76886         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
76887
76888         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
76889         (write_nis_obj): Use "c" and "e" in fopen.
76890
76891         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
76892
76893         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
76894
76895         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
76896
76897         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
76898
76899         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
76900         locale.alias.
76901
76902         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
76903
76904         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
76905
76906         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
76907
76908         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
76909         file parsing and set FD_CLOEXEC.
76910
76911 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
76912
76913         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
76914
76915 2011-11-14  Andreas Schwab  <schwab@redhat.com>
76916
76917         * malloc/arena.c (arena_get2): Don't call reused_arena when
76918         _int_new_arena failed.
76919
76920 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
76921
76922         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
76923         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
76924         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
76925         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
76926         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
76927         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
76928         to compile strcasecmp and strncasecmp.
76929         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
76930         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
76931
76932         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
76933
76934 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
76935
76936         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
76937         locale-defines.sym to gen-as-const-headers.
76938         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
76939         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
76940         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
76941         to compile strcasecmp and strncasecmp.
76942         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
76943         strcasecmp_l and strncasecmp_l.
76944         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
76945         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
76946         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
76947         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
76948         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
76949         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
76950         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
76951         * sysdeps/i386/i686/multiarch/strncase.S: New file.
76952         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
76953         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
76954         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
76955
76956 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
76957
76958         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
76959         result of SYSDEP_GETTIME_CPU to retval.
76960         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
76961         parameter list to macro.  Remove trailing semicolon.  Adjust users.
76962
76963         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
76964         variable.
76965
76966         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
76967         mantissa words.
76968         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
76969
76970         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
76971         from unused variable.
76972
76973         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
76974         DWARF definitions.
76975         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
76976         for assembling.
76977
76978         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
76979         over namespaces.
76980
76981         * sunrpc/rpc_prot.c (rejected): Fix case value.
76982
76983         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
76984         unsigned long long int to avoid warnings in shift.
76985
76986         * posix/regex_internal.c (re_string_reconstruct): Actually use result
76987         of use of trans.
76988         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
76989         variable tmp.
76990
76991         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
76992         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
76993         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
76994
76995         * nis/nis_table.c (nis_list): Use variable of correct type for
76996         result of __follow_path call.
76997
76998 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76999
77000         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
77001         of math functions ceil, trunc, floor, round, and sqrt, when
77002         avaliable on the platform.
77003         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
77004         name clash.
77005         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
77006         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
77007         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
77008
77009 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
77010
77011         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
77012         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
77013
77014 2011-11-11  Roland McGrath  <roland@hack.frob.com>
77015
77016         * include/unistd.h: Fix __readlink return type.
77017         Reported by Chris Metcalf <cmetcalf@tilera.com>.
77018
77019 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
77020
77021         * stdlib/ucontext.h: Undo last change for makecontext.
77022
77023 2011-11-11  Andreas Schwab  <schwab@redhat.com>
77024
77025         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
77026
77027         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
77028         * setjmp/setjmp.h: Mark functions as non-leaf.
77029         * setjmp/bits/setjmp2.h: Likewise.
77030         * stdlib/ucontext.h: Likewise.
77031
77032 2011-11-10  Andreas Schwab  <schwab@redhat.com>
77033
77034         * malloc/arena.c (_int_new_arena): Don't increment narenas.
77035         (reused_arena): Don't check arena limit.
77036         (arena_get2): Atomically check arena limit.
77037
77038 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
77039
77040         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
77041         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
77042
77043         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
77044         instructions.
77045
77046 2011-11-07  Andreas Schwab  <schwab@redhat.com>
77047
77048         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
77049         handler when locking.
77050
77051         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
77052         Fix size of allocated buffer.
77053
77054 2011-11-04  Andreas Schwab  <schwab@redhat.com>
77055
77056         [BZ #10103]
77057         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
77058         declarations for long double functions.
77059         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
77060
77061         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
77062
77063 2011-11-03  Andreas Schwab  <schwab@redhat.com>
77064
77065         * nscd/nscd.c (main): Don't start AVC thread until credentials are
77066         installed.
77067
77068         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
77069         is disabled.
77070
77071 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77072
77073         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
77074
77075 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
77076
77077         * include/alloca.h (stackinfo_alloca_round): Define.
77078         (extend_alloca): Use it.
77079         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
77080         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
77081         here.
77082
77083         * scripts/check-local-headers.sh: Ignore libaudit.h.
77084
77085         * nscd/Makefile (extra-objs): Make recursively expanded.
77086
77087 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
77088
77089         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
77090         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
77091
77092         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
77093         * posix/tst-rfc3484-2.c: Likewise.
77094         * posix/tst-rfc3484-3.c: Likewise.
77095
77096         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
77097         process_vm_writev.
77098         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
77099         process_vm_writev.
77100         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
77101         process_vm_writev from libc using GLIBC_2.15 version.
77102
77103         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
77104
77105 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
77106
77107         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
77108         stack usage.
77109
77110 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
77111
77112         [BZ #13367]
77113         * nss/getent.c (initgroups_keys): Show error message in case no group
77114         names are given.
77115
77116         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
77117         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
77118         __bump_nl_timestamp.
77119         * nscd/connections (nscd_init): When host database is served open
77120         netlink socket and request notification about configuration changes.
77121         (main_loop_poll): Track netlink file descriptor and bump timestamp
77122         in case data becomes available.
77123         (main_loop_epoll): Likewise.
77124         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
77125         (database_pers_head): Add extra_data fileds.
77126         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
77127         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
77128         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
77129         Adjust caller.
77130         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
77131         in6ai data, call __free_in6ai.
77132         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
77133         Add -DHAVE_NETLINK.
77134         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
77135         interface information.  Reuse previous data if netlink timestamp
77136         is not changed.
77137         (__bump_nl_timestamp): New function.
77138         (__free_in6ai): New function.
77139
77140 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
77141
77142         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
77143         close_not_cancel_no_status here.
77144         (__check_pf): Reorganize code a bit to not call close twice if OOM.
77145
77146 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77147
77148         [BZ #13276]
77149         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
77150         return value.
77151
77152         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
77153         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
77154         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
77155
77156 2011-07-03  Andreas Jaeger  <aj@suse.de>
77157
77158         [BZ #10709]
77159         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
77160         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
77161         * math/libm-test.inc (sin_test): Add test case.
77162
77163 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
77164
77165         [BZ #13337]
77166         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
77167         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77168
77169         * elf/chroot_canon.c (chroot_canon): Cleanups.
77170
77171         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
77172
77173         [BZ #13335]
77174         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
77175         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
77176
77177         * string/test-strchr.c: Make usable for strchrnul testing.
77178         * string/test-strchrnul.c: New file.
77179         * string/Makefile (strop-tests): Add strchrnul.
77180
77181         * po/it.po: Update from translation team.
77182         * po/es.po: Likewise.
77183
77184 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
77185
77186         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
77187         the three constants needed as parameters.  Drop the others.
77188         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
77189         __m128i_strloadu_tolower.
77190         Create and initialize variable zero and use it in all the places
77191         where _mm_setzero_si128 was used.
77192
77193         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
77194         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
77195         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
77196         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
77197         anymore.
77198         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
77199         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
77200         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
77201         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
77202         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
77203         __mpranred, __mptan.
77204         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
77205         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
77206         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
77207         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
77208         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
77209         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
77210         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
77211         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
77212         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
77213
77214 2011-10-28  Andreas Schwab  <schwab@redhat.com>
77215
77216         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
77217         redefine if SHARED.
77218         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
77219
77220         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
77221         wide char related routines to wcsmbs subdir.
77222
77223 2011-10-27  Andreas Schwab  <schwab@redhat.com>
77224
77225         [BZ #13344]
77226         * misc/sys/cdefs.h (__THROWNL): Define.
77227         * posix/unistd.h: Use __THREADNL instead of __THREAD
77228         for memory synchronization functions.
77229
77230 2011-10-26  Roland McGrath  <roland@hack.frob.com>
77231
77232         [BZ #13349]
77233         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
77234         doesn't exist.
77235         * manual/stdio.texi (Obstack Streams): Node removed.
77236
77237 2011-10-26  Andreas Schwab  <schwab@redhat.com>
77238
77239         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
77240         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77241         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77242
77243         * math/math_private.h (math_force_eval): Allow non-addressable
77244         arguments.
77245         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
77246
77247 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77248
77249         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
77250         file is not needed.
77251
77252         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
77253         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
77254         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
77255         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
77256         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
77257         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
77258         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
77259         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
77260         Add AVX variants.
77261         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
77262         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
77263         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
77264         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
77265         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
77266         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
77267         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
77268         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
77269         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
77270         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
77271         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
77272         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
77273         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
77274         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
77275         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
77276         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
77277         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
77278         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
77279         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
77280
77281         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
77282         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
77283
77284         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
77285         place.  Use VEX encoding when compiling for AVX.
77286
77287 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77288
77289         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
77290         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
77291
77292         * string/test-strchr.c (do_test): Don't generate NUL bytes.
77293
77294 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77295
77296         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
77297         useless if() expression.
77298         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
77299         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
77300         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
77301         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77302         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
77303         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
77304         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77305         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77306         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
77307         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
77308         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
77309         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77310         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
77311         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77312         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
77313         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
77314         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
77315         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
77316         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
77317
77318         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
77319
77320 2011-10-25  Andreas Schwab  <schwab@redhat.com>
77321
77322         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
77323         condition.
77324         * elf/dl-fini.c (_dl_sort_fini): Likewise.
77325
77326 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
77327
77328         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
77329         .text section.  Avoid duplicate constants.
77330         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
77331         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77332         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
77333         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77334         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77335         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77336         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77337         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77338         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
77339         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
77340         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
77341         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
77342         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
77343         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
77344         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
77345         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
77346         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
77347         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
77348         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
77349         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77350         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
77351         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
77352         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
77353         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
77354         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
77355         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
77356         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
77357         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
77358         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
77359         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
77360         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
77361         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
77362         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
77363         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
77364         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
77365         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
77366         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
77367         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
77368         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
77369         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
77370         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
77371         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
77372         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
77373         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
77374         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
77375
77376 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
77377
77378         * sysdeps/x86_64/dla.h: Move to ...
77379         * sysdeps/x86_64/fpu/dla.h: ...here.
77380         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
77381         situations.  Use __builtin_fma only for gcc 4.6 and up.
77382
77383         * config.make.in: Add have-mfma4 entry.
77384         * configure.in: Substitute libc_cv_cc_fma4.
77385         * math/Makefile (dbl-only-routines): Add sincostab.
77386         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
77387         Use __sincostab not sincos.
77388         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
77389         name is a macro.
77390         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77391         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77392         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77393         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
77394         using __copysign.
77395         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
77396         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
77397         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
77398         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
77399         and __inv.
77400         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
77401         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
77402         __copysign.
77403         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
77404         define aliases when function name is a macro.
77405         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
77406         sysdeps/ieee754/dbl-64/sincos.tbl.
77407         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
77408         fma4-enabled routines.
77409         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
77410         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
77411         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
77412         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
77413         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
77414         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
77415         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
77416         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
77417         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
77418         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
77419         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
77420         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
77421         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
77422         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
77423         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
77424         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
77425         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
77426         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
77427         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
77428         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
77429         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
77430         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
77431         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
77432         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
77433         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
77434         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
77435         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
77436         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
77437         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
77438         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
77439
77440         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
77441         rename.
77442         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77443         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77444         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77445         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77446         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77447         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77448         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77449         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77450
77451 2011-10-24  Andreas Schwab  <schwab@redhat.com>
77452
77453         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
77454
77455 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77456
77457         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
77458
77459         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
77460         prediction.
77461         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
77462
77463         * string/strnlen.c: Don't define STRNLEN, reverse logic.
77464         Remove unused variable magic_bits.
77465         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
77466
77467         * string/strnlen.c: Define and use STRNLEN macro.
77468         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
77469         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
77470         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
77471         * wcsmbs/wcslen.c: Define and use WCSLEN.
77472         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
77473         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
77474         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
77475         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
77476         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
77477         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
77478         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
77479
77480 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77481
77482         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77483         strnlen-sse2-no-bsf.
77484         Rename strlen-no-bsf to strlen-sse2-no-bsf.
77485         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
77486         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
77487         Add strnlen support.
77488         (USE_AS_STRNLEN): New macro.
77489         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
77490         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
77491         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
77492         * sysdeps/x86_64/wcslen.S: New file.
77493
77494 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
77495
77496         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
77497         XMM-moves are used for copying on small sizes.
77498
77499 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77500
77501         * wcsmbs/Makefile (strop-tests): Add wcschr.
77502         * wcsmbs/test-wcschr.c: New file.
77503         * string/test-strchr.c: Update.
77504         Add wcschr support.
77505         (WIDE): New macro.
77506
77507 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77508
77509         * wcsmbs/Makefile (strop-tests): Add wcslen.
77510         * wcsmbs/test-wcslen.c: New file.
77511         * string/test-strlen.c: Update.
77512         Add wcslen support.
77513         (WIDE): New macro.
77514
77515 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77516
77517         * po/it.po: Update from translation team.
77518
77519 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77520
77521         * sysdeps/x86_64/wcscmp.S: Update.
77522         Fix wrong comparison semantics.
77523         wcscmp shall use signed comparison not unsigned.
77524         Don't use substraction to avoid overflow bug.
77525         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
77526         * wcsmbc/wcscmp.c: Likewise.
77527         * string/test-strcmp.c: Likewise.
77528         Add new tests to check cases with negative values.
77529
77530 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
77531
77532         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
77533         * sysdeps/x86_64/dla.h: ...here.  New file.
77534         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
77535         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77536         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77537         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77538         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77539         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
77540         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77541         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77542         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77543
77544 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
77545
77546         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
77547         __ynl_finite aliases.
77548
77549 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77550
77551         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77552
77553         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
77554         define DLA_FMA.
77555         [DLA_FMA] (EMULV): Use DLA_FMA.
77556         [DLA_FMA] (MUL12): Use EMULV.
77557         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
77558         that are not needed.
77559         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
77560         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
77561         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
77562         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
77563         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
77564         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
77565         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
77566
77567 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
77568
77569         * math/s_nan.c: Undef __nan.
77570         * math/s_nanf.c: Undef __nanf.
77571         * math/s_nanl.c: Undef __nanl.
77572         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
77573         "math_private.h".
77574
77575 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
77576
77577         * math/s_catan.c: Add branch predictions.
77578         * math/s_catanf.c: Likewise.
77579         * math/s_catanh.c: Likewise.
77580         * math/s_catanhf.c: Likewise.
77581         * math/s_catanhl.c: Likewise.
77582         * math/s_catanl.c: Likewise.
77583         * math/s_cexp.c: Likewise.
77584         * math/s_cexpf.c: Likewise.
77585         * math/s_cexpl.c: Likewise.
77586         * math/s_clog.c: Likewise.
77587         * math/s_clog10.c: Likewise.
77588         * math/s_clog10f.c: Likewise.
77589         * math/s_clog10l.c: Likewise.
77590         * math/s_clogf.c: Likewise.
77591         * math/s_clogl.c: Likewise.
77592         * math/s_csqrt.c: Likewise.
77593         * math/s_csqrtf.c: Likewise.
77594         * math/s_csqrtl.c: Likewise.
77595         * math/s_ctanf.c: Likewise.
77596         * math/s_ctanh.c: Likewise.
77597         * math/s_ctanhf.c: Likewise.
77598         * math/s_ctanhl.c: Likewise.
77599         * math/s_ctanl.c: Likewise.
77600
77601         * math/math_private.h: Define __nan, __nanf, __nanl.
77602         * math/s_cacosh.c: Include <math_private.h>.
77603         * math/s_cacoshl.c: Likewise.
77604         * math/s_casinh.c: Likewise.
77605         * math/s_casinhf.c: Likewise.
77606         * math/s_casinhl.c: Likewise.
77607         * math/s_ccos.c: Rely entire on ccosh.
77608         * math/s_ccosf.c: Rely entire on ccoshf.
77609         * math/s_ccosl.c: Rely entirely on ccoshl.
77610         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
77611         Remove tests for FE_INVALID.
77612         * math/s_ccoshf.c: Likewise.
77613         * math/s_ccoshl.c: Likewise.
77614         * math/s_csin.c: Likewise.
77615         * math/s_csinf.c: Likewise.
77616         * math/s_csinh.c Likewise.
77617         * math/s_csinhf.c: Likewise.
77618         * math/s_csinhl.c: Likewise.
77619         * math/s_csinl.c: Likewise.
77620         * math/s_ctan.c: Likewise.
77621         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
77622         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
77623         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
77624
77625 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
77626
77627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
77628         compilation problems.
77629
77630         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
77631         __builtin_expect.
77632
77633 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
77634
77635         * sysdeps/i386/configure.in: Test for -mfma4 option.
77636         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
77637         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
77638         COMMON_CPUID_INDEX_80000001.
77639         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
77640         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
77641         use it if FMA3 is not supported.
77642         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
77643
77644         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
77645         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
77646
77647 2011-10-20  Andreas Schwab  <schwab@redhat.com>
77648
77649         [BZ #12892]
77650         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
77651         it would create a cycle with a link time dependency.
77652
77653 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
77654
77655         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
77656         instruction.
77657         * string/Makefile (strop-tests): Add rawmemchr.
77658         * string/test-rawmemchr.c: New file.
77659
77660         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
77661         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
77662         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
77663         when compiling str{,n}casecmp and when AVX is available.  Hook up
77664         new optimized code in initializers.
77665
77666 2011-10-19  Andreas Schwab  <schwab@redhat.com>
77667
77668         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
77669         __feraiseexcept instead of feraiseexcept.
77670
77671 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
77672
77673         * math/math_private.h: Define defaults for libc_fetestexcept and
77674         libc_feupdateenv.
77675         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
77676         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
77677         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
77678         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77679         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
77680         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77681         libc_fetestexcept and libc_feupdateenv.
77682
77683         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
77684         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
77685         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
77686         * sysdeps/x86_64/fpu/math_private.h: Define special version of
77687         libc_feholdexcept_setround.
77688
77689         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
77690         Add s_nearbyint-c and s_nearbyintf-c.
77691         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
77692         nearbyintf inlines.
77693         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
77694         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
77695         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
77696         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
77697
77698         * math/math_private.h: Define defaults for libc_fegetround,
77699         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
77700         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
77701         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
77702         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
77703         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
77704         standard functions.
77705         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
77706         Remove comments and hacks for old compiler versions.
77707         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
77708         libc_fegetround, libc_fesetround, libc_feholdexcept, and
77709         libc_feholdexceptl.
77710
77711 2011-10-18  Andreas Schwab  <schwab@redhat.com>
77712
77713         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
77714         (__feraiseexcept_renamed): Add __NTH.
77715         (feraiseexcept): Add __NTH.  Rename local variables to fix
77716         namespace violations.
77717
77718 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
77719
77720         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
77721
77722         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
77723
77724         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
77725         recently added interfaces.
77726         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
77727
77728         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
77729         about macro parameter expansion.
77730
77731         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
77732         __NO_MATH_INLINES is defined.  Cleanups.
77733
77734         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
77735         and __floorf is target has SSE4.1.
77736         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
77737         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
77738         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
77739         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
77740
77741         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
77742         name.
77743         (floorf): Likewise.
77744
77745         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
77746
77747 2011-10-17  Andreas Schwab  <schwab@redhat.com>
77748
77749         * misc/sys/cdefs.h: Fix last change.
77750
77751         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
77752         database lookup.
77753
77754 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
77755
77756         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
77757
77758         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
77759         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
77760         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
77761         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
77762         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
77763         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
77764         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
77765         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
77766         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
77767         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
77768         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
77769         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
77770         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
77771         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
77772         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
77773         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
77774         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
77775         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
77776         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
77777         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
77778         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
77779         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
77780
77781         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
77782         ceil, ceilf, floor, floorf.
77783
77784         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
77785         Perform IRELATIVE relocations last.
77786
77787         * elf/do-rel.h: Add another parameter nrelative, replacing the
77788         local variable with the same name.  Change name of the function
77789         to end in Rel or Rela (uppercase).
77790         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
77791         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
77792         elf_dynamic_do_##reloc function.
77793
77794 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
77795
77796         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
77797         is sufficient, at least on modern CPUs.
77798
77799         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
77800
77801         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
77802         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
77803
77804         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
77805         __expl_finite.
77806         * math/bits/math-finite.h: Add entries for exp.
77807         * math/e_expl.c: Add __*_finite alias.
77808         * sysdeps/i386/fpu/e_exp.S: Likewise.
77809         * sysdeps/i386/fpu/e_expf.S: Likewise.
77810         * sysdeps/i386/fpu/e_expl.c: Likewise.
77811         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
77812         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
77813         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
77814         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
77815         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
77816         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
77817         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
77818
77819         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
77820         is sufficient, at least on modern CPUs.
77821
77822         * ctype/ctype-info.c (__ctype_init): Define.
77823         * include/ctype.h (__ctype_init): Declare.
77824         (__ctype_b_loc): The variable is always initialized.
77825         (__ctype_toupper_loc): Likewise.
77826         (__ctype_tolower_loc): Likewise.
77827         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
77828         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
77829
77830 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
77831
77832         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
77833
77834         * configure.in: Also look in $cxxmachine/include for C++ system
77835         headers.
77836
77837 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77838
77839         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
77840         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
77841         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
77842         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
77843         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
77844         (USE_AS_WMEMCMP): New macro.
77845         Fixing indents.
77846         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
77847         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
77848         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
77849         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
77850         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77851         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
77852         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
77853         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
77854         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
77855         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
77856         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
77857         (USE_AS_WMEMCMP): New macro.
77858         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
77859         * sysdeps/string/test-memcmp.c: Update.
77860         Fix simple_wmemcmp.
77861         Add new tests.
77862         * wcsmbs/wmemcmp.c: Update.
77863         (WMEMCMP): New macro.
77864         Fix overflow bug.
77865
77866 2011-10-12  Andreas Jaeger  <aj@suse.de>
77867
77868         [BZ #13268]
77869         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
77870
77871 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
77872
77873         * libio/iofwide.c (do_length): Avoid warning.
77874
77875         * ctype/ctype.h (__isctype_f): Add missing __THROW.
77876
77877 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
77878
77879         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
77880
77881         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
77882         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
77883         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
77884         * sysdeps/i386/i686/fpu/e_log.S: New file.
77885         * sysdeps/i386/i686/fpu/e_logf.S: New file.
77886         * sysdeps/i386/i686/fpu/e_logl.S: New file.
77887
77888         * ctype/ctype.h: Add support for inlined isXXX functions when
77889         compiling C++ code.
77890
77891 2011-10-14  Andreas Schwab  <schwab@redhat.com>
77892
77893         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
77894
77895         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
77896
77897 2011-10-13  Roland McGrath  <roland@hack.frob.com>
77898
77899         [BZ #13291]
77900         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
77901
77902 2011-10-13  Andreas Schwab  <schwab@redhat.com>
77903
77904         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
77905         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
77906         feraiseexcept.
77907
77908         * sysdeps/x86_64/memrchr.S: Check for zero size.
77909
77910         * string/stratcliff.c: Add memrchr tests.
77911
77912 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77913
77914         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
77915         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
77916         rawmemchr-sse2 rawmemchr-sse2-bsf.
77917         * sysdeps/i386/i686/multiarch/memchr.S: New file.
77918         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
77919         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
77920         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
77921         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
77922         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
77923         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
77924         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
77925         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
77926         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
77927         * string/memrchr.c (MEMRCHR): New macro.
77928
77929 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
77930
77931         Add integration with gcc's -ffinite-math-only and optimize wrapper
77932         functions in libm.
77933         * Versions.def: Define GLIBC_2.15 version for libm.
77934         * math/Makefile (headers): Add bits/math-finite.h.
77935         * math/bits/math-finite.h: New file.
77936         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
77937         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
77938         * math/e_acoshl.c: Add __*_finite alias.
77939         * math/e_acosl.c: Likewise.
77940         * math/e_asinl.c: Likewise.
77941         * math/e_atan2l.c: Likewise.
77942         * math/e_atanhl.c: Likewise.
77943         * math/e_coshl.c: Likewise.
77944         * math/e_exp10.c: Likewise.
77945         * math/e_exp10f.c: Likewise.
77946         * math/e_exp10l.c: Likewise.
77947         * math/e_exp2l.c: Likewise.
77948         * math/e_fmodl.c: Likewise.
77949         * math/e_gammal_r.c: Likewise.
77950         * math/e_hypotl.c: Likewise.
77951         * math/e_j0l.c: Likewise.
77952         * math/e_j1l.c: Likewise.
77953         * math/e_jnl.c: Likewise.
77954         * math/e_lgammal_r.c: Likewise.
77955         * math/e_log10l.c: Likewise.
77956         * math/e_log2l.c: Likewise.
77957         * math/e_logl.c: Likewise.
77958         * math/e_powl.c: Likewise.
77959         * math/e_sinhl.c: Likewise.
77960         * math/e_sqrtl.c: Likewise.
77961         * math/e_scalb.c: Completely rewritten and optimized.
77962         * math/e_scalbf.c: Likewise.
77963         * math/e_scalbl.c: Likewise.
77964         * math/w_acos.c: Likewise.
77965         * math/w_acosf.c: Likewise.
77966         * math/w_acosl.c: Likewise.
77967         * math/w_acosh.c: Likewise.
77968         * math/w_acoshf.c: Likewise.
77969         * math/w_acoshl.c: Likewise.
77970         * math/w_asin.c: Likewise.
77971         * math/w_asinf.c: Likewise.
77972         * math/w_asinl.c: Likewise.
77973         * math/w_atan2.c: Likewise.
77974         * math/w_atan2f.c: Likewise.
77975         * math/w_atan2l.c: Likewise.
77976         * math/w_atanh.c: Likewise.
77977         * math/w_atanhf.c: Likewise.
77978         * math/w_atanhl.c: Likewise.
77979         * math/w_exp10.c: Likewise.
77980         * math/w_exp10f.c: Likewise.
77981         * math/w_exp10l.c: Likewise.
77982         * math/w_fmod.c: Likewise.
77983         * math/w_fmodf.c: Likewise.
77984         * math/w_fmodl.c: Likewise.
77985         * math/w_j0.c: Likewise.
77986         * math/w_j0f.c: Likewise.
77987         * math/w_j0l.c: Likewise.
77988         * math/w_j1.c: Likewise.
77989         * math/w_j1f.c: Likewise.
77990         * math/w_j1l.c: Likewise.
77991         * math/w_jn.c: Likewise.
77992         * math/w_jnf.c: Likewise.
77993         * math/w_log.c: Likewise.
77994         * math/w_logf.c: Likewise.
77995         * math/w_logl.c: Likewise.
77996         * math/w_log10.c: Likewise.
77997         * math/w_log10f.c: Likewise.
77998         * math/w_log10l.c: Likewise.
77999         * math/w_log2.c: Likewise.
78000         * math/w_log2f.c: Likewise.
78001         * math/w_log2l.c: Likewise.
78002         * math/w_pow.c: Likewise.
78003         * math/w_powf.c: Likewise.
78004         * math/w_powl.c: Likewise.
78005         * math/w_remainder.c: Likewise.
78006         * math/w_remainderf.c: Likewise.
78007         * math/w_remainderl.c: Likewise.
78008         * math/w_scalb.c: Likewise.
78009         * math/w_scalbf.c: Likewise.
78010         * math/w_scalbl.c: Likewise.
78011         * math/w_sqrt.c: Likewise.
78012         * math/w_sqrtf.c: Likewise.
78013         * math/w_sqrtl.c: Likewise.
78014         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
78015         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
78016         used.
78017         * math/math_private.h: Declare __kernel_standard_f.
78018         * math/w_cosh.c: Remove cruft and optimize a bit.
78019         * math/w_coshf.c: Likewise.
78020         * math/w_coshl.c: Likewise.
78021         * math/w_exp2.c: Likewise.
78022         * math/w_exp2f.c: Likewise.
78023         * math/w_exp2l.c: Likewise.
78024         * math/w_hypot.c: Likewise.
78025         * math/w_hypotf.c: Likewise.
78026         * math/w_hypotl.c: Likewise.
78027         * math/w_lgamma.c: Likewise.
78028         * math/w_lgamma_r.c: Likewise.
78029         * math/w_lgammaf.c: Likewise.
78030         * math/w_lgammaf_r.c: Likewise.
78031         * math/w_lgammal.c: Likewise.
78032         * math/w_lgammal_r.c: Likewise.
78033         * math/w_sinh.c: Likewise.
78034         * math/w_sinhf.c: Likewise.
78035         * math/w_sinhl.c: Likewise.
78036         * math/w_tgamma.c: Likewise.
78037         * math/w_tgammaf.c: Likewise.
78038         * math/w_tgammal.c: Likewise.
78039         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
78040         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
78041         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
78042         Minor optimizations.  Pretty printing.  Remove cruft.
78043         * sysdeps/i386/fpu/e_acosf.S: Likewise.
78044         * sysdeps/i386/fpu/e_acosh.S: Likewise.
78045         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
78046         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
78047         * sysdeps/i386/fpu/e_acosl.c: Likewise.
78048         * sysdeps/i386/fpu/e_asin.S: Likewise.
78049         * sysdeps/i386/fpu/e_asinf.S: Likewise.
78050         * sysdeps/i386/fpu/e_atan2.S: Likewise.
78051         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
78052         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
78053         * sysdeps/i386/fpu/e_atanh.S: Likewise.
78054         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
78055         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
78056         * sysdeps/i386/fpu/e_exp10.S: Likewise.
78057         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
78058         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
78059         * sysdeps/i386/fpu/e_exp2.S: Likewise.
78060         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
78061         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
78062         * sysdeps/i386/fpu/e_fmod.S: Likewise.
78063         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
78064         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
78065         * sysdeps/i386/fpu/e_hypot.S: Likewise.
78066         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
78067         * sysdeps/i386/fpu/e_log.S: Likewise.
78068         * sysdeps/i386/fpu/e_log10.S: Likewise.
78069         * sysdeps/i386/fpu/e_log10f.S: Likewise.
78070         * sysdeps/i386/fpu/e_log10l.S: Likewise.
78071         * sysdeps/i386/fpu/e_log2.S: Likewise.
78072         * sysdeps/i386/fpu/e_log2f.S: Likewise.
78073         * sysdeps/i386/fpu/e_log2l.S: Likewise.
78074         * sysdeps/i386/fpu/e_logf.S: Likewise.
78075         * sysdeps/i386/fpu/e_logl.S: Likewise.
78076         * sysdeps/i386/fpu/e_pow.S: Likewise.
78077         * sysdeps/i386/fpu/e_powf.S: Likewise.
78078         * sysdeps/i386/fpu/e_powl.S: Likewise.
78079         * sysdeps/i386/fpu/e_remainder.S: Likewise.
78080         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
78081         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
78082         * sysdeps/i386/fpu/e_scalb.S: Likewise.
78083         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
78084         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
78085         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
78086         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
78087         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
78088         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
78089         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
78090         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
78091         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
78092         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
78093         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
78094         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
78095         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
78096         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
78097         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
78098         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
78099         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
78100         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
78101         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
78102         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
78103         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
78104         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
78105         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
78106         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
78107         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
78108         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
78109         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
78110         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
78111         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
78112         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
78113         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
78114         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
78115         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
78116         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
78117         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
78118         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
78119         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
78120         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78121         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
78122         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
78123         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
78124         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
78125         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
78126         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
78127         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
78128         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
78129         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
78130         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
78131         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
78132         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
78133         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
78134         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
78135         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
78136         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
78137         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
78138         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
78139         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
78140         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
78141         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78142         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
78143         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
78144         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
78145         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
78146         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
78147         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
78148         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
78149         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
78150         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
78151         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
78152         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
78153         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
78154         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
78155         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
78156         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
78157         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
78158         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
78159         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
78160         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
78161         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
78162         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
78163         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
78164         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
78165         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
78166         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
78167         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
78168         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
78169         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
78170         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
78171         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
78172         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
78173         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
78174         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78175         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
78176         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
78177         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
78178         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
78179         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
78180         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
78181         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
78182         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
78183         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
78184         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
78185         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
78186         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
78187         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
78188         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
78189         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
78190         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
78191         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
78192         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
78193         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
78194         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
78195         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
78196         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
78197         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
78198         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
78199         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
78200         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
78201         (__isnanf): Likewise.
78202         (__isinf_ns): Likewise.
78203         (__isinf_nsf): Likewise.
78204         (__finite): Likewise.
78205         (__finitef): Likewise.
78206         (__ieee754_sqrt): Define as macro.
78207         (__ieee754_sqrtf): Define as macro.
78208         (__ieee754_sqrtl): Define as macro.
78209         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
78210         inlined copy.
78211         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
78212         __FINITE_MATH_ONLY__ consistent.
78213         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
78214
78215 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
78216
78217         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
78218         of rawmemchr.
78219
78220         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
78221
78222 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
78223
78224         * po/ja.po: Update from translation team.
78225
78226 2011-10-08  Roland McGrath  <roland@hack.frob.com>
78227
78228         * locale/programs/locarchive.c (prepare_address_space): New function.
78229         (create_archive, enlarge_archive, open_archive): Use it.
78230
78231         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
78232         inside [SHARED], where it is used.
78233
78234         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
78235
78236         * nss/getent.c (netgroup_keys): Remove unused variable.
78237         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
78238
78239 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
78240
78241         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
78242         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
78243         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
78244         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
78245         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
78246         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
78247         * math/Makefile (libm-calls): Add s_isinf_ns.
78248         * math/divtc3.c: Use __isinf_nsl instead of isinf.
78249         * math/multc3.c: Likewise.
78250         * math/s_casin.c: Likewise.
78251         * math/s_casinf.c: Likewise.
78252         * math/s_casinl.c: Likewise.
78253         * math/s_ccos.c: Likewise.
78254         * math/s_ccosf.c: Likewise.
78255         * math/s_ccosl.c: Likewise.
78256         * math/s_ctan.c: Likewise.
78257         * math/s_ctanf.c: Likewise.
78258         * math/s_ctanh.c: Likewise.
78259         * math/s_ctanhf.c: Likewise.
78260         * math/s_ctanhl.c: Likewise.
78261         * math/s_ctanl.c: Likewise.
78262         * math/w_fmod.c: Likewise.
78263         * math/w_fmodf.c: Likewise.
78264         * math/w_fmodl.c: Likewise.
78265         * math/w_remainder.c: Likewise.
78266         * math/w_remainderf.c: Likewise.
78267         * math/w_remainderl.c: Likewise.
78268         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
78269         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
78270         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
78271         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
78272         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
78273         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
78274         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
78275         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
78276
78277         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
78278         of the number.
78279         * stdio-common/printf_fphex.c: Likewise.
78280         * stdio-common/printf_size.c: Likewise.
78281
78282         * math/e_exp10.c: Include math_private.h using <...> not "...".
78283         * math/e_exp10f.c: Likewise.
78284         * math/e_exp10l.c: Likewise.
78285         * math/e_exp2l.c: Likewise.
78286         * math/e_j0l.c: Likewise.
78287         * math/e_j1l.c: Likewise.
78288         * math/e_jnl.c: Likewise.
78289         * math/e_lgammal_r.c: Likewise.
78290         * math/e_rem_pio2l.c: Likewise.
78291         * math/e_scalb.c: Likewise.
78292         * math/e_scalbf.c: Likewise.
78293         * math/e_scalbl.c: Likewise.
78294         * math/k_cosl.c: Likewise.
78295         * math/k_sinl.c: Likewise.
78296         * math/k_tanl.c: Likewise.
78297         * math/s_cacoshf.c: Likewise.
78298         * math/s_catan.c: Likewise.
78299         * math/s_catanf.c: Likewise.
78300         * math/s_catanh.c: Likewise.
78301         * math/s_catanhf.c: Likewise.
78302         * math/s_catanhl.c: Likewise.
78303         * math/s_catanl.c: Likewise.
78304         * math/s_ccosh.c: Likewise.
78305         * math/s_ccoshf.c: Likewise.
78306         * math/s_ccoshl.c: Likewise.
78307         * math/s_cexp.c: Likewise.
78308         * math/s_cexpf.c: Likewise.
78309         * math/s_cexpl.c: Likewise.
78310         * math/s_clog.c: Likewise.
78311         * math/s_clog10.c: Likewise.
78312         * math/s_clog10f.c: Likewise.
78313         * math/s_clog10l.c: Likewise.
78314         * math/s_clogf.c: Likewise.
78315         * math/s_clogl.c: Likewise.
78316         * math/s_csin.c: Likewise.
78317         * math/s_csinf.c: Likewise.
78318         * math/s_csinh.c: Likewise.
78319         * math/s_csinhf.c: Likewise.
78320         * math/s_csinhl.c: Likewise.
78321         * math/s_csinl.c: Likewise.
78322         * math/s_csqrt.c: Likewise.
78323         * math/s_csqrtf.c: Likewise.
78324         * math/s_csqrtl.c: Likewise.
78325         * math/s_ctan.c: Likewise.
78326         * math/s_ctanf.c: Likewise.
78327         * math/s_ctanh.c: Likewise.
78328         * math/s_ctanhf.c: Likewise.
78329         * math/s_ctanhl.c: Likewise.
78330         * math/s_ctanl.c: Likewise.
78331         * math/s_ldexp.c: Likewise.
78332         * math/s_ldexpf.c: Likewise.
78333         * math/s_ldexpl.c: Likewise.
78334         * math/s_significand.c: Likewise.
78335         * math/s_significandf.c: Likewise.
78336         * math/s_significandl.c: Likewise.
78337         * math/w_acos.c: Likewise.
78338         * math/w_acosf.c: Likewise.
78339         * math/w_acosh.c: Likewise.
78340         * math/w_acoshf.c: Likewise.
78341         * math/w_acoshl.c: Likewise.
78342         * math/w_acosl.c: Likewise.
78343         * math/w_asin.c: Likewise.
78344         * math/w_asinf.c: Likewise.
78345         * math/w_asinl.c: Likewise.
78346         * math/w_atan2.c: Likewise.
78347         * math/w_atan2f.c: Likewise.
78348         * math/w_atan2l.c: Likewise.
78349         * math/w_atanh.c: Likewise.
78350         * math/w_atanhf.c: Likewise.
78351         * math/w_atanhl.c: Likewise.
78352         * math/w_cosh.c: Likewise.
78353         * math/w_coshf.c: Likewise.
78354         * math/w_coshl.c: Likewise.
78355         * math/w_dremf.c: Likewise.
78356         * math/w_exp10.c: Likewise.
78357         * math/w_exp10f.c: Likewise.
78358         * math/w_exp10l.c: Likewise.
78359         * math/w_exp2.c: Likewise.
78360         * math/w_exp2f.c: Likewise.
78361         * math/w_fmod.c: Likewise.
78362         * math/w_fmodf.c: Likewise.
78363         * math/w_fmodl.c: Likewise.
78364         * math/w_hypot.c: Likewise.
78365         * math/w_hypotf.c: Likewise.
78366         * math/w_hypotl.c: Likewise.
78367         * math/w_j0.c: Likewise.
78368         * math/w_j0f.c: Likewise.
78369         * math/w_j0l.c: Likewise.
78370         * math/w_j1.c: Likewise.
78371         * math/w_j1f.c: Likewise.
78372         * math/w_j1l.c: Likewise.
78373         * math/w_jn.c: Likewise.
78374         * math/w_jnf.c: Likewise.
78375         * math/w_jnl.c: Likewise.
78376         * math/w_lgamma.c: Likewise.
78377         * math/w_lgamma_r.c: Likewise.
78378         * math/w_lgammaf.c: Likewise.
78379         * math/w_lgammaf_r.c: Likewise.
78380         * math/w_lgammal.c: Likewise.
78381         * math/w_lgammal_r.c: Likewise.
78382         * math/w_log.c: Likewise.
78383         * math/w_log10.c: Likewise.
78384         * math/w_log10f.c: Likewise.
78385         * math/w_log10l.c: Likewise.
78386         * math/w_log2.c: Likewise.
78387         * math/w_log2f.c: Likewise.
78388         * math/w_log2l.c: Likewise.
78389         * math/w_logf.c: Likewise.
78390         * math/w_logl.c: Likewise.
78391         * math/w_pow.c: Likewise.
78392         * math/w_powf.c: Likewise.
78393         * math/w_powl.c: Likewise.
78394         * math/w_remainder.c: Likewise.
78395         * math/w_remainderf.c: Likewise.
78396         * math/w_remainderl.c: Likewise.
78397         * math/w_scalb.c: Likewise.
78398         * math/w_scalbf.c: Likewise.
78399         * math/w_scalbl.c: Likewise.
78400         * math/w_sinh.c: Likewise.
78401         * math/w_sinhf.c: Likewise.
78402         * math/w_sinhl.c: Likewise.
78403         * math/w_sqrt.c: Likewise.
78404         * math/w_sqrtf.c: Likewise.
78405         * math/w_sqrtl.c: Likewise.
78406         * math/w_tgamma.c: Likewise.
78407         * math/w_tgammaf.c: Likewise.
78408         * math/w_tgammal.c: Likewise.
78409
78410         * po/ja.po: Update from translation team.
78411
78412 2011-09-29  Andreas Jaeger  <aj@suse.de>
78413
78414         [BZ #13179]
78415         * sunrpc/netname.c (netname2host): Fix logic.
78416
78417         [BZ #6779]
78418         [BZ #6783]
78419         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
78420         correctly.
78421         * math/w_remainder.c (__remainder): Likewise.
78422         * math/w_remainderf.c (__remainderf): Likewise.
78423         * math/libm-test.inc (remainder_test): Add test cases.
78424
78425 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78426
78427         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
78428         sdiv_qrnnd.
78429
78430 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78431
78432         * string/test-memcmp.c: Avoid unncessary #defines.
78433         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
78434
78435 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78436
78437         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
78438         Use new sse2 version for core i3 - i7 as it's faster
78439         than sse42 version.
78440         (bit_Prefer_PMINUB_for_stringop): New.
78441         * sysdeps/x86_64/rawmemchr.S: Update.
78442         Replace with faster SSE2 version.
78443         * sysdeps/x86_64/memrchr.S: New file.
78444         * sysdeps/x86_64/memchr.S: Update.
78445         Replace with faster SSE2 version.
78446
78447 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
78448
78449         * elf/dl-load.c (lose): Add cast to avoid warning.
78450
78451 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
78452
78453         * po/ca.po: Update from translation team.
78454
78455         * inet/getnetgrent_r.c: Hook up nscd.
78456         * nscd/Makefile (routines): Add nscd_netgroup.
78457         (nscd-modules): Add netgroupcache.
78458         (CFLAGS-netgroupcache.c): Define.
78459         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
78460         (cache_search): Add const to second parameter.
78461         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
78462         INNETGR.
78463         (dbs): Add netgrdb entry.
78464         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
78465         (verify_persistent_db): Handle netgrdb.
78466         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
78467         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
78468         GETFDNETGR.
78469         (netgroup_response_header): Define.
78470         (innetgroup_response_header): Define.
78471         (datahead): Add netgroup_response_header and innetgroup_response_header
78472         elements.
78473         * nscd/nscd.conf: Add entries for netgroup cache.
78474         * nscd/nscd.h (dbtype): Add netgrdb.
78475         (_PATH_NSCD_NETGROUP_DB): Define.
78476         (netgroup_iov_disabled): Declare.
78477         (xmalloc, xcalloc, xrealloc): Move declarations here.
78478         (cache_search): Adjust prototype.
78479         Add netgroup-related prototypes.
78480         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
78481         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
78482         (__nscd_innetgr): Declare.
78483         * nscd/selinux.c (perms): Use access_vector_t as element type and
78484         add netgroup-related initializers.
78485         * nscd/netgroupcache.c: New file.
78486         * nscd/nscd_netgroup.c: New file.
78487         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
78488         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
78489         For four parameters use innetgr.
78490         * nss/nss_files/files-init.c: Add definition and callback for netgr.
78491         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
78492         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
78493         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
78494
78495         * nscd/connections.c (register_traced_file): Don't register file
78496         for disabled databases.
78497
78498 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
78499
78500         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
78501
78502         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
78503         from tree and freeing node.
78504
78505 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
78506
78507         * nss/nsswitch.c (__nss_database_lookup): Handle
78508         nss_parse_service_list out of memory case.
78509
78510 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
78511
78512         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
78513         out of memory case.
78514
78515 2011-10-04  Andreas Schwab  <schwab@redhat.com>
78516
78517         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
78518         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
78519         pass it down.
78520         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
78521         elf_machine_rela, elf_machine_lazy_rel.
78522         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
78523         (ELF_DYNAMIC_DO_REL): Likewise.
78524         (ELF_DYNAMIC_DO_RELA): Likewise.
78525         (ELF_DYNAMIC_RELOCATE): Likewise.
78526         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
78527         to ELF_DYNAMIC_DO_REL.
78528         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
78529         (dl_main): In trace mode always set __RTLD_NOIFUNC.
78530         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
78531         elf_machine_rela.
78532         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
78533         skip_ifunc, don't call ifunc function if non-zero.
78534         (elf_machine_rela): Likewise.
78535         (elf_machine_lazy_rel): Likewise.
78536         (elf_machine_lazy_rela): Likewise.
78537         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
78538         (elf_machine_lazy_rel): Likewise.
78539         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
78540         Likewise.
78541         (elf_machine_lazy_rel): Likewise.
78542         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78543         Likewise.
78544         (elf_machine_lazy_rel): Likewise.
78545         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
78546         (elf_machine_lazy_rel): Likewise.
78547         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
78548         (elf_machine_lazy_rel): Likewise.
78549         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
78550         (elf_machine_lazy_rel): Likewise.
78551         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
78552         (elf_machine_lazy_rel): Likewise.
78553         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
78554         (elf_machine_lazy_rel): Likewise.
78555         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
78556         (elf_machine_lazy_rel): Likewise.
78557
78558 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
78559
78560         * nss/nss_files/files-init.c (_nss_files_init): Use static
78561         initialization for all the *_traced_file variables.
78562
78563 2011-09-28  Andreas Schwab  <schwab@redhat.com>
78564
78565         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78566
78567 2011-09-27  Roland McGrath  <roland@hack.frob.com>
78568
78569         [BZ #13226]
78570         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
78571
78572 2011-09-27  Andreas Schwab  <schwab@redhat.com>
78573
78574         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
78575         Reread the line before reparsing it.
78576
78577 2011-09-26  Andreas Schwab  <schwab@redhat.com>
78578
78579         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
78580
78581 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
78582             Maxim Kuvyrkov  <maxim@codesourcery.com>
78583             Joseph Myers  <joseph@codesourcery.com>
78584
78585         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
78586         if needed for __stack_chk_guard.
78587
78588 2011-09-19  Roland McGrath  <roland@hack.frob.com>
78589
78590         * sysdeps/posix/spawni.c (script_execute): Always define it.
78591         It will be optimized away if unused.
78592         (maybe_script_execute): New function.
78593         (__spawni): Call it.
78594
78595         * Makerules: Don't include tls.make.
78596         (config-tls): Always set to thread.
78597         * tls.make.c: File removed.
78598
78599 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
78600
78601         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
78602         * config.make.in (CPPFLAGS-config): New substituted variable.
78603
78604 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78605
78606         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
78607
78608         [BZ #13192]
78609         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
78610         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
78611
78612 2011-09-15  Roland McGrath  <roland@hack.frob.com>
78613
78614         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
78615         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
78616         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
78617         (CALL_FAIL): Likewise.
78618         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
78619         (CALL_FAIL): Macro removed.
78620         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
78621
78622 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
78623
78624         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
78625         for __FINITE_MATH_ONLY__ == 1.
78626
78627 2011-09-15  Andreas Schwab  <schwab@redhat.com>
78628
78629         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
78630         __ieee754_sqrt instead of sqrt.
78631         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
78632         __ieee754_sqrtf instead of sqrtf.
78633         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
78634         __floorf instead of floorf.
78635         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
78636         __floorf, __truncf instead of floorf, truncf.
78637
78638 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
78639
78640         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
78641
78642         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
78643         __extern_always_inline.
78644         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
78645         32-bit.
78646
78647 2011-09-14  Andreas Schwab  <schwab@redhat.com>
78648
78649         * elf/rtld.c (dl_main): Also relocate in dependency order when
78650         doing symbol dependency testing.
78651
78652 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
78653
78654         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
78655         Always define `refsym'.
78656
78657 2011-09-13  Andreas Schwab  <schwab@redhat.com>
78658
78659         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
78660         (__FD_ELT): Renamed from __FDELT.
78661         * misc/bits/select2.h (__FD_ELT): Likewise.
78662         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
78663         __FD_MASK instead of __FDELT, __FDMASK.
78664         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78665         Likewise.
78666         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
78667         Likewise.
78668
78669         * elf/Makefile (gen-ldd): Fix pattern.
78670
78671         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
78672         (init_tls): Likewise.
78673
78674 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
78675
78676         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
78677
78678 2011-09-12  Andreas Schwab  <schwab@redhat.com>
78679
78680         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
78681         `struct cmsghdr *' instead of `void *'.
78682         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
78683         Likewise.
78684
78685 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
78686
78687         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
78688         if non-absolute.
78689         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
78690         ldd_rewrite_script.
78691
78692 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
78693
78694         * configure.in: Remove --with-tls option.
78695         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
78696         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
78697         out in case it is missing.
78698         * sysdeps/ia64/elf/configure.in: Likewise.
78699         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
78700         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
78701         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
78702         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
78703         * sysdeps/sh/elf/configure.in: Likewise.
78704         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
78705         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
78706         * sysdeps/x86_64/elf/configure.in: Likewise.
78707         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
78708         * sysdeps/mach/hurd/tls.h: Likewise.
78709
78710         [BZ #13067]
78711         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
78712
78713         [BZ #13090]
78714         * configure.in: Fix use of AC_INIT.
78715
78716         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
78717
78718 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
78719
78720         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
78721         __set_errno.
78722         * malloc/hooks.c: Likewise.
78723
78724         [BZ #11929]
78725         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
78726         variables statically.
78727         (narenas): Initialize.
78728         (list_lock): Initialize.
78729         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
78730         initializtion of main_arena and list_lock.  Small cleanups.
78731         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
78732         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
78733         Add initializers to main_arena and mp_.
78734         (malloc_state): Remove pagesize member.  Change all users to use
78735         GLRO(dl_pagesize).
78736
78737         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
78738         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
78739         is always initialized.
78740
78741         * malloc/malloc.c: Removed unused configurations and dead code.
78742         * malloc/arena.c: Likewise.
78743         * malloc/hooks.c: Likewise.
78744         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
78745
78746         * include/tls.h: Removed.  USE___THREAD must always be defined.
78747         * bits/libc-tsd.h: Don't handle !USE___THREAD.
78748         * elf/dl-libc.c: Likewise.
78749         * elf/dl-tsd.c: Likewise.
78750         * include/errno.h: Likewise.
78751         * include/netdb.h: Likewise.
78752         * include/resolv.h: Likewise.
78753         * inet/herrno-loc.c: Likewise.
78754         * inet/herrno.c: Likewise.
78755         * malloc/arena.c: Likewise.
78756         * malloc/hooks.c: Likewise.
78757         * malloc/malloc.c: Likewise.
78758         * resolv/res-state.c: Likewise.
78759         * resolv/res_libc.c: Likewise.
78760         * sysdeps/i386/dl-machine.h: Likewise.
78761         * sysdeps/ia64/dl-machine.h: Likewise.
78762         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
78763         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
78764         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
78765         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
78766         * sysdeps/sh/dl-machine.h: Likewise.
78767         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
78768         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
78769         * sysdeps/unix/i386/sysdep.S: Likewise.
78770         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
78771         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
78772         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
78773         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
78774         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
78775         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
78776         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
78777         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
78778         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
78779         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
78780         * sysdeps/unix/x86_64/sysdep.S: Likewise.
78781         * sysdeps/x86_64/dl-machine.h: Likewise.
78782         * tls.make.c: Likewise.
78783
78784         * configure.in: Remove --with-__thread option.  Make tests for
78785         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
78786         tls_model attribute fail if no support is available.  Remove
78787         USE_IN_LIBIO.
78788         * Makeconfig: Adjust for dropped configure option.  All features are
78789         now mandatory.
78790         * Makerules: Likewise.
78791         * Versions.def: Likewise.
78792         * argp/argp-fmtstream.c: Likewise.
78793         * argp/argp-fmtstream.h: Likewise.
78794         * argp/argp-help.c: Likewise.
78795         * assert/assert.c: Likewise.
78796         * config.h.in: Likewise.
78797         * config.make.in: Likewise.
78798         * configure: Likewise.
78799         * configure.in: Likewise.
78800         * csu/Versions: Likewise.
78801         * csu/init.c: Likewise.
78802         * elf/tst-audit2.c: Likewise.
78803         * elf/tst-tls10.c: Likewise.
78804         * elf/tst-tls10.h: Likewise.
78805         * elf/tst-tls11.c: Likewise.
78806         * elf/tst-tls12.c: Likewise.
78807         * elf/tst-tls14.c: Likewise.
78808         * elf/tst-tlsmod11.c: Likewise.
78809         * elf/tst-tlsmod12.c: Likewise.
78810         * elf/tst-tlsmod13.c: Likewise.
78811         * elf/tst-tlsmod13a.c: Likewise.
78812         * elf/tst-tlsmod14a.c: Likewise.
78813         * elf/tst-tlsmod15b.c: Likewise.
78814         * elf/tst-tlsmod16a.c: Likewise.
78815         * elf/tst-tlsmod16b.c: Likewise.
78816         * elf/tst-tlsmod7.c: Likewise.
78817         * elf/tst-tlsmod8.c: Likewise.
78818         * elf/tst-tlsmod9.c: Likewise.
78819         * gmon/gmon.c: Likewise.
78820         * grp/fgetgrent_r.c: Likewise.
78821         * grp/putgrent.c: Likewise.
78822         * hurd/fopenport.c: Likewise.
78823         * include/libc-symbols.h: Likewise.
78824         * include/tls.h: Likewise.
78825         * intl/gettextP.h: Likewise.
78826         * intl/loadinfo.h: Likewise.
78827         * locale/global-locale.c: Likewise.
78828         * locale/localeinfo.h: Likewise.
78829         * mach/devstream.c: Likewise.
78830         * malloc/arena.c: Likewise.
78831         * malloc/set-freeres.c: Likewise.
78832         * misc/err.c: Likewise.
78833         * misc/getttyent.c: Likewise.
78834         * misc/mntent_r.c: Likewise.
78835         * posix/getopt.c: Likewise.
78836         * posix/wordexp.c: Likewise.
78837         * pwd/fgetpwent_r.c: Likewise.
78838         * resolv/Versions: Likewise.
78839         * resolv/res_hconf.c: Likewise.
78840         * shadow/fgetspent_r.c: Likewise.
78841         * shadow/putspent.c: Likewise.
78842         * stdio-common/printf_fphex.c: Likewise.
78843         * stdio-common/tmpfile.c: Likewise.
78844         * stdlib/abort.c: Likewise.
78845         * stdlib/fmtmsg.c: Likewise.
78846         * sunrpc/auth_unix.c: Likewise.
78847         * sunrpc/clnt_perr.c: Likewise.
78848         * sunrpc/clnt_tcp.c: Likewise.
78849         * sunrpc/clnt_udp.c: Likewise.
78850         * sunrpc/clnt_unix.c: Likewise.
78851         * sunrpc/openchild.c: Likewise.
78852         * sunrpc/svc_simple.c: Likewise.
78853         * sunrpc/svc_tcp.c: Likewise.
78854         * sunrpc/svc_udp.c: Likewise.
78855         * sunrpc/svc_unix.c: Likewise.
78856         * sunrpc/xdr.c: Likewise.
78857         * sunrpc/xdr_array.c: Likewise.
78858         * sunrpc/xdr_rec.c: Likewise.
78859         * sunrpc/xdr_ref.c: Likewise.
78860         * sunrpc/xdr_stdio.c: Likewise.
78861
78862 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
78863
78864         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
78865
78866 2011-07-03  Andreas Jaeger  <aj@suse.de>
78867
78868         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
78869         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
78870         regenerate with gen-libm-tests.pl.
78871
78872 2010-05-12  Petr Baudis  <pasky@suse.cz>
78873
78874         [BZ #11589]
78875         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
78876         around j0() zero points by switching to j1().
78877         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
78878         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
78879         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
78880         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
78881
78882 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
78883
78884         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
78885         instead of 0.
78886         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
78887         instead of 0.
78888         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
78889         Patch in part by Pavel Roskin <proski@gnu.org>.
78890
78891         [BZ #13138]
78892         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
78893         realloc.
78894         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
78895         Free memory block if necessary.
78896
78897         [BZ #12847]
78898         * libio/genops.c (INTDEF): For string streams the _lock pointer can
78899         be NULL.  Don't lock in this case.
78900
78901 2011-09-09  Roland McGrath  <roland@hack.frob.com>
78902
78903         * elf/elf.h (ELFOSABI_GNU): New macro.
78904         (ELFOSABI_LINUX): Define to that.
78905
78906 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
78907
78908         * string/strncat.c (strncat): Undef the symbol in case it has been
78909         defined in bits/string.h.
78910
78911 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
78912
78913         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
78914
78915         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
78916         link map.
78917
78918 2011-08-17  Andreas Jaeger  <aj@suse.de>
78919
78920         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
78921
78922 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
78923             Ian Lance Taylor  <iant@google.com>
78924
78925         * math/libm-test.inc (lround_test): New testcase.
78926         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
78927
78928 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
78929
78930         * Makefile: Remove support for automatic cvs check-ins.
78931         * Makerules: Likewise.
78932         * config.make.in: Likewise.
78933         * configure.in: Likewise.
78934         * intl/Makefile: Likewise.
78935         * locale/Makefile: Likewise.
78936         * po/Makefile: Likewise.
78937         * posix/Makefile: Likewise.
78938         * sysdeps/gnu/Makefile: Likewise.
78939         * sysdeps/mach/hurd/Makefile: Likewise.
78940         * sysdeps/sparc/sparc32/Makefile: Likewise.
78941
78942         [BZ #13118]
78943         * posix/Makefile (bug-regex32-ENV): Define.
78944         Patch by John Stanley <jpsinthemix@verizon.net>.
78945
78946         * misc/Makefile (headers): Add bits/select2.h.
78947         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
78948         * misc/bits/select2.h: New file.
78949         * include/bits/select2.h: New file.
78950         * debug/Makefile (routines): Add fdelt_chk.
78951         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
78952         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
78953         FD_ISSET.
78954         * debug/fdelt_chk.c: New file.
78955
78956         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
78957         * wcsmbs/test-wmemcmp.c: Likewise.
78958         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
78959         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
78960
78961 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
78962
78963         * string/Makefile (strop-tests): Add memcmp.
78964         * string/test-wmemcmp.c: New file.
78965         * string/test-memcmp.c: Add wmemcmp support.
78966
78967 2011-09-08  Roland McGrath  <roland@hack.frob.com>
78968
78969         [BZ #13153]
78970         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
78971         2011-07-19 change.
78972
78973         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
78974         garbage value in a __mach_port_mod_refs call in the cases of the
78975         task-self and thread-self ports.
78976
78977 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
78978
78979         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
78980
78981 2011-09-08  Andreas Schwab  <schwab@redhat.com>
78982
78983         * elf/dl-load.c (lose): Check for non-null L.
78984
78985 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
78986
78987         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
78988
78989         * elf/dl-libc.c (dlerror_run): Pass back error code from
78990         dl_catch_error.
78991
78992         [BZ #13123]
78993         * elf/dl-load.c (lose): Free l_origin if it is valid.
78994
78995         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
78996         names.
78997         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
78998         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
78999         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79000         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79001         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
79002         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
79003
79004 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79005
79006         * sysdeps/powerpc/fpu/e_hypot.c: New file.
79007         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
79008         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
79009         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
79010         * sysdeps/powerpc/fpu/k_cosf.c: New file.
79011         * sysdeps/powerpc/fpu/k_sinf.c: New file.
79012         * sysdeps/powerpc/fpu/s_cosf.c: New file.
79013         * sysdeps/powerpc/fpu/s_sinf.c: New file.
79014         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
79015         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
79016
79017 2011-08-15  Alan Modra  <amodra@gmail.com>
79018
79019         [BZ #13092]
79020         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
79021         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
79022         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
79023         ppc_mcount to static-only-routines.
79024         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
79025         __mcount_internal.
79026         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
79027         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
79028
79029 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
79030
79031         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
79032         for finite and infinity parameters.
79033
79034 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
79035
79036         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
79037         and add nop instructions for throughput optimization.
79038         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
79039
79040 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
79041
79042         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
79043         aligned copy for power7 with vector-scalar instructions.
79044         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
79045
79046 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
79047
79048         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
79049         AVX check.
79050
79051 2011-09-07  Andreas Schwab  <schwab@redhat.com>
79052
79053         [BZ #13144]
79054         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
79055         last change.
79056
79057 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
79058
79059         * sysdeps/unix/sysv/linux/x86_64/init-first.c
79060         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
79061         syscall wrapper around clock_gettime in __vdso_clock_gettime.
79062         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
79063         clock_gettime.
79064
79065 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79066
79067         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
79068         Forgot to demangle the pointer.
79069
79070         * sysdeps/i386/sysdep.h: Define atom_text_section.
79071         * sysdeps/x86_64/sysdep.h: Likewise.
79072         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
79073         section with atom_text_section.
79074         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
79075         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
79076         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
79077         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79078         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
79079
79080         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
79081         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
79082         already be defined.  Change to take two parameters and don't assign
79083         result to variable.  Adjust all users.
79084         Define INTERNAL_GETTIME if not already defined.
79085         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
79086         call.
79087         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
79088         HAVE_CLOCK_GETTIME_VSYSCALL.
79089         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
79090
79091         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
79092         gettimeofday vsyscall, just use time.
79093
79094 2011-09-06  Andreas Schwab  <schwab@redhat.com>
79095
79096         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
79097         <errno.h>.
79098
79099 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
79100
79101         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
79102         syscall on x86-64.
79103         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
79104         syscall.
79105         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
79106         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
79107         syscall if possible.
79108
79109 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79110
79111         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
79112         e_ident.  Don't pass to find_mapsXX.
79113         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
79114
79115 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79116
79117         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79118         strchr-sse2-no-bsf strrchr-sse2-no-bsf
79119         * sysdeps/x86_64/multiarch/strchr.S: Update.
79120         Check bit_slow_BSF bit.
79121         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
79122         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
79123         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
79124
79125 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79126
79127         [BZ #13134]
79128         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
79129         before glibc 2.15.
79130         (tryshell): Define.
79131         (__spawni): Change last parameter to be flag.  Test
79132         SPAWN_XFLAGS_USE_PATH flag to use path or not.
79133         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
79134         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
79135         * posix/spawni.c: Likewise.
79136         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
79137         * posix/spawnp.c: Likewise.  Change normal version to use
79138         SPAWN_XFLAGS_USE_PATH.
79139         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
79140         SPAWN_XFLAGS_TRY_SHELL.
79141
79142         [BZ #13150]
79143         * posix/glob.h: Remove gcc 1.x support.
79144
79145         [BZ #13068]
79146         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
79147
79148 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79149
79150         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79151         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
79152         strrchr-sse2-bsf
79153         * sysdeps/i386/i686/multiarch/strchr.S: New file.
79154         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
79155         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
79156         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
79157         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
79158         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
79159
79160 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79161
79162         * sysdeps/x86_64/wcscmp.S: New file.
79163
79164         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
79165         wcscmp-c wcscmp-sse2
79166         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
79167         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
79168         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
79169         * wcsmbs/wcscmp.c: Allow renaming.
79170
79171 2011-09-05  David S. Miller  <davem@davemloft.net>
79172
79173         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
79174         stack slot, rather than the struct return pointer slot.
79175         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
79176         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
79177         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
79178         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
79179
79180 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
79181
79182         * po/ja.po: Update from translation team.
79183
79184         [BZ #13144]
79185         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
79186         kernel in 64-bit binaries.
79187
79188 2011-09-01  David S. Miller  <davem@davemloft.net>
79189
79190         * elf/elf.h (HWCAP_SPARC_*): Move to..
79191         * sysdeps/sparc/sysdep.h: this new file and add new values.
79192         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
79193         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
79194         _DL_HWCAP_COUNT to 24.
79195         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
79196         entries.
79197         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
79198         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
79199         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
79200         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
79201         instead of magic constants.
79202         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
79203
79204 2011-08-31  David S. Miller  <davem@davemloft.net>
79205
79206         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
79207         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
79208         Reimplement to do errno handling inline.
79209         (SYSCALL_ERROR_HANDLER): New macro.
79210         (__SYSCALL_STRING): Do not do errno handling in asm.
79211         (__CLONE_SYSCALL_STRING): Delete.
79212         (__INTERNAL_SYSCALL_STRING): Delete.
79213         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
79214         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
79215         (PSEUDO): Reimplement to do errno handling inline.
79216         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
79217         (SYSCALL_ERROR_HANDLER): New macro.
79218         (__SYSCALL_STRING): Do not do errno handling in asm.
79219         (__CLONE_SYSCALL_STRING): Delete.
79220         (__INTERNAL_SYSCALL_STRING): Delete.
79221         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
79222         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
79223         i386.
79224         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
79225         (inline_syscall*): Add 'err' argument.
79226         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
79227         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
79228         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
79229         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
79230
79231         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
79232         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
79233
79234 2011-08-30  Andreas Schwab  <schwab@redhat.com>
79235
79236         * elf/rtld.c (dl_main): Relocate objects in dependency order.
79237
79238 2011-08-29  Jiri Olsa <jolsa@redhat.com>
79239
79240         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
79241         directive.
79242
79243 2011-08-24  David S. Miller  <davem@davemloft.net>
79244
79245         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
79246
79247 2011-08-24  Andreas Schwab  <schwab@redhat.com>
79248
79249         * elf/Makefile: Add rules to build and run unload8 test.
79250         * elf/unload8.c: New file.
79251         * elf/unload8mod1.c: New file.
79252         * elf/unload8mod1x.c: New file.
79253         * elf/unload8mod2.c: New file.
79254         * elf/unload8mod3.c: New file.
79255
79256         * elf/dl-close.c (_dl_close_worker): Reset private search list if
79257         it wasn't used.
79258
79259 2011-08-23  David S. Miller  <davem@davemloft.net>
79260
79261         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
79262         subtract stack bias.
79263         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
79264         %sp not %fp in calculations.
79265         (_JMPBUF_UNWINDS_ADJ): Likewise.
79266
79267         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
79268         (aio_suspend): Call it to force an exception region around the
79269         AIO_MISC_WAIT() invocation.
79270
79271 2011-08-23  Andreas Schwab  <schwab@redhat.com>
79272
79273         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
79274         backslash.
79275
79276 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
79277
79278         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
79279         protection macro.
79280         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
79281         and <dl-machine.h>.
79282         (Elf64_FuncDesc): Remove.
79283
79284 2011-08-22  David S. Miller  <davem@davemloft.net>
79285
79286         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
79287         sigaltstack check, add missing cfi directives.
79288         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
79289         missing cfi directives, and sigaltstack handling.
79290
79291 2011-08-16  Andreas Schwab  <schwab@redhat.com>
79292
79293         [BZ #11724]
79294         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
79295         object is seen twice.
79296         * elf/dl-fini.c (_dl_sort_fini): Likewise.
79297
79298         * elf/Makefile (distribute): Add tst-initorder2.c.
79299         (tests): Add tst-initorder2.
79300         (modules-names): Add tst-initorder2a tst-initorder2b
79301         tst-initorder2c tst-initorder2d.  Add rules to build them.
79302         ($(objpfx)tst-initorder2.out): New rule.
79303         * elf/tst-initorder2.c: New file.
79304         * elf/tst-initorder2.exp: New file.
79305
79306 2011-08-22  Andreas Schwab  <schwab@redhat.com>
79307
79308         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
79309
79310         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
79311         dependencies back to end of function.
79312
79313         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
79314         $(elfobjdir)/ld.so.
79315
79316 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
79317
79318         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
79319         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
79320         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
79321         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
79322         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
79323         of __vdso_gettimeofday.
79324         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
79325         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
79326         attribute_hidden.
79327         (_libc_vdso_platform_setup): Remove initialization of
79328         __vdso_gettimeofday and __vdso_time.
79329
79330 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79331
79332         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
79333         and fgetc_unlocked.
79334         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
79335         getc_unlocked.
79336
79337         * elf/dl-open.c (add_to_global): Report additions to the global scope
79338         for LD_DEBUG=scopes.
79339         (dl_open_worker): Also print scope of newly loaded dependencies.
79340         (_dl_show_scope): Indicate if there is no scope.
79341
79342         [BZ #13114]
79343         * stdio-common/Makefile (tests): Add bug24.
79344         * stdio-common/bug24.c: New file.
79345
79346 2011-08-19  Andreas Jaeger  <aj@suse.de>
79347
79348         [BZ #13114]
79349         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
79350         non-existant file when using close-on-exec mode.
79351
79352 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
79353
79354         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
79355         the very first instruction.
79356
79357         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
79358         the CFI state in the end.
79359         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
79360         inclusion of dl-trampoline.h.
79361         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
79362
79363 2011-08-19  Andreas Schwab  <schwab@redhat.com>
79364
79365         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
79366         expectations for long double.
79367
79368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
79369         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
79370
79371 2011-08-14  David S. Miller  <davem@davemloft.net>
79372
79373         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
79374         artificual limit depends upon the system page size.
79375
79376 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79377
79378         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
79379         * resolv/Makefile: Define CFLAGS-libresolv.
79380
79381 2011-08-17  Andreas Schwab  <schwab@redhat.com>
79382
79383         * nss/makedb.c (compute_tables): Make variables used in nested
79384         function static.
79385
79386 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
79387
79388         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
79389         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
79390         if buffer was too small.
79391
79392         * elf/pldd.c (main): Attach to all threads in the process.
79393         Rewrite /proc handling to use *at functions.
79394
79395 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
79396
79397         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
79398         specifies first scope to show.
79399         (dl_open_worker): Update callers.  Move printing scope of new
79400         object to before the relocation.
79401         * elf/rtld.c (dl_main): Update _dl_show_scope call.
79402         * sysdeps/generic/ldsodefs.h: Update declaration.
79403
79404         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
79405         string for the scope number.
79406
79407 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
79408
79409         * nscd/servicescache.c (cache_addserv): Make sure written is always
79410         initialized.
79411
79412 2011-08-14  Roland McGrath  <roland@hack.frob.com>
79413
79414         * sysdeps/i386/i486/bits/atomic.h
79415         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
79416         statement expression, so as to suppress "set but not used" warning.
79417         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
79418
79419         * string/strncat.c (STRNCAT): Use prototype definition.
79420
79421         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
79422         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
79423         -Iprograms here.
79424         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
79425         (localedef-modules): Add localedef.
79426         (locale-modules): Add locale.
79427
79428         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
79429         * elf/rtld.c (dl_main): Invert order of assignment in last change,
79430         to avoid a warning.
79431
79432 2011-08-14  David S. Miller  <davem@davemloft.net>
79433
79434         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
79435         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
79436
79437 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
79438
79439         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
79440         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
79441         * elf/rtld.c (dl_main): Set l_name of vDSO.
79442         Call _dl_show_scope when DL_DEBUG_SCOPES.
79443         (process_dl_debug): Recognize scopes flag and also set it for all.
79444         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
79445         Declare _dl_show_scope.
79446
79447         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
79448         (do_dlopen): Pass caller_dlopen to dl_open.
79449         (__libc_dlopen_mode): Initialize caller_dlopen.
79450
79451         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
79452         of libc.  Make tolower call locale-independent.  Optimize a bit by
79453         using isdigit instead of isalnum.
79454         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
79455
79456 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
79457
79458         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
79459         was a dependency or dynamically loaded.
79460
79461 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
79462
79463         * intl/l10nflist.c: Allow architecture-specific pop function.
79464         * sysdeps/x86_64/l10nflist.c: New file.
79465
79466         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
79467         classification.
79468
79469 2011-08-10  Andreas Schwab  <schwab@redhat.com>
79470
79471         * include/dirent.h: Add libc_hidden_proto for scandirat and
79472         scandirat64.  Don't declare __scandirat64.
79473         * dirent/scandirat.c: Add libc_hidden_def.
79474         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
79475         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
79476
79477 2011-08-10  David S. Miller  <davem@davemloft.net>
79478
79479         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
79480         enum.
79481         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79482         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79483         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79484
79485 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
79486
79487         * Versions.def [libc]: Add GLIBC_2.15.
79488         * dirent/Makefile (routines): Add scandirat and scandirat64.
79489         * dirent/Versions [libc]: Export scandirat and scandirat64 for
79490         GLIBC_2.15.
79491         * dirent/dirent.h: Declare scandirat and scandirat64.
79492         * dirent/scandirat.c: New file.
79493         * dirent/scandirat64.c: New file.
79494         * sysdeps/wordsize-64/scandirat.c: New file.
79495         * sysdeps/wordsize-64/scandirat64.c: New file.
79496         * dirent/opendir.c: Define opendirat.
79497         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
79498         using scandirat.
79499         * dirent/scandir64.c: Adjust for scandir.c change.
79500         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
79501         __scandirat64, and __scandir_cancel_handler.
79502         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
79503         additional parameter and use openat instead of open (outside of ld.so).
79504         Add new __opendir as wrapper around __opendirat.
79505         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
79506         here without requiring old scandirat implementation.
79507
79508 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
79509
79510         * dirent/scandir.c (cancel_handler): Renamed to
79511         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
79512         defined.  Adjust users.
79513         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
79514         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
79515
79516 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
79517
79518         * string/test-string.h (IMPL): Use __STRING to expand name and then
79519         stringify it.
79520
79521         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
79522         of cleanups.
79523
79524 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79525
79526         * string/Makefile: Update.
79527         (strop-tests): Append strncat.
79528         * string/test-wcscmp.c: New file.
79529         New comprehensive test for wcscmp.
79530         * string/test-strcmp.c: Update.
79531         (WIDE): New define.
79532
79533 2011-07-22  Andreas Schwab  <schwab@redhat.com>
79534
79535         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
79536         line.
79537
79538 2011-07-26  Andreas Schwab  <schwab@redhat.com>
79539
79540         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
79541         encoding to ACE if AI_IDN.
79542
79543 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
79544
79545         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
79546         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
79547
79548 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79549
79550         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
79551         Fix overflow bug in strncat.
79552         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
79553
79554         * string/test-strncat.c: Update.
79555         Add new tests for checking overflow bugs.
79556
79557 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79558
79559         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
79560         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
79561         * sysdeps/i386/i686/multiarch/strcat.S: New file.
79562         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
79563         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
79564         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
79565         * sysdeps/i386/i686/multiarch/strncat.S: New file.
79566         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
79567         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
79568
79569         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
79570         (USE_AS_STRCAT): Define.
79571         Add strcat and strncat support.
79572         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
79573
79574 2011-07-25  Andreas Schwab  <schwab@redhat.com>
79575
79576         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
79577         __n bigger than INT_MAX+1.
79578         (__strncmp_g): Likewise.
79579
79580 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
79581
79582         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
79583         * libio/stido.h: Likewise.
79584
79585         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
79586         (AF_NFC): Define.
79587         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
79588         (AF_NFC): Define.
79589
79590         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
79591         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
79592         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
79593         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
79594         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
79595
79596         [BZ #13021]
79597         * scripts/test-installation.pl: Don't expect libnss_test1 to be
79598         installed.
79599
79600         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
79601         typo.
79602         (_dl_x86_64_save_sse): Likewise.
79603
79604 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
79605
79606         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
79607         OSXSAVE.
79608         (_dl_x86_64_save_sse): Likewise.
79609
79610         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
79611
79612         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
79613
79614 2011-07-21  Andreas Schwab  <schwab@redhat.com>
79615
79616         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
79617         change.
79618         (_dl_x86_64_save_sse): Use correct AVX check.
79619
79620 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79621
79622         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
79623         bug in strncpy/strncat.
79624         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
79625
79626 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
79627
79628         * string/tester.c (test_strcat): Add tests for different alignments
79629         of source and destination.
79630         (test_strncat): Likewise.
79631
79632 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79633
79634         [BZ #12852]
79635         * posix/glob.c (glob): Check passed in values before using them in
79636         expressions to avoid some overflows.
79637         (glob_in_dir): Likewise.
79638
79639         [BZ #13007]
79640         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
79641         check for AVX enablement so that we don't crash with old kernels and
79642         new hardware.
79643         * elf/tst-audit4.c: Add same checks here.
79644         * elf/tst-audit6.c: Likewise.
79645
79646         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
79647
79648 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
79649
79650         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
79651
79652 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
79653
79654         * po/cs.po: Update from translation team.
79655         * po/bg.po: Likewise.
79656
79657 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
79658
79659         * misc/sys/cdefs.h: Add support for const attribute.
79660         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
79661         to gnu_dev_{major,minor,makedev} functions.
79662
79663 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
79664
79665         * intl/dcigettext.c (get_output_charset): Add missing bracket.
79666
79667 2011-07-20  Andreas Schwab  <schwab@redhat.com>
79668
79669         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
79670         strlen results.
79671
79672 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
79673
79674         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
79675         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
79676         register in order to avoid conflicts with the soft frame pointer
79677         being held in r11 when necessary.
79678         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
79679         (INTERNAL_VSYSCALL_NCS): Likewise.
79680
79681 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
79682
79683         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
79684         * elf/dl-fini.c (_dl_fini): Adjust caller.
79685         * elf/dl-close.c (_dl_close_worker): Likewise.
79686         * sysdeps/generic/ldsodefs.h: Adjust declaration.
79687
79688 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79689
79690         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
79691         "aux_cache->nlibs < 0".
79692
79693         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
79694         in the reload-count case.
79695
79696 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
79697
79698         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
79699         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
79700         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
79701         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
79702         * sysdeps/x86_64/multiarch/strcat.S: New file.
79703         * sysdeps/x86_64/multiarch/strncat.S: New file.
79704         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
79705         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
79706         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
79707         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
79708         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
79709         (USE_AS_STRCAT): Define.
79710         Add strcat and strncat support.
79711         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
79712         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
79713         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
79714         * string/strncat.c: Update.
79715         (USE_AS_STRNCAT): Define.
79716         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
79717         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
79718         and i7.
79719         * sysdeps/x86_64/multiarch/init-arch.h
79720         (bit_Prefer_PMINUB_for_stringop): New.
79721         (index_Prefer_PMINUB_for_stringop): Likewise.
79722         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
79723         bit_Prefer_PMINUB_for_stringop.
79724
79725 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79726
79727         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
79728         buffer64.
79729         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
79730         of casting of buffer.
79731         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
79732         buffer32 and buffer64.
79733         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
79734         writes instead of casting of buffer.
79735         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
79736         buffer32.
79737         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
79738         casting of buffer.
79739
79740 2011-07-19  Andreas Schwab  <schwab@redhat.com>
79741
79742         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
79743
79744 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
79745
79746         * nscd/nscd.c (termination_handler): Don't do anything for a database
79747         if it has not yet been initialized.
79748
79749 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79750
79751         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79752
79753 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
79754
79755         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
79756
79757 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
79758
79759         * po/nl.po: Update from translation team.
79760         * po/sv.po: Likewise.
79761
79762 2011-07-16  Roland McGrath  <roland@hack.frob.com>
79763
79764         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
79765         now disallowed by GCC.
79766
79767         * configure.in (use-default-link): Default to yes if a test -shared
79768         link meets our qualifications.
79769         * configure: Regenerated.
79770
79771         * config.make.in (output-format): New variable.
79772         * configure.in: Check for ld --print-output-format support.
79773         * configure: Regenerated.
79774         * Makerules ($(common-objpfx)format.lds)
79775         [$(output-format) != unknown]: Just use $(output-format),
79776         instead of the linker-script munging.
79777
79778 2011-07-14  Roland McGrath  <roland@hack.frob.com>
79779
79780         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
79781         of $(common-objpfx)shlib.lds.
79782         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
79783
79784         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
79785         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
79786
79787         * configure.in (-z relro check): Adjust test code to add a large
79788         writable data section after it.
79789         * configure: Regenerated.
79790
79791 2011-07-11  Roland McGrath  <roland@hack.frob.com>
79792
79793         * configure.in (-z relro check): Fix test code to make the variable
79794         truly const.
79795         * configure: Regenerated.
79796
79797 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
79798
79799         * nscd/nscd.h (struct traced_file): Define.
79800         (struct database_dyn): Remove inotify_descr, reset_res, and filename
79801         elements.  Add traced_files.
79802         (inotify_fd): Declare.
79803         (register_traced_file): Declare.
79804         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
79805         (inotify_fd): Export.
79806         (resolv_conf_descr): Remove.
79807         (nscd_init): Move inotify descriptor creation to main.
79808         Don't register files for notification here.
79809         (register_traced_file): New function.
79810         (invalidate_cache): Don't use reset_res to determine whether to call
79811         res_init, go through the list of registered files.
79812         (main_loop_poll): The inotify descriptors are now stored in the
79813         structures for the traced files.
79814         (main_loop_epoll): Likewise.
79815         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
79816         to __nss_disable_nscd.
79817         * nscd/cache.c (prune_cache): There is no single inotify descriptor
79818         for a database anymore.  Check the records for all the registered
79819         files instead.
79820         * nss/Makefile (libnss_files-routines): Add files-init.
79821         (libnss_db-routines): Add db-init.
79822         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
79823         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
79824         * nss/nss_db/db-init.c: New file.
79825         * nss/nss_files/files-init.c: New file.
79826         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
79827         __nss_lookup_function.
79828         (__nss_lookup_function): Call nss_load_library.
79829         (nss_load_all_libraries): New function.
79830         (__nss_disable_nscd): Take parameter with callback function for files
79831         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
79832         used for the cached services.
79833         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
79834         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
79835         options for features to all the files in nscd.
79836
79837         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
79838
79839 2011-07-10  Roland McGrath  <roland@hack.frob.com>
79840
79841         * csu/elf-init.c (__libc_csu_init): Comment typo.
79842
79843 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
79844
79845         * po/pl.po: Update from translation team.
79846         * po/ja.po: Likewise.
79847         * po/ru.po: Likewise.
79848         * po/ko.po: Likewise.
79849         * po/fr.po: Likewise.
79850
79851 2011-07-09  Roland McGrath  <roland@hack.frob.com>
79852
79853         * configure.in (.ctors/.dtors header and trailer check):
79854         Use an empirical test on a built program.
79855         * configure: Regenerated.
79856
79857         * configure.in (-z relro check): Use an empirical test on a built DSO.
79858         Detect, but do not require, on ia64.
79859         * configure: Regenerated.
79860
79861         * configure.in (READELF): Find it with AC_CHECK_TOOL.
79862         Update tests that use readelf to use $READELF instead.
79863         * configure: Regenerated.
79864
79865 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
79866
79867         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
79868         if the result is not used.
79869
79870 2011-07-05  Andreas Jaeger  <aj@suse.de>
79871
79872         [BZ#9696]
79873         * stdlib/tst-strtod.c: Add testcase.
79874
79875 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
79876
79877         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
79878         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
79879         The latter has a higher limit.  Take additional parameter to pass to
79880         the new function.
79881         (__pathconf): Pass file to __statfs_link_max.
79882         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
79883         __statfs_link_max.
79884         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
79885         __statfs_link_max.
79886
79887         [BZ #12868]
79888         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
79889         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
79890         Handle Lustre.
79891         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
79892         (__statfs_filesize_max): Likewise.
79893         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
79894
79895 2011-07-05  Andreas Jaeger  <aj@suse.de>
79896
79897         * resolv/res_comp.c (dn_skipname): Remove unused variable.
79898
79899 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
79900
79901         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
79902         `status' variable.
79903         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
79904         Likewise.
79905
79906 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
79907
79908         * Makefile (strop-tests): Add strncat.
79909         * string/test-strncat.c: New file.
79910
79911 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
79912
79913         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
79914
79915 2011-06-21  Andreas Jaeger  <aj@suse.de>
79916
79917         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
79918         Copy rule from iconvdata/Makefile.
79919
79920 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
79921
79922         [BZ #12922]
79923         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
79924         but no long options are defined, just return 'W'.
79925
79926 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
79927
79928         [BZ #9696]
79929         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
79930
79931 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
79932
79933         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
79934         netgroups to read.
79935         (innetgr): Likewise.
79936
79937 2011-07-05  Roland McGrath  <roland@hack.frob.com>
79938
79939         * config.make.in (install_root): Default to $(DESTDIR).
79940
79941 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
79942
79943         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
79944
79945 2011-07-02  Roland McGrath  <roland@hack.frob.com>
79946
79947         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
79948
79949         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
79950         containing directory rather than embedding absolute directory names.
79951
79952         * scripts/check-local-headers.sh: Rewritten using awk.
79953         Match by word, not by line.  Print error messages for matches.
79954         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
79955
79956         * Makerules [shlib-lds-flags empty]:
79957         ($(common-objpfx)libc_pic.opts): New target.
79958         ($(common-objpfx)libc_pic.os.clean): New target.
79959         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
79960
79961         * config.make.in (OBJCOPY): New variable.
79962         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
79963         * configure: Regenerated.
79964
79965         * config.make.in (use-default-link): New variable.
79966         * configure.in (use_default_link): Grok --with-default-link to set it.
79967         * configure: Regenerated.
79968         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
79969         (shlib-lds, shlib-lds-flags): Define to empty.
79970
79971         * Makerules (shlib-lds): New variable.
79972         (shlib-lds-flags): New variable.
79973         (build-shlib, build-moduile, build-module-asneeded): Use it.
79974         ($(common-objpfx)libc.so): Use $(shlib-lds).
79975         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
79976         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
79977
79978         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
79979         DT_FLAGS/DT_FLAGS_1 with zero flags.
79980
79981         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
79982         linker script munging.
79983
79984 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
79985
79986         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
79987         as 128-bit value.
79988         * crypt/sha512.c (sha512_process_block): Perform total addition using
79989         128-bit if possible.
79990         (__sha512_finish_ctx): Likewise.
79991         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
79992         as 64-bit value.
79993         * crypt/sha256.c (SWAP64): Define.
79994         (sha256_process_block): Perform total addition using 64-bit if
79995         possible.
79996         (__sha256_finish_ctx): Likewise.
79997
79998 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
79999
80000         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
80001         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80002         * nscd/hstcache.c (cache_addhst): Likewise.
80003         * nscd/grpcache.c (cache_addgr): Likewise.
80004         * nscd/aicache.c (addhstaiX): Likewise.
80005         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
80006
80007 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
80008
80009         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
80010         * nscd/initgrcache.c (addinitgroupsX): Likewise.
80011         * nscd/hstcache.c (cache_addhst): Likewise.
80012         * nscd/grpcache.c (cache_addgr): Likewise.
80013         * nscd/aicache.c (addhstaiX): Likewise.
80014
80015 2011-07-01  Andreas Schwab  <schwab@redhat.com>
80016
80017         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
80018         domain only when needed.
80019
80020 2011-06-30  Andreas Schwab  <schwab@redhat.com>
80021
80022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
80023         is always restored.
80024
80025 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
80026
80027         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
80028         are re-adding the entry.
80029         * nscd/servicescache.c (cache_addserv): Likewise.
80030
80031 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
80032
80033         * sysdeps/generic/dl-irel.h: fix protection against multiple
80034         inclusions.
80035         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
80036
80037 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
80038
80039         [BZ #12935]
80040         * malloc/memusage.sh: Fix quoting in message.
80041         * debug/xtrace.sh: Likewise.
80042
80043         * configure.in: Remove support for --experimental-malloc option, make
80044         it the default.
80045         * config.make.in: Likewise.
80046         * malloc/Makefile: Likewise.
80047
80048 2011-06-27  Andreas Schwab  <schwab@redhat.com>
80049
80050         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
80051         two-byte characters.
80052
80053 2011-06-27  Roland McGrath  <roland@hack.frob.com>
80054
80055         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
80056         AC_CACHE_CHECK invocation.
80057         * configure: Regenerated.
80058
80059         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
80060
80061 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
80062
80063         [BZ #12350]
80064         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
80065         bit from old_res_options.
80066
80067         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
80068
80069         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
80070         value type for setfct.
80071
80072 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
80073
80074         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80075         __gettimeofday instead of gettimeofday.
80076
80077 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
80078
80079         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
80080
80081 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
80082
80083         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
80084
80085         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
80086         info.
80087
80088 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80089
80090         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
80091         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80092         strcpy-sse2-unaligned strncpy-sse2-unaligned
80093         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
80094         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
80095         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
80096         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
80097         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
80098         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
80099         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
80100         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
80101         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
80102         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
80103         (STRCPY): Support SSE2 and SSSE3 versions.
80104
80105 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
80106
80107         [BZ #12874]
80108         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
80109         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
80110         kernels which artificially limit size of requests.
80111
80112 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
80113
80114         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
80115         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
80116         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
80117         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
80118         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
80119         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
80120         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
80121         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
80122         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
80123         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
80124         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
80125         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
80126         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
80127         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
80128         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
80129         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80130         Enable unaligned load optimization for Intel Core i3, i5 and i7
80131         processors.
80132         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
80133         Define.
80134         (index_Fast_Unaligned_Load): Define.
80135         (HAS_FAST_UNALIGNED_LOAD): Define.
80136
80137 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
80138
80139         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
80140
80141 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80142
80143         [BZ #12907]
80144         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
80145         until it is clear that the information is realy needed.
80146         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
80147
80148 2011-06-22  Andreas Schwab  <schwab@redhat.com>
80149
80150         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
80151
80152 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
80153
80154         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
80155         /sys/devices/system/cpu/online if it is usable.
80156
80157         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
80158         reading the information from the /proc filesystem to once a second.
80159
80160 2011-06-21  Andreas Jaeger  <aj@suse.de>
80161
80162         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
80163         NULL after inclusion of kernel headers.
80164
80165 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
80166
80167         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
80168         calls to internal_setent.
80169
80170         [BZ #12885]
80171         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
80172         addresses using gethostbyname4_r ignore IPv4 addresses.
80173
80174         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
80175         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
80176
80177         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
80178
80179 2011-06-20  David S. Miller  <davem@davemloft.net>
80180
80181         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
80182         inclusions.
80183         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
80184
80185         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
80186         (elf_irel): Use it.
80187         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
80188         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
80189         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
80190         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
80191         * sysdeps/x86_64/dl-irel.h: Likewise.
80192
80193         * elf/dl-runtime.c: Use elf_ifunc_invoke.
80194         * elf/dl-sym.c: Likewise.
80195
80196 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80197
80198         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
80199         need to dereference resplen2.
80200
80201 2011-06-14  Andreas Schwab  <schwab@redhat.com>
80202
80203         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
80204
80205 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
80206
80207         * Makeconfig: Define vardbdir and inst_vardbdir.
80208         * nss/Makefile: Add rules to install db-Makefile.
80209
80210         * nss/nss_db/db-XXX.c: Cleanup.
80211
80212         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
80213         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
80214         GLIBC_PRIVATE.
80215         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
80216         * nss/makedb.c: Implement -g option to specify that value strings
80217         are generated and should not be added to table iterated over for
80218         get*ent calls.
80219         * nss/nss_db/db-initgroups.c: New file.
80220
80221         * nss/getent.c: Add support for initgroups lookups through getgrouplist
80222         interface.
80223
80224         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
80225         (internal_getgrouplist): Adjust to name change.
80226         Update use_initgroups_entry if this is not the first call.
80227         * nss/databases.def: Add initgroups entry.
80228
80229         * nss/makedb.c (compute_tables): Check result of multiple hash table
80230         sizes to minimize maximum chain length.
80231
80232 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
80233
80234         * Versions.def: Add entry for libnss_db.
80235         * shlib-versions: Likewise.
80236         * nss/Makefile: Add rules to build libnss_db.
80237         * nss/Versions: Add libnss_db information.  Organize libnss_files
80238         entries better.
80239         * nss/db-Makefile: Add gshadow support.  Change rules for the new
80240         makedb progra.  Some minor improvements to generate smaller files.
80241         * nss/nss_db/nss_db.h: Move NSS database header data structures to
80242         here from...
80243         * nss/makedb.c: ...here.
80244         Improve database format to be smaller and require less memory at
80245         runtime.
80246         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
80247         db anymore.
80248         * nss/nss_db/db-netgrp.c: Likewise.
80249         * nss/nss_db/db-open.c: Likewise.
80250         * nss/nss_files/flies-XXX.x: Adjust comments.
80251         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
80252         * nss/nss_files/files-grp.c: Likewise.
80253         * nss/nss_files/files-hosts.c: Likewise.
80254         * nss/nss_files/files-network.c: Likewise.
80255         * nss/nss_files/files-proto.c: Likewise.
80256         * nss/nss_files/files-pwd.c: Likewise.
80257         * nss/nss_files/files-rpc.c: Likewise.
80258         * nss/nss_files/files-service.c: Likewise.
80259         * nss/nss_files/files-sgrp.c: Likewise.
80260         * nss/nss_files/files-spwd.c: Likewise.
80261         * nss/nss_db/db-alias.c: Removed.
80262         * nss/nss_db/dummy-db.h: Removed.
80263
80264 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
80265
80266         * nss/makedb.c: Rewritten to not use database library.
80267         * nss/Makefile: Update to build new makedb program.
80268
80269 2011-06-14  Andreas Jaeger  <aj@suse.de>
80270
80271         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
80272         memset declaration.
80273
80274 2011-06-10  Andreas Schwab  <schwab@redhat.com>
80275
80276         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
80277         tmpbuf.
80278
80279 2011-06-10  Roland McGrath  <roland@hack.frob.com>
80280
80281         * Makerules (shlib.lds): Fail if the linker script comes out empty.
80282         * elf/Makefile ($(objpfx)ld.so): Likewise.
80283
80284         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
80285         Don't list ld.so twice in dependencies.
80286
80287         * posix/bug-regex31.c: Include <stdlib.h>.
80288
80289         * nscd/hstcache.c (cache_addhst): Remove unused variable.
80290
80291         * nis/nss_compat/compat-spwd.c
80292         (getspent_next_nss_netgr): Remove unused variable.
80293         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
80294
80295         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
80296         nonmembers" output to use the right array.
80297
80298         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
80299
80300         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
80301
80302         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
80303         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
80304         * catgets/gencat.c (read_input_file): Likewise.
80305         * locale/programs/locarchive.c (enlarge_archive): Likewise.
80306
80307         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
80308         variable definition inside #if's controlling its use.
80309
80310         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
80311
80312         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
80313
80314         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
80315
80316         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
80317         unreachable code.
80318
80319         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
80320
80321         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
80322         * configure: Regenerated.
80323
80324         * Makerules: Revert last change.
80325         * elf/Makefile: Likewise.
80326
80327 2011-06-09  Roland McGrath  <roland@hack.frob.com>
80328
80329         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
80330         * elf/Makefile ($(objpfx)librtld.os): Likewise.
80331         (reloc-link): Likewise.
80332
80333 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
80334
80335         * elf/Makefile: Add rules to build pldd.
80336         * elf/pldd.c: New file.
80337         * elf/pldd-xx.c: New file.
80338
80339 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
80340
80341         * version.h: Update for 2.15 development version.
80342
80343 2011-06-07  David S. Miller  <davem@davemloft.net>
80344
80345         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
80346         ifuncs.
80347         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
80348         elf_machine_lazy_rel): Likewise.
80349         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
80350         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
80351         elf_machine_lazy_rel): Likewise.
80352         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
80353         dl_hwcap via passed in argument.
80354         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
80355         Likewise.
80356
80357 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
80358
80359         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
80360
80361 2011-06-06  Roland McGrath  <roland@hack.frob.com>
80362
80363         [BZ #12849]
80364         * manual/fdl-1.1.texi: New file, verbatim from:
80365         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
80366         * manual/lgpl-2.1.texi: New file, verbatim from:
80367         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
80368         * manual/Makefile (licenses): New variable, list those new file names.
80369         (texis): Use it.
80370         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
80371
80372         * manual/fdl.texi: File removed.
80373         * manual/lesser.texi: File removed.
80374         * manual/libc.texinfo (Copying, Documentation License):
80375         Use new @include file names, put @appendix directive before @include.
80376
80377 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
80378
80379         [BZ #12841]
80380         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
80381         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
80382         (mq_open): Add __NTH.
80383
80384 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
80385
80386         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
80387         Assume Intel Core i3/i5/i7 processor if AVX is available.
80388
80389 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80390
80391         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
80392         typo.
80393
80394 2011-05-31  Andreas Schwab  <schwab@redhat.com>
80395
80396         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
80397         memory.  Use alloca_account.  Fix memory leak when retrying.
80398
80399 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
80400
80401         * version.h (RELEASE): Bump for 2.14 release.
80402         * include/features.h (__GLIBC_MINOR__): Bump to 14.
80403
80404         * config.make.in (RANLIB): Remove entry.
80405
80406 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
80407
80408         * po/Makefile (po-sed-cmd): Add ksh to extensions.
80409         (libc.pot): Work around missing support for .ksh extension in xgettext.
80410
80411         [BZ #12684]
80412         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
80413         if both request failed.
80414         (send_dg): In case of server errors clear resplen or *resplen2.
80415
80416         [BZ #12454]
80417         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
80418         when there are multiple maps.
80419         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
80420         (_dl_fini): Remove test here.
80421
80422         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
80423
80424 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
80425
80426         [BZ #12350]
80427         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
80428         bit from old_res_options.
80429         (gaih_inet): Likewise.
80430
80431         [BZ #11099]
80432         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
80433         as signed.
80434
80435         * resolv/res_init.c (res_setoptions): Make the code more compact.
80436
80437         [BZ #11558]
80438         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
80439         set RES_USEVC.
80440
80441         [BZ #11634]
80442         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
80443
80444         * malloc/malloc.h: Mark malloc hook variables as deprecated.
80445
80446         [BZ #11781]
80447         * malloc/malloc.h: Declare malloc hook variables as volatile.
80448
80449         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
80450         in last patch.
80451
80452         [BZ #11799]
80453         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
80454         raise in the comment.
80455         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
80456         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
80457         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
80458
80459 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
80460
80461         [BZ #12811]
80462         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
80463         grow the buffers more if it already has to be sufficient.
80464         (build_wcs_upper_buffer): Likewise.
80465         * posix/regexec.c (check_matching): Likewise.
80466         (clean_state_log_if_needed): Likewise.
80467         (extend_buffers): Don't enlarge buffers beyond size of the input
80468         buffer.
80469         Patches mostly by Emil Wojak <emil@wojak.eu>.
80470         * posix/bug-regex32.c: New file.
80471         * posix/Makefile (tests): Add bug-regex32.
80472
80473         * locale/findlocale.c (_nl_find_locale): Return right away if
80474         _nl_explode_name failed.
80475         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
80476
80477         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
80478
80479         * debug/xtrace.sh: Unify messages.
80480         * malloc/memusage.sh: Likewise.
80481
80482         [BZ #12813]
80483         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
80484         time symbol from vDSO.  Substitute with vsyscall if not available.
80485         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
80486         __vdso_time.
80487
80488         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
80489         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
80490         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
80491         Add sendmmsg and internal_sendmmsg.
80492         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
80493         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
80494         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
80495
80496         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
80497         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
80498         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
80499
80500 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
80501
80502         [BZ #12813]
80503         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
80504         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
80505         available.
80506         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
80507         __vdso_getcpu.
80508
80509         [BZ #12814]
80510         * iconvdata/Makefile (tests): Add bug-iconv9.
80511         * iconvdata/bug-iconv9.c: New file.
80512
80513 2011-05-27  Andreas Schwab  <schwab@redhat.com>
80514
80515         [BZ #12814]
80516         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
80517
80518 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
80519
80520         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80521         (struct user_regs_struct): Change intcs field back to cs.
80522
80523 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
80524
80525         * po/ja.po: Update from translation team.
80526
80527 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
80528
80529         [BZ #12795]
80530         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
80531         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
80532
80533 2011-05-20  Andreas Schwab  <schwab@redhat.com>
80534
80535         * stdlib/longlong.h: Update from GCC.
80536
80537 2011-05-23  Andreas Schwab  <schwab@redhat.com>
80538
80539         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
80540         parameter name.
80541         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
80542         Add parameter name.
80543         (__sysconf): Pass it down.
80544
80545 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
80546
80547         [BZ #12671]
80548         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
80549         some situations.
80550         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
80551         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
80552         add in in __libc_use_alloca calls.  Adjust callers.
80553         (glob): Use malloc in some situations.
80554
80555         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
80556         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
80557         pltexit.
80558
80559 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
80560
80561         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
80562         and CLOCK_BOOTTIME_ALARM.
80563
80564         [BZ #12782]
80565         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
80566         is returned.
80567
80568         * string/_strerror.c (__strerror_r): Print negative errors as signed
80569         numbers.
80570
80571         [BZ #12777]
80572         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
80573         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
80574         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
80575
80576         * configure.in: Fix typo in redirection and correct removal of test
80577         files in two cases.
80578
80579         [BZ #12788]
80580         * locale/setlocale.c (new_composite_name): Fix test to check for
80581         identical name of all categories.
80582
80583         [BZ #12792]
80584         * libio/filedoalloc.c (local_isatty): New function.
80585         (_IO_file_doallocate): Use local_isatty.
80586         * stdio-common/perror.c (perror): In case a new stream is used
80587         forward the stream error.
80588         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
80589         error flag.
80590
80591 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
80592
80593         [BZ #11884]
80594         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
80595         alloca.
80596         * include/alloca.h (extend_alloca_account): Define.
80597
80598         [BZ #11857]
80599         * posix/regex.h: Fix comments with documentation of user-accessible
80600         fields after compilation and describe correct free'ing of pattern
80601         after re_compile_pattern.
80602         Patch by Reuben Thomas <rrt@sc3d.org>.
80603
80604 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
80605
80606         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
80607         and -mno-altivec to prevent the compiler from using Altivec and/or
80608         VSX instructions when the corresponding registers are not available.
80609
80610 2011-05-19  Andreas Schwab  <schwab@redhat.com>
80611
80612         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
80613
80614 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
80615
80616         * libio/freopen.c (freopen): Use __dup2, not dup2.
80617         * libio/freopen64.c (freopen64): Likewise.
80618
80619 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
80620
80621         [BZ #12775]
80622         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
80623         * math/Makefile (tests): Add test-powl.
80624         (CFLAGS-test-powl.c): Define.
80625         * math/test-powl.c: New file.
80626
80627 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
80628
80629         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
80630
80631 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
80632
80633         [BZ #11837]
80634         * iconvdata/gb18030.c: Update to GB18020-2005.
80635
80636 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
80637
80638         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
80639         RE_SYNTAX_POSIX_AWK): Update to match recent development.
80640         Patch by Aharon Robbins <arnold@skeeve.com>.
80641
80642         [BZ #11892]
80643         * stdlib/putenv.c (putenv): Don't always create copy of the variable
80644         on the stack.
80645
80646         [BZ #11895]
80647         * misc/pselect.c (__pselect): Handle timeout value errors hidden
80648         through underflows.
80649
80650         [BZ #12766]
80651         * misc/error.c (error_at_line): Ensure file_name and old_file_name
80652         point to strings before performing equality test for error_one_per_line
80653         mode.
80654
80655         [BZ #11697]
80656         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
80657
80658         [BZ #11820]
80659         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
80660         (struct user_fpregs_struct): Avoid __uint*_t types.
80661
80662         [BZ #6420]
80663         * malloc/mtrace.c (tr_where): Add additional parameter to point to
80664         symbol info.  Use it instead of calling _dl_addr locally.
80665         (lock_and_info): New function.
80666         (tr_freehook): Call lock_and_info and pass symbol info as additional
80667         parameter to tr_where.
80668         (tr_mallochook): Likewise.
80669         (tr_reallochook): Likewise.
80670         (tr_memalignhook): Likewise.
80671
80672         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
80673         used and couldn't be at all thread-safe.
80674
80675 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
80676
80677         * libio/freopen.c (freopen): Don't close old file descriptor
80678         before the new one is opened.  Instead dup the new file descriptor
80679         to the old one after the new stream is created.
80680         * libio/freopen64.c (freopen64): Likewise.
80681         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
80682         * libio/fileops.c (_IO_new_file_close_it): Handle new
80683         _IO_FLAGS2_NOCLOSE flag.
80684         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
80685         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
80686         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
80687         _IO_FLAGS2_NOCLOSE flag.
80688         * include/unistd.h: Add hidden_proto for dup3.
80689         Define __have_dup3.
80690         * io/dup3.c: Define hidden symbol.
80691         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
80692
80693         [BZ #7101]
80694         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
80695         when an incomplete long option is used.
80696         * posix/tst-getopt_long1.c: New file.
80697         * posix/Makefile (tests): Add tst-getopt_long1.
80698
80699         [BZ #10138]
80700         * scripts/config.guess: Update from autoconf-2.68.
80701         * scripts/config.sub: Likewise.
80702
80703         [BZ #10157]
80704         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
80705         tests into ...
80706         (has_cpuclock): ...this.  New function.
80707         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
80708         macro here based on has_cpuclock code.
80709
80710         [BZ #10149]
80711         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80712         First byte (not low byte) is now always NUL.
80713         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
80714
80715         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
80716         Use non-cancelable interfaces.
80717
80718         [BZ #9809]
80719         * locale/iso-639.def: Add entry for Sorani.
80720
80721         [BZ #11901]
80722         * include/stdlib.h: Move include protection to the right place.
80723         Define abort_msg_s.  Declare __abort_msg with it.
80724         * stdlib/abort.c (__abort_msg): Adjust type.
80725         * assert/assert.c (__assert_fail_base): New function.  Majority
80726         of code from __assert_fail.  Allocate memory for __abort_msg with
80727         mmap.
80728         (__assert_fail): Now call __assert_fail_base.
80729         * assert/assert-perr.c: Remove bulk of implementation.  Use
80730         __assert_fail_base.
80731         * include/assert.hL Declare __assert_fail_base.
80732         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
80733         mmap.
80734         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
80735
80736 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
80737
80738         [BZ #11952]
80739         [BZ #12453]
80740         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
80741         until all modules are registered in the DTV.
80742         * elf/Makefile: Add rules to build and run tst-tls19.
80743         * elf/tst-tls19.c: New file.
80744         * elf/tst-tls19mod1.c: New file.
80745         * elf/tst-tls19mod2.c: New file.
80746         * elf/tst-tls19mod3.c: New file.
80747         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
80748
80749         [BZ #12083]
80750         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
80751         correctly.
80752
80753         [BZ #12601]
80754         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
80755         two-byte sequence errors.
80756         * iconvdata/Makefile (tests): Add bug-iconv8.
80757         * iconvdata/bug-iconv8.c: New file.
80758
80759         [BZ #12626]
80760         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
80761         buf2 definition.
80762
80763         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
80764
80765         [BZ #12432]
80766         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
80767         (dummy_getcfa): New function.
80768         (init): Get _Unwind_GetCFA address, use dummy if not found.
80769         (backtrace_helper): In recursion check, also check whether CFA changes.
80770         (__backtrace): Completely initialize arg.
80771
80772         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
80773         storing incomplete byte sequence in state object.  Avoid testing for
80774         guaranteed too small input if we know there is enough data available.
80775
80776 2011-05-11  Andreas Schwab  <schwab@redhat.com>
80777
80778         * Makeconfig (+link-pie): Indent.
80779         * Rules (binaries-pie): Define if $(have-fpie) and
80780         $(build-shared).
80781         (binaries-shared): Also filter out $(binaries-pie).
80782         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
80783         * nscd/Makefile (others-pie): Add nscd.
80784         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
80785         ($(objpfx)nscd): Remove command override.
80786         * login/Makefile (others-pie): Add pt_chown.
80787         ($(objpfx)pt_chown): Remove command override.
80788         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
80789         remove command overrides.
80790
80791 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
80792
80793         * libio/tst_putwc.c: Fix error messages.
80794
80795         [BZ #12724]
80796         * libio/fileops.c (_IO_new_file_close_it): Always flush when
80797         currently writing and seek to current position when not.
80798         * libio/Makefile (tests): Add bug-fclose1.
80799         * libio/bug-fclose1.c: New file.
80800
80801 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
80802
80803         [BZ #12511]
80804         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
80805         don't set DF_1_NODELETE here.
80806         (do_lookup_x): When entering new entry test for copy relocation
80807         and if necessary set DF_1_NODELETE flag.
80808         * elf/tst-unique4.cc: New file.
80809         * elf/tst-unique4.h: New file.
80810         * elf/tst-unique4lib.cc: New file.
80811         * elf/Makefile: Add rules to build and run tst-unique4.
80812         Patch by Piotr Bury <pbury@goahead.com>.
80813
80814 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
80815
80816         [BZ #12052]
80817         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
80818
80819         [BZ #12625]
80820         * misc/mntent_r.c (addmntent): Flush the stream after the output
80821
80822         [BZ #12393]
80823         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
80824         (is_trusted_path_normalize): Skip initial colon.  Append slash
80825         to empty buffer.  Duplicate is_trusted_path code but allow
80826         constructed patch to be prefix.
80827         (is_dst): Allow $ORIGIN followed by /.
80828         (_dl_dst_substitute): Correct clearing of check_for_trusted.
80829         Correct testing of result of is_trusted_path_normalize
80830         (decompose_rpath): Fix warning.
80831
80832 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
80833
80834         [BZ #11257]
80835         * grp/initgroups.c (internal_getgrouplist): When we found the service
80836         list through the initgroups entry in nsswitch.conf do not always
80837         continue on a successful lookup.  Don't always use the
80838         __nss_group_database value if it is set.
80839         * nss/nsswitch.conf (initgroups): Change action for successful db
80840         lookup to continue for compatibility.
80841
80842 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
80843
80844         [BZ #11532]
80845         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
80846         and CP774 modules.
80847         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
80848         and CP774 modules.
80849         * iconvdata/tst-tables.sh: Likewise.
80850         * iconvdata/cp770.c: New file.
80851         * iconvdata/cp771.c: New file.
80852         * iconvdata/cp772.c: New file.
80853         * iconvdata/cp773.c: New file.
80854         * iconvdata/cp774.c: New file.
80855         * iconvdata/testdata/CP770: New file.
80856         * iconvdata/testdata/CP770..UTF8: New file.
80857         * iconvdata/testdata/CP771: New file.
80858         * iconvdata/testdata/CP771..UTF8: New file.
80859         * iconvdata/testdata/CP772: New file.
80860         * iconvdata/testdata/CP772..UTF8: New file.
80861         * iconvdata/testdata/CP773: New file.
80862         * iconvdata/testdata/CP773..UTF8: New file.
80863         * iconvdata/testdata/CP774: New file.
80864         * iconvdata/testdata/CP774..UTF8: New file.
80865
80866         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
80867         END CHARMAP line.
80868         * iconvdata/gen-8bit-gap.sh: Likewise.
80869         * iconvdata/gen-8bit.sh: Likewise.
80870
80871         * locale/iso-639.def: Add ary entry.
80872
80873         [BZ #11258]
80874         * locale/C-translit.h.in: Add U20A1 transliteration.
80875
80876         [BZ #12178]
80877         * locale/iso-639.def: Add wae entry.
80878         Patch by Kevin Bortis <bortis@translate-wae.ch>.
80879
80880         [BZ #12545]
80881         * locale/programs/localedef.c (construct_output_path): Use ssize_t
80882         for n.
80883
80884         [BZ #12711]
80885         * locale/C-translit.h.in: Add entry for U20B9.
80886         Patch by pravin.d.s@gmail.com.
80887
80888 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
80889
80890         [BZ #12713]
80891         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
80892         ENAMETOOLONG use generic getcwd.
80893         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
80894         in rtld.  Use *stat64.
80895         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
80896         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
80897         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
80898         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
80899         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
80900         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
80901         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
80902         __fstatat64 macros.
80903         * include/dirent.h: Add libc_hidden_proto for rewinddir.
80904         * dirent/rewinddir.c: Add libc_hidden_def.
80905         * sysdeps/mach/hurd/rewinddir.c: Likewise.
80906         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
80907
80908         * include/dirent.h (__alloc_dir): Add flags parameter.
80909         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
80910         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
80911         __alloc_dir.
80912         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
80913         from fdopendir if O_CLOEXEC is already set.
80914
80915 2011-03-15  Alan Modra  <amodra@gmail.com>
80916
80917         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
80918         l_tls_firstbyte_offset non-zero.  Save padding offset in
80919         l_tls_firstbyte_offset for later use.
80920         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
80921         freeing static tls block.
80922
80923 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
80924
80925         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
80926         where #ifdef was intended.  The intent is to prevent ARG_MAX from
80927         being defined by the kernel headers.
80928
80929 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
80930
80931         [BZ #12734]
80932         * resolv/resolv.h: Define RES_NOTLDQUERY.
80933         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
80934         no-tld-query and set RES_NOTLDQUERY.
80935         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
80936         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
80937         modern BIND to search name as TLD unless forbidden.
80938
80939 2011-05-07  Petr Baudis  <pasky@suse.cz>
80940             Ulrich Drepper  <drepper@gmail.com>
80941
80942         [BZ #12393]
80943         * elf/dl-load.c (fillin_rpath): Move trusted path check...
80944         (is_trusted_path): ...to here.
80945         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
80946         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
80947         using is_trusted_path_normalize() in setuid scripts.
80948
80949 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
80950
80951         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
80952         __BEGIN/__END_DECLS.
80953
80954 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
80955
80956         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
80957         NSS_STATUS_NOTFOUND if no record was found.
80958
80959 2011-05-05  Andreas Schwab  <schwab@redhat.com>
80960
80961         * sunrpc/Makefile (headers): Add rpc/netdb.h.
80962         (headers-not-in-tirpc): Remove rpc/netdb.h
80963         * resolv/netdb.h: Revert last change.
80964
80965 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
80966
80967         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
80968         circular dependency between libgcc.a and libc.a.
80969
80970 2011-05-05  Andreas Schwab  <schwab@redhat.com>
80971
80972         * resolv/netdb.h: Don't include <rpc/netdb.h>.
80973         * nis/Makefile: Don't install rpcsvc/*.
80974         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
80975         instead of <rpc/types.h>.
80976         (MAXHOSTNAMELEN): Define.
80977
80978 2011-05-03  Andreas Schwab  <schwab@redhat.com>
80979
80980         * elf/ldconfig.c (add_dir): Don't crash on empty path.
80981
80982 2011-04-28  Maciej Babinski  <mbabinski@google.com>
80983
80984         [BZ #12714]
80985         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
80986         gethostbyname4_r when IPv6 results are possible.
80987
80988 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
80989
80990         [BZ #12723]
80991         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
80992         _PC_PIPE_BUF handling.
80993
80994 2011-04-30  Bruno Haible  <bruno@clisp.org>
80995
80996         [BZ #12717]
80997         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
80998         * resolv/netdb.h (getnameinfo): Change type of flags parameter
80999         to 'int'.
81000         * inet/getnameinfo.c (getnameinfo): Likewise.
81001
81002 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
81003
81004         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
81005         to groups setting in database lookup.
81006         * nss/nsswitch.conf: Add initgroups entry.
81007
81008 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
81009
81010         [BZ #12685]
81011         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
81012         mode string.
81013         Patch by Eric Blake <eblake@redhat.com>.
81014
81015 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
81016
81017         * sunrpc/Makefile (need-export-routines): Add svc_run.
81018         (routines): Remove svc_run.
81019         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
81020         * sunrpc/clnt_perr.c (clnt_perrno): Export.
81021         * sunrpc/svc_run.c (svc_run): Likewise.
81022         * sunrpc/svc_udp.c (svcudp_create): Likewise.
81023
81024 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
81025
81026         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
81027         problem in reallocation in last patch.
81028
81029 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
81030
81031         * sunrpc/Makefile: Move inclusion of Rules.
81032
81033 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81034
81035         * nss/nss_files/files-initgroups.c: New file.
81036         * nss/Makefile (libnss_files-routines): Add files-initgroups.
81037         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
81038         _nss_files_initgroups_dyn.
81039
81040 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
81041
81042         * elf/elf.h (R_ARM_IRELATIVE): Define.
81043
81044 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
81045
81046         * po/ru.po: Update from translation team.
81047
81048 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81049
81050         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
81051         dependencies.
81052
81053 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
81054
81055         [BZ #12653]
81056         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
81057         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
81058         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
81059         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
81060         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
81061
81062 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
81063
81064         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
81065         differing bytes.
81066         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
81067         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
81068         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
81069
81070 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
81071
81072         [BZ #12420]
81073         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
81074         storing it.
81075         * stdlib/bug-getcontext.c: New file.
81076         * stdlib/Makefile: Add rules to build and run bug-getcontext.
81077
81078 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81079
81080         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
81081         instructions into .machine "z9-109".
81082         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
81083         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
81084
81085 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
81086
81087         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
81088         between environment variables and auxiliary vector.
81089
81090 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
81091
81092         * Makefile: Add rules to build linkobj/libc.so.
81093         * include/libc-symbols.h: Define libc_hidden_nolink.
81094         * include/rpc/auth.h: Mark functions which are to be hidden.
81095         * include/rpc/auth_des.h: Likewise.
81096         * include/rpc/auth_unix.h: Likewise.
81097         * include/rpc/clnt.h: Likewise.
81098         * include/rpc/des_crypt.h: Likewise.
81099         * include/rpc/key_prot.h: Likewise.
81100         * include/rpc/pmap_clnt.h: Likewise.
81101         * include/rpc/pmap_prot.h: Likewise.
81102         * include/rpc/pmap_rmt.h: Likewise.
81103         * include/rpc/rpc_msg.h: Likewise.
81104         * include/rpc/svc.h: Likewise.
81105         * include/rpc/svc_auth.h: Likewise.
81106         * include/rpc/xdr.h: Likewise.
81107         * nis/Makefile: Link all DSOs against linkobj/libc.so.
81108         * nss/Makefile: Likewise.
81109         * sunrpc/Makefile: Don't install headers.  Build library with normal
81110         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
81111         * sunrpc/auth_des.c: Hide exported symbols by default, export some
81112         for the compat linking library.  Remove use of INTDEF/INTUSE.
81113         * sunrpc/auth_none.c: Likewise.
81114         * sunrpc/auth_unix.c: Likewise.
81115         * sunrpc/authdes_prot.c: Likewise.
81116         * sunrpc/authuxprot.c: Likewise.
81117         * sunrpc/clnt_gen.c: Likewise.
81118         * sunrpc/clnt_perr.c: Likewise.
81119         * sunrpc/clnt_raw.c: Likewise.
81120         * sunrpc/clnt_simp.c: Likewise.
81121         * sunrpc/clnt_tcp.c: Likewise.
81122         * sunrpc/clnt_udp.c: Likewise.
81123         * sunrpc/clnt_unix.c: Likewise.
81124         * sunrpc/des_crypt.c: Likewise.
81125         * sunrpc/des_soft.c: Likewise.
81126         * sunrpc/get_myaddr.c: Likewise.
81127         * sunrpc/key_call.c: Likewise.
81128         * sunrpc/key_prot.c: Likewise.
81129         * sunrpc/netname.c: Likewise.
81130         * sunrpc/pm_getmaps.c: Likewise.
81131         * sunrpc/pm_getport.c: Likewise.
81132         * sunrpc/pmap_clnt.c: Likewise.
81133         * sunrpc/pmap_prot.c: Likewise.
81134         * sunrpc/pmap_prot2.c: Likewise.
81135         * sunrpc/pmap_rmt.c: Likewise.
81136         * sunrpc/publickey.c: Likewise.
81137         * sunrpc/rpc_cmsg.c: Likewise.
81138         * sunrpc/rpc_common.c: Likewise.
81139         * sunrpc/rpc_dtable.c: Likewise.
81140         * sunrpc/rpc_prot.c: Likewise.
81141         * sunrpc/rpc_thread.c: Likewise.
81142         * sunrpc/rtime.c: Likewise.
81143         * sunrpc/svc.c: Likewise.
81144         * sunrpc/svc_auth.c: Likewise.
81145         * sunrpc/svc_authux.c: Likewise.
81146         * sunrpc/svc_raw.c: Likewise.
81147         * sunrpc/svc_run.c: Likewise.
81148         * sunrpc/svc_simple.c: Likewise.
81149         * sunrpc/svc_tcp.c: Likewise.
81150         * sunrpc/svc_udp.c: Likewise.
81151         * sunrpc/svc_unix.c: Likewise.
81152         * sunrpc/svcauth_des.c: Likewise.
81153         * sunrpc/xcrypt.c: Likewise.
81154         * sunrpc/xdr.c: Likewise.
81155         * sunrpc/xdr_array.c: Likewise.
81156         * sunrpc/xdr_float.c: Likewise.
81157         * sunrpc/xdr_intXX_t.c: Likewise.
81158         * sunrpc/xdr_mem.c: Likewise.
81159         * sunrpc/xdr_rec.c: Likewise.
81160         * sunrpc/xdr_ref.c: Likewise.
81161         * sunrpc/xdr_sizeof.c: Likewise.
81162         * sunrpc/xdr_stdio.c: Likewise.
81163
81164 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
81165
81166         [BZ #12650]
81167         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
81168         * sysdeps/ia64/dl-tls.h: Likewise.
81169         * sysdeps/powerpc/dl-tls.h: Likewise.
81170         * sysdeps/s390/dl-tls.h: Likewise.
81171         * sysdeps/sh/dl-tls.h: Likewise.
81172         * sysdeps/sparc/dl-tls.h: Likewise.
81173         * sysdeps/x86_64/dl-tls.h: Likewise.
81174         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
81175
81176 2011-03-14  Andreas Schwab  <schwab@redhat.com>
81177
81178         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
81179         rpath element also skip the following colon.
81180         (expand_dynamic_string_token): Add is_path parameter and pass
81181         down to DL_DST_REQUIRED and _dl_dst_substitute.
81182         (decompose_rpath): Call expand_dynamic_string_token with
81183         non-zero is_path.  Ignore empty rpaths.
81184         (_dl_map_object_from_fd): Call expand_dynamic_string_token
81185         with zero is_path.
81186
81187 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
81188
81189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
81190         Make cancelable.
81191
81192 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
81193
81194         [BZ #12655]
81195         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
81196         Patch by Filipe David Manana <fdmanana@apache.org>.
81197
81198 2011-04-07  Andreas Schwab  <schwab@redhat.com>
81199
81200         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
81201         Maintain aligned stack.
81202         (CHECK_RSP): Remove unused macro.
81203
81204 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
81205
81206         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
81207         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
81208
81209 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
81210
81211         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
81212
81213         * include/features.h: Mention __USE_XOPEN2K8 in comment.
81214
81215 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
81216
81217         [BZ #12518]
81218         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
81219         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
81220         * sysdeps/x86_64/memmove.c: New file.
81221         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
81222         (memcpy): Renamed to ...
81223         (__new_memcpy): This.
81224         (memcpy): Provide GLIBC_2_14 memcpy.
81225         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
81226         (memcpy): Provide GLIBC_2_2_5 memcpy.
81227
81228 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81229
81230         [BZ #12631]
81231         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
81232
81233 2011-03-30  Andreas Schwab  <schwab@redhat.com>
81234
81235         * misc/syncfs.c: New file.
81236         * misc/Makefile (routines): Add syncfs.
81237         * posix/unistd.h: Declare syncfs.
81238         * sysdeps/unix/syscalls.list: Add syncfs.
81239
81240 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81241
81242         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
81243         open_by_handle_at.
81244         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
81245         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81246         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81247         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81249         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
81250         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81251
81252 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81253
81254         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
81255         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81256         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
81257         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81258         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81259         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81260         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81261
81262         * io/Makefile: Compile fallocate.c, fallocate64.c, and
81263         sync_file_range.c with -fexceptions.
81264         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
81265         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
81266         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
81267         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
81268         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
81269         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
81270         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
81271         sync_file_range as cancellation point
81272         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
81273         now a wrapper around __call_sync_file_range with cancellation handling.
81274         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
81275         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
81276         function name to __call_sync_file_range.
81277         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
81278         Add call_sync_file_range.
81279
81280 2011-04-01  Andreas Schwab  <schwab@redhat.com>
81281
81282         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81283         bits/timex.h.
81284
81285 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
81286
81287         * iconv/iconv.h: Fix typo in comment.
81288         * io/fcntl.h: Likewise.
81289         * libio/stdio.h: Likewise.
81290         * posix/spawn.h: Likewise.
81291         * posix/unistd.h: Likewise.
81292         * stdlib/stdlib.h: Likewise.
81293         * time/time.h: Likewise.
81294         * wcsmbs/wchar.h: Likewise.
81295
81296         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
81297         open_by_handle): Add.
81298         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
81299         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
81300         Augment a few comments.
81301         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
81302         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
81303         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
81304         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
81305         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
81306         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
81307         open_by_handle.
81308
81309         * io/fcntl.h (AT_EMPTY_PATH): Define.
81310
81311 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
81312
81313         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
81314         * sysdeps/unix/sysv/linux/bits/time.h: New file.
81315         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
81316         to...
81317         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
81318         * Versions.def: Add GLIBC_2.14.
81319         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
81320         Export.
81321
81322 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
81323
81324         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
81325         round counter.
81326         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81327
81328 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
81329
81330         [BZ #12597]
81331         * string/test-strncmp.c (do_page_test): New function.
81332         (check2): Likewise.
81333         (test_main): Call check2.
81334         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
81335
81336 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
81337
81338         [BZ #12587]
81339         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
81340         Handle cache information in CPU leaf 4.
81341         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
81342
81343 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
81344
81345         [BZ #12583]
81346         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
81347         character representation.
81348         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
81349
81350 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
81351
81352         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
81353         END(__isnan) to END(__isnanf) to match function entry point/label
81354         EALIGN(__isnanf,...).
81355
81356 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
81357
81358         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
81359
81360 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
81361
81362         [BZ #12510]
81363         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
81364         copy from the symbol referenced in the relocation to initialize the
81365         used variable.
81366         Patch by Piotr Bury <pbury@goahead.com>.
81367         * elf/Makefile: Add rules to build and tst-unique3.
81368         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
81369         * elf/tst-unique3.cc: New file.
81370         * elf/tst-unique3.h: New file.
81371         * elf/tst-unique3lib.cc: New file.
81372         * elf/tst-unique3lib2.cc: New file.
81373
81374         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
81375
81376 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
81377
81378         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
81379         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
81380         to _start.
81381
81382 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
81383
81384         * elf/dl-load.c (_dl_map_object): If we are looking for the first
81385         to-be-loaded object along a path to loader is ld.so.
81386
81387 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81388             Ulrich Drepper  <drepper@gmail.com>
81389
81390         * sysdeps/x86_64/memset.S: After aligning destination, code
81391         branches to different locations depending on the value of
81392         misalignment, when multiarch is enabled. Fix this.
81393
81394 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
81395
81396         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
81397         Set _x86_64_preferred_memory_instruction for AMD processsors.
81398         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81399         Set bit_Prefer_SSE_for_memop for AMD processors.
81400
81401 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
81402
81403         * libio/fmemopen.c (fmemopen): Optimize a bit.
81404
81405 2011-03-03  Andreas Schwab  <schwab@redhat.com>
81406
81407         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
81408
81409 2011-03-03  Roland McGrath  <roland@redhat.com>
81410
81411         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
81412
81413 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
81414
81415         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
81416         __bzero_ultra1 instead of __memset_ultra1.
81417
81418 2011-02-23  Andreas Schwab  <schwab@redhat.com>
81419             Ulrich Drepper  <drepper@gmail.com>
81420
81421         [BZ #12509]
81422         * include/link.h (struct link_map): Add l_orig_initfini.
81423         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
81424         returning unsuccessfully.
81425         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
81426         close of a file loaded at startup, restore the original l_initfini
81427         list.
81428         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
81429         list, store the pointer.
81430         * elf/Makefile ($(objpfx)noload-mem): New rule.
81431         (noload-ENV): Define.
81432         (tests): Add $(objpfx)noload-mem.
81433         * elf/noload.c: Include <memcheck.h>.
81434         (main): Call mtrace.  Close all opened handles.
81435
81436 2011-02-17  Andreas Schwab  <schwab@redhat.com>
81437
81438         [BZ #12454]
81439         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
81440         dependencies are missing.
81441
81442 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81443
81444         Fix __if_freereq crash: Unlike the generic version which uses free,
81445         Hurd needs munmap.
81446         * sysdeps/mach/hurd/ifreq.h: New file.
81447
81448 2011-01-27  Petr Baudis  <pasky@suse.cz>
81449             Ulrich Drepper  <drepper@gmail.com>
81450
81451         [BZ 12445]#
81452         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
81453         to extend_alloca().
81454         * stdio-common/bug23.c: New file.
81455         * stdio-common/Makefile (tests): Add bug23.
81456
81457 2010-09-28  Andreas Schwab  <schwab@redhat.com>
81458             Ulrich Drepper  <drepper@gmail.com>
81459
81460         [BZ #12489]
81461         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
81462         before performing relro protection.  At old place add assertion
81463         to make sure nothing changed.
81464
81465 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
81466             Glauber de Oliveira Costa  <glommer@gmail.com>
81467
81468         * elf/elf.h: Add new ARM TLS relocs.
81469
81470 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
81471
81472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
81473         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
81474         cast from r3.
81475         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
81476         'tests' variable.
81477         * sysdeps/wordsize-64/tst-writev.c: New file.
81478
81479 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
81480
81481         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
81482         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
81483         insns in _dl_start to prevent a TOC reference before relocs are
81484         resolved.
81485
81486 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
81487
81488         [BZ #12469]
81489         * Makeconfig: Remove RANLIB definition.
81490         * Makerules: Don't use RANLIB.
81491         * aclocal.m4: Remove ranlib test.
81492         * configure.in: No need to check for ranlib.
81493         * elf/rtld-Rules: Don't use RANLIB.
81494
81495 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81496
81497         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
81498         protection macro.
81499         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
81500         inclusion protection macro.
81501
81502         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
81503         SIGRTMIN and SIGRTMAX and print information in that case only when
81504         SIGRTMIN is defined.
81505
81506 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
81507
81508         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
81509         arginfo fn returning -1.
81510
81511         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
81512         and thousands string is zero terminated.
81513
81514 2011-02-03  Andreas Schwab  <schwab@redhat.com>
81515
81516         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
81517         sysdeps/unix/sysv/linux/bits/socket.h.
81518
81519 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
81520
81521         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
81522         (__CPU_COUNT): Remove old macros.
81523         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
81524         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
81525         (__CPU_ALLOC, __CPU_FREE): Add macros.
81526         (__sched_cpualloc, __sched_cpufree): Add declarations.
81527
81528 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
81529
81530         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
81531         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
81532         * nscd/aicache.c (addhstaiX): Return timeout of added value.
81533         (readdhstai): Return value of addhstaiX call.
81534         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
81535         (addgrbyX): Return value returned by cache_addgr.
81536         (readdgrbyname): Return value returned by addgrbyX.
81537         (readdgrbygid): Likewise.
81538         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
81539         (addpwbyX): Return value returned by cache_addpw.
81540         (readdpwbyname): Return value returned by addhstbyX.
81541         (readdpwbyuid): Likewise.
81542         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
81543         (addservbyX): Return value returned by cache_addserv.
81544         (readdservbyname): Return value returned by addservbyX:
81545         (readdservbyport): Likewise.
81546         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
81547         (addhstbyX): Return value returned by cache_addhst.
81548         (readdhstbyname): Return value returned by addhstbyX.
81549         (readdhstbyaddr): Likewise.
81550         (readdhstbynamev6): Likewise.
81551         (readdhstbyaddrv6): Likewise.
81552         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
81553         (readdinitgroups): Return value returned by addinitgroupsX.
81554         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
81555         (prune_cache): Keep track of timeout value of re-added entries.
81556         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
81557         * nscd/nscd.h: Adjust prototypes of readd* functions.
81558
81559 2011-02-04  Roland McGrath  <roland@redhat.com>
81560
81561         * nis/nis_server.c (nis_servstate): Use the right name for 0.
81562         (nis_stats): Likewise.
81563         * nis/nis_modify.c (nis_modify): Likewise.
81564         * nis/nis_remove.c (nis_remove): Likewise.
81565         * nis/nis_add.c (nis_add): Likewise.
81566
81567         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
81568
81569         * posix/fnmatch_loop.c: Add some consts.
81570
81571         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
81572
81573 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
81574
81575         [BZ #12460]
81576         * config.make.in (config-cflags-novzeroupper): Define.
81577         * configure.in: Substitute libc_cv_cc_novzeroupper.
81578         * elf/Makefile (AVX-CFLAGS): Define.
81579         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
81580         (CFLAGS-tst-auditmod4a.c): Likewise.
81581         (CFLAGS-tst-auditmod4b.c): Likewise.
81582         (CFLAGS-tst-auditmod6b.c): Likewise.
81583         (CFLAGS-tst-auditmod6c.c): Likewise.
81584         (CFLAGS-tst-auditmod7b.c): Likewise.
81585         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
81586
81587 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
81588
81589         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
81590         function to the callback.
81591         Patch partly by Jiri Olsa <jolsa@redhat.com>.
81592
81593 2011-02-02  Andreas Schwab  <schwab@redhat.com>
81594
81595         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
81596         of errno.
81597
81598 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
81599
81600         [BZ #11724]
81601         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
81602         of constructors.
81603         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
81604         of destructors.
81605         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
81606
81607         [BZ #11724]
81608         * elf/Makefile: Add rules to build and run new test.
81609         * elf/tst-initorder.c: New file.
81610         * elf/tst-initorder.exp: New file.
81611         * elf/tst-initordera1.c: New file.
81612         * elf/tst-initordera2.c: New file.
81613         * elf/tst-initordera3.c: New file.
81614         * elf/tst-initordera4.c: New file.
81615         * elf/tst-initorderb1.c: New file.
81616         * elf/tst-initorderb2.c: New file.
81617         * elf/tst-order-a1.c: New file.
81618         * elf/tst-order-a2.c: New file.
81619         * elf/tst-order-a3.c: New file.
81620         * elf/tst-order-a4.c: New file.
81621         * elf/tst-order-b1.c: New file.
81622         * elf/tst-order-b2.c: New file.
81623         * elf/tst-order-main.c: New file.
81624         New test case by George Gensure <werkt0@gmail.com>.
81625
81626 2010-10-01  Andreas Schwab  <schwab@redhat.com>
81627
81628         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
81629         decoding ACE if AI_CANONIDN.
81630
81631 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
81632
81633         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
81634
81635 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
81636
81637         * version.h (RELEASE): Bump for 2.13 release.
81638         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
81639
81640         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
81641
81642         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
81643         MADV_NOHUGEPAGE.
81644         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
81645         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
81646         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
81647         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
81648         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
81649         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81650
81651         * posix/getconf.c: Update copyright year.
81652         * catgets/gencat.c: Likewise.
81653         * csu/version.c: Likewise.
81654         * debug/catchsegv.sh: Likewise.
81655         * debug/xtrace.sh: Likewise.
81656         * elf/ldconfig.c: Likewise.
81657         * elf/ldd.bash.in: Likewise.
81658         * elf/sprof.c (print_version): Likewise.
81659         * iconv/iconv_prog.c: Likewise.
81660         * iconv/iconvconfig.c: Likewise.
81661         * locale/programs/locale.c: Likewise.
81662         * locale/programs/localedef.c: Likewise.
81663         * malloc/memusage.sh: Likewise.
81664         * malloc/mtrace.pl: Likewise.
81665         * nscd/nscd.c (print_version): Likewise.
81666         * nss/getent.c: Likewise.
81667
81668         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
81669         PF_CAIF, and PF_ALG.
81670         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
81671
81672 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
81673
81674         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
81675         (modules-names): Use them.
81676         (ifunc-test-modules, ifunc-pie-tests): Define.
81677         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
81678         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
81679         (test-extras): Likewise.
81680         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
81681         $(compile-command.c).
81682         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
81683         (all-built-dso): Define.
81684         (check-textrel.out, check-execstack.out): Depend on it.
81685
81686         * configure.in: Don't override --enable-multi-arch.
81687
81688 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
81689
81690         [BZ #6812]
81691         * nscd/hstcache.c (tryagain): Define.
81692         (cache_addhst): Return tryagain not notfound for temporary errors.
81693         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
81694         failed.
81695
81696 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
81697
81698         [BZ #10563]
81699         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
81700         to make the syscall.
81701         * sysdeps/unix/sysv/linux/setgroups.c: New file.
81702
81703         [BZ #12378]
81704         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
81705         and fall back to matching as normal character if the string ends before
81706         the matching ']' is found.  This is what POSIX requires.
81707         * posix/testfnm.c: Adjust test result.
81708         * posix/globtest.sh: Adjust test result.  Add new test.
81709         * posix/tst-fnmatch.input: Likewise.
81710         * posix/tst-fnmatch2.c: Add new test.
81711
81712 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
81713
81714         * elf/Makefile (check-execstack): Revert last change.  Depend on
81715         check-execstack.h.
81716         (check-execstack.h): New target.
81717         (generated): Add check-execstack.h.
81718         * elf/check-execstack.c: Include "check-execstack.h".
81719         (main): Revert last change.
81720         (handle_file): Return zero if GNU_STACK is absent and
81721         DEFAULT_STACK_PERMS doesn't include PF_X.
81722
81723 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
81724
81725         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
81726         in child fails because the descriptor is already closed.
81727         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
81728         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
81729         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
81730
81731         [BZ #12397]
81732         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
81733         syscall.
81734
81735         [BZ #10484]
81736         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
81737         temporary buffer used to handle multi lookups locally.
81738         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
81739
81740 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81741
81742         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
81743         loader is ld.so.
81744
81745 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
81746
81747         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
81748         alignment for SSE2.
81749
81750 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
81751
81752         [BZ #12394]
81753         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
81754         characters.  When rounding increased number of integer digits recompute
81755         number of groups.
81756         * stdio-common/tst-grouping.c: New file.
81757         * stdio-common/Makefile: Add rules to build and run tst-grouping.
81758
81759 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
81760
81761         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
81762         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
81763
81764         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
81765         void.
81766         * bits/select.h: Likewise.
81767
81768 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
81769
81770         * po/ja.po: Update from translation team.
81771
81772 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
81773
81774         [BZ #11155]
81775         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
81776         implementation just like for lxstat, fxstatat, et al.
81777
81778 2010-12-27  Jim Meyering  <meyering@redhat.com>
81779
81780         [BZ #12348]
81781         * posix/regexec.c (build_trtable): Return failure indication upon
81782         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
81783
81784 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
81785
81786         [BZ #12201]
81787         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
81788         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
81789         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
81790         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
81791
81792         [BZ #12207]
81793         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
81794
81795         [BZ #12204]
81796         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
81797         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
81798
81799 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
81800
81801         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
81802         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
81803         script has SORT_BY_INIT_PRIORITY.
81804         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
81805         NO_CTORS_DTORS_SECTIONS is defined.
81806         * elf/soinit.c: Likewise.
81807         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
81808         NO_CTORS_DTORS_SECTIONS is defined.
81809         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
81810         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
81811         * sysdeps/sh/init-first.c: Likewise.
81812         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
81813
81814 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
81815
81816         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
81817         always use the slow path.
81818
81819 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
81820
81821         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
81822         similar rule which adds the sysdep directories to the header search in
81823         order to pick up the correct platform stackinfo.h.
81824         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
81825         perform test if it is, otherwise return successfully without testing.
81826         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
81827         DEFAULT_STACK_PERMS define in stackinfo.h.
81828         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
81829         defined in stackinfo.h.
81830         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
81831         DEFAULT_STACK_PERMS defined in stackinfo.h.
81832         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
81833         * sysdeps/ia64/stackinfo.h: Likewise.
81834         * sysdeps/s390/stackinfo.h: Likewise.
81835         * sysdeps/sh/stackinfo.h: Likewise.
81836         * sysdeps/sparc/stackinfo.h: Likewise.
81837         * sysdeps/x86_64/stackinfo.h: Likewise.
81838         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
81839         PF_X for powerpc64.  Retain PF_X for powerpc32.
81840
81841 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
81842
81843         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
81844         accurately.
81845         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
81846         GETDENTS_64BIT_ALIGNED.
81847
81848 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
81849
81850         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
81851
81852 2010-12-10  Andreas Schwab  <schwab@redhat.com>
81853
81854         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
81855         _GNU_SOURCE.
81856
81857         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
81858         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
81859         Remove __restrict.
81860         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
81861         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
81862
81863 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
81864
81865         [BZ #11655]
81866         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
81867         are initialized.
81868
81869 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
81870
81871         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
81872
81873 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
81874
81875         * po/it.po: Update from translation team.
81876
81877 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
81878
81879         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
81880         unused codes.
81881
81882 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
81883
81884         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
81885
81886 2010-11-24  Andreas Schwab  <schwab@redhat.com>
81887
81888         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
81889         specially.
81890         (gaih_getanswer_slice): Likewise.
81891
81892 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
81893
81894         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
81895
81896 2010-05-31  Petr Baudis  <pasky@suse.cz>
81897
81898         [BZ #11149]
81899         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
81900         silently even in the chroot mode.
81901
81902 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
81903
81904         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
81905         last patch a bit.  Pretty printing
81906
81907 2010-05-31  Petr Baudis <pasky@suse.cz>
81908
81909         [BZ #10085]
81910         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
81911         initialization of skip_initgroups_dyn.
81912
81913 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
81914
81915         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
81916         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
81917
81918 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
81919
81920         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
81921
81922 2010-11-11  Andreas Schwab  <schwab@redhat.com>
81923
81924         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
81925         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
81926         (tst-fnmatch-ENV): Set MALLOC_TRACE.
81927         ($(objpfx)tst-fnmatch-mem): New rule.
81928         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
81929         * posix/tst-fnmatch.c (main): Call mtrace.
81930
81931 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
81932
81933         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81934         Support Intel processor model 6 and model 0x2c.
81935
81936 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
81937
81938         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
81939           signed comparison.
81940
81941 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
81942
81943         [BZ #12205]
81944         * string/test-strncasecmp.c (check_result): New function.
81945         (do_one_test): Use it.
81946         (check1): New function.
81947         (test_main): Use it.
81948         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
81949         Support strcasecmp and strncasecmp.
81950
81951 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
81952
81953         [BZ #12194]
81954         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
81955         * sysdeps/x86_64/bits/byteswap.h: Likewise.
81956
81957 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
81958
81959         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
81960         IFUNC support.
81961         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
81962         memset-x86-64.
81963         * sysdeps/x86_64/multiarch/bzero.S: New file.
81964         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
81965         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
81966         * sysdeps/x86_64/multiarch/memset.S: New file.
81967         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
81968         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
81969         Set bit_Prefer_SSE_for_memop for Intel processors.
81970         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
81971         Define.
81972         (index_Prefer_SSE_for_memop): Define.
81973         (HAS_PREFER_SSE_FOR_MEMOP): Define.
81974
81975 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
81976
81977         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
81978         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
81979
81980 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
81981
81982         [BZ #12191]
81983         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
81984         (__x86_64_raw_data_cache_size_half): Likewise.
81985         (__x86_64_raw_shared_cache_size): Likewise.
81986         (__x86_64_raw_shared_cache_size_half): Likewise.
81987
81988         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
81989         (__x86_64_raw_data_cache_size_half): Likewise.
81990         (__x86_64_raw_shared_cache_size): Likewise.
81991         (__x86_64_raw_shared_cache_size_half): Likewise.
81992         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
81993         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
81994         and __x86_64_raw_shared_cache_size_half.  Round
81995         __x86_64_data_cache_size_half, __x86_64_data_cache_size
81996         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
81997         to multiple of 256 bytes.
81998
81999 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
82000
82001         [BZ #12167]
82002         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
82003         of inacessible symlinks.  Verify result of symlink before returning it.
82004         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
82005         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
82006
82007 2010-10-28  Erich Ritz  <erichritz@gmail.com>
82008
82009         * math/math.h (isinf): Fix typo in comment.
82010
82011 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
82012
82013         * po/da.po: Update from translation team.
82014
82015 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
82016
82017         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
82018         is added to the list.
82019
82020 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82021             Ulrich Drepper  <drepper@gmail.com>
82022
82023         * elf/dl-object.c (_dl_new_object): Don't append the new object to
82024         the global list here.  Move code to...
82025         (_dl_add_to_namespace_list): ...here.  New function.
82026         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
82027         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
82028         * elf/dl-load.c (lose): Don't remove the element from the list.
82029         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
82030         (_dl_map_object): Likewise.
82031
82032 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
82033
82034         [BZ #12159]
82035         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
82036         into all bytes of SSE register.
82037         Patch by Richard Li <richardpku@gmail.com>.
82038
82039 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
82040
82041         [BZ #12140]
82042         * malloc/malloc.c (_int_free): Fill correct number of bytes when
82043         perturbing.
82044
82045 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
82046
82047         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
82048         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
82049         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
82050         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
82051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
82052         submachine.
82053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
82054
82055 2010-10-22  Andreas Schwab  <schwab@redhat.com>
82056
82057         * include/dlfcn.h (__RTLD_SECURE): Define.
82058         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
82059         mode & __RTLD_SECURE instead.
82060         (open_path): Rename preloaded parameter to secure.
82061         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
82062         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
82063         * elf/dl-deps.c (openaux): Likewise.
82064         * elf/rtld.c (struct map_args): Remove is_preloaded.
82065         (map_doit): Don't use it.
82066         (dl_main): Likewise.
82067         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
82068         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
82069
82070 2010-09-09  Andreas Schwab  <schwab@redhat.com>
82071
82072         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
82073         (sysd-rules-targets): Remove duplicates.
82074         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
82075         rtld-%.$o dependency.
82076
82077 2010-10-18  Andreas Schwab  <schwab@redhat.com>
82078
82079         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
82080         _dl_map_object do it.
82081
82082 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
82083
82084         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
82085         fast fma builtins, define the macros in the C99 standard.
82086         (FP_FAST_FMAF): Likewise.
82087         (FP_FAST_FMAL): Likewise.
82088         * sysdeps/x86_64/bits/mathdef.h: Likewise.
82089
82090         * bits/mathdef.h: Update copyright year.
82091         * sysdeps/powerpc/bits/mathdef.h: Likewise.
82092
82093 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
82094
82095         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
82096         builtins, define the macros in the C99 standard.
82097         (FP_FAST_FMAF): Likewise.
82098         (FP_FAST_FMAL): Likewise.
82099         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
82100         multiply/add.
82101         (FP_FAST_FMAF): Likewise.
82102
82103 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
82104
82105         [BZ #3268]
82106         * math/libm-test.inc (fma_test): Some new testcases.
82107         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
82108         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
82109         y and infinite z.  Do multiplication by C already in long double.
82110         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
82111         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
82112         y and infinite z.  Do bitwise or of inexact bit into u.d.
82113         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
82114         * sysdeps/i386/fpu/s_fmaf.S: Removed.
82115         * sysdeps/i386/fpu/s_fma.S: Removed.
82116         * sysdeps/i386/fpu/s_fmal.S: Removed.
82117
82118 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
82119
82120         [BZ #3268]
82121         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
82122         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
82123         computation is not scheduled after fetestexcept.  Fix value
82124         of minimum denormal long double.
82125
82126 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
82127
82128         [BZ #3268]
82129         * math/libm-test.inc (fma_test): Add some more tests.
82130         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
82131         correctly.
82132
82133 2010-10-15  Andreas Schwab  <schwab@redhat.com>
82134
82135         * scripts/data/localplt-s390-linux-gnu.data: New file.
82136         * scripts/data/localplt-s390x-linux-gnu.data: New file.
82137
82138 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
82139
82140         [BZ #3268]
82141         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
82142         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
82143         instead of dbl-64.
82144         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
82145         inlines.
82146         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
82147         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
82148         if one of x and y is very large and the other is subnormal.
82149         * sysdeps/s390/fpu/s_fmaf.c: New file.
82150         * sysdeps/s390/fpu/s_fma.c: New file.
82151         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
82152         * sysdeps/powerpc/fpu/s_fma.S: New file.
82153         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
82154         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
82155         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
82156
82157 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
82158
82159         [BZ #3268]
82160         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
82161         fma tests.
82162         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
82163         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
82164         * sysdeps/i386/i686/multiarch/s_fma.c: Include
82165         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
82166         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
82167         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
82168         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
82169
82170 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
82171
82172         [BZ #12078]
82173         * posix/regcomp.c (parse_branch): One more memory leak plugged.
82174         * posix/bug-regex31.input: Add test case.
82175
82176 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82177
82178         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
82179         * posix/bug-regex31.input: New file.
82180
82181         [BZ #12078]
82182         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
82183         (parse_sub_exp): Fix last change, use postorder.
82184
82185         * posix/bug-regex31.c: New file.
82186         * posix/Makefile: Add rules to build and run bug-regex31.
82187
82188         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
82189
82190         [BZ #12078]
82191         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
82192
82193         [BZ #12108]
82194         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
82195         to have entries in sys_siglist.
82196
82197         [BZ #12093]
82198         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
82199         be NULL.
82200
82201 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
82202
82203         [BZ #3268]
82204         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
82205         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
82206         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
82207         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
82208         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
82209         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
82210         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
82211         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
82212         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
82213         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
82214         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
82215         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
82216         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
82217         * math/ftestexcept.c (fetestexcept): Likewise.
82218         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
82219         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
82220         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
82221         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
82222         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
82223         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
82224         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
82225
82226 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
82227
82228         [BZ #12107]
82229         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
82230         newline.
82231
82232 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
82233
82234         * string/bug-strstr1.c: New file.
82235         * string/Makefile: Add rules to build and run bug-strstr1.
82236
82237 2010-10-05  Eric Blake  <eblake@redhat.com>
82238
82239         [BZ #12092]
82240         * string/str-two-way.h (two_way_long_needle): Always clear memory
82241         when skipping input due to the shift table.
82242
82243 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
82244
82245         [BZ #12005]
82246         * malloc/mcheck.c: Handle large requests.
82247
82248         [BZ #12077]
82249         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
82250         for strncmp and strncasecmp.
82251         * string/stratcliff.c: Add tests for strcmp and strncmp.
82252         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
82253
82254 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
82255
82256         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
82257         __set_fpscr.
82258
82259 2010-09-30  Andreas Jaeger  <aj@suse.de>
82260
82261         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
82262         (CGROUP_SUPER_MAGIC): Define.
82263         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82264         Handle btrfs and cgroup file systems.
82265         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
82266         Likewise.
82267
82268 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
82269
82270         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
82271         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
82272
82273 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
82274
82275         [BZ #12067]
82276         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
82277         trying to locate the ELF header.
82278
82279 2010-09-27  Andreas Schwab  <schwab@redhat.com>
82280
82281         [BZ #11611]
82282         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
82283         Mask out sign-bit copies when constructing f_fsid.
82284
82285 2010-09-24  Petr Baudis <pasky@suse.cz>
82286
82287         * debug/stack_chk_fail_local.c: Add missing licence exception.
82288         * debug/warning-nop.c: Likewise.
82289
82290 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
82291
82292         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
82293         implementing getdents64 using getdents syscall, set d_type if
82294         __ASSUME_GETDENTS32_D_TYPE.
82295
82296 2010-09-16  Andreas Schwab  <schwab@redhat.com>
82297
82298         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
82299         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
82300
82301 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
82302
82303         [BZ #12037]
82304         * posix/unistd.h: Undo change of feature selection for ftruncate from
82305         2010-01-11.
82306
82307 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
82308
82309         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
82310         detection.
82311
82312 2010-09-20  Andreas Schwab  <schwab@redhat.com>
82313
82314         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
82315         fanotify_mark.
82316         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82317
82318 2010-09-14  Andreas Schwab  <schwab@redhat.com>
82319
82320         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
82321         variables after CHECK_SP call.
82322         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
82323
82324 2010-09-13  Andreas Schwab  <schwab@redhat.com>
82325             Ulrich Drepper  <drepper@redhat.com>
82326
82327         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
82328         re-relocationg ld.so.
82329         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
82330         _dl_init_paths call.
82331         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
82332         here anymore.
82333
82334 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
82335
82336         * resolv/res_init.c (__res_vinit): Count the default server we added.
82337
82338 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
82339             Ulrich Drepper  <drepper@redhat.com>
82340
82341         [BZ #11968]
82342         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
82343         (____longjmp_chk): Use %ebx for saving value across system call.
82344         Add unwind info.
82345
82346 2010-09-06  Andreas Schwab  <schwab@redhat.com>
82347
82348         * manual/Makefile: Don't mix pattern rules with normal rules.
82349
82350 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
82351
82352         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
82353         operation.
82354         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
82355         * libio/iofopncook.c (_IO_cookie_init): Likewise.
82356         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
82357         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
82358         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
82359         Likewise.
82360
82361 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
82362
82363         [BZ #11979]
82364         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
82365         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
82366
82367 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
82368
82369         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
82370         * sysdeps/x86_64/addmul_1.S: Likewise.
82371         * sysdeps/x86_64/lshift.S: Likewise.
82372         * sysdeps/x86_64/mul_1.S: Likewise.
82373         * sysdeps/x86_64/rshift.S: Likewise.
82374         * sysdeps/x86_64/sub_n.S: Likewise.
82375         * sysdeps/x86_64/submul_1.S: Likewise.
82376
82377 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82378
82379         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
82380         Define __sched_param instead of SCHED_* and sched_param when
82381         <bits/sched.h> is included with __need_schedparam defined.
82382         * bits/sched.h [__need_schedparam]
82383         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
82384         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
82385         (__defined_schedparam): Define to 1.
82386         (__sched_param): New structure, identical to sched_param.
82387         (__need_schedparam): Undefine.
82388
82389 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
82390
82391         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
82392         (epoll_create1): Declare.
82393
82394         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
82395
82396 2010-08-31  Andreas Schwab  <schwab@redhat.com>
82397
82398         [BZ #7066]
82399         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
82400         shifting retval into place.
82401
82402 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
82403
82404         * nis/rpcsvc/nis.h: Update copyright notice.
82405         * nis/rpcsvc/nis.x: Likewise.
82406         * nis/rpcsvc/nis_callback.h: Likewise.
82407         * nis/rpcsvc/nis_callback.x: Likewise.
82408         * nis/rpcsvc/nis_object.x: Likewise.
82409         * nis/rpcsvc/nis_tags.h: Likewise.
82410         * nis/rpcsvc/yp.h: Likewise.
82411         * nis/rpcsvc/yp.x: Likewise.
82412         * nis/rpcsvc/ypupd.h: Likewise.
82413         * nis/yp_xdr.c: Likewise.
82414         * nis/ypupdate_xdr.c: Likewise.
82415
82416         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
82417         mainly the body of pmap_getport.  Add parameters to specify timeouts.
82418         (pmap_getport): Use __libc_rpc_getport.
82419         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
82420         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
82421         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
82422
82423 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
82424
82425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
82426         fanotify_mark.
82427
82428 2010-08-27  Roland McGrath  <roland@redhat.com>
82429
82430         * sysdeps/i386/i686/multiarch/Makefile
82431         (CFLAGS-varshift.c): New variable.
82432
82433 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
82434
82435         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
82436         * sysdeps/i386/i686/multiarch/varshift.c: New file.
82437
82438         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
82439
82440         * sysdeps/x86_64/strlen.S: Minimal code improvement.
82441
82442 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
82443
82444         * sysdeps/x86_64/strlen.S: Unroll the loop.
82445         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
82446         strlen-sse2 strlen-sse2-bsf.
82447         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
82448         __strlen_no_bsf if bit_Slow_BSF is set.
82449         (__strlen_sse42): Removed.
82450         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
82451         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
82452
82453 2010-08-25  Roland McGrath  <roland@redhat.com>
82454
82455         * sysdeps/x86_64/multiarch/varshift.S: File removed.
82456         * sysdeps/x86_64/multiarch/varshift.c: New file.
82457         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
82458         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
82459         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
82460         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
82461
82462 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
82463
82464         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82465         strlen-sse2 strlen-sse2-bsf.
82466         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
82467         __strlen_sse2_bsf if bit_Slow_BSF is unset.
82468         (__strlen_sse2): Removed.
82469         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
82470         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
82471         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
82472         bit_Slow_BSF for Atom.
82473         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
82474         (index_Slow_BSF): Define.
82475         (HAS_SLOW_BSF): Define.
82476
82477 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
82478
82479         [BZ #10851]
82480         * resolv/res_init.c (__res_vinit): When no server address at all
82481         is given default to loopback.
82482
82483 2010-08-24  Roland McGrath  <roland@redhat.com>
82484
82485         * configure.in: Remove config-name.h generation.
82486         * configure: Regenerated.
82487         * config-name.in: File removed.
82488         * scripts/config-uname.sh: New file.
82489         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
82490         ($(objdir)config-name.h): New target.
82491
82492         * sunrpc/rpc_parse.h: Avoid nested comment.
82493
82494 2010-08-24  Richard Henderson  <rth@redhat.com>
82495             Ulrich Drepper  <drepper@redhat.com>
82496             H.J. Lu  <hongjiu.lu@intel.com>
82497
82498         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
82499         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
82500         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
82501         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
82502         _mm_alignr_epi8 with _mm_loadu_si128.
82503         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
82504         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
82505         (__m128i_shift_right): Removed.
82506         * sysdeps/i386/i686/multiarch/varshift.h: New file.
82507         * sysdeps/i386/i686/multiarch/varshift.S: New file.
82508         * sysdeps/x86_64/multiarch/varshift.h: New file.
82509         * sysdeps/x86_64/multiarch/varshift.S: New file.
82510
82511 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
82512
82513         * configure.in: Move assembler checks to before sysdep dir checking.
82514
82515 2010-08-20  Petr Baudis  <pasky@suse.cz>
82516
82517         * LICENSES: Sync the sunrpc license.
82518
82519 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
82520
82521         * sunrpc/auth_des.c: Update copyright notice once again.
82522         * sunrpc/auth_none.c: Likewise.
82523         * sunrpc/auth_unix.c: Likewise.
82524         * sunrpc/authdes_prot.c: Likewise.
82525         * sunrpc/authuxprot.c: Likewise.
82526         * sunrpc/bindrsvprt.c: Likewise.
82527         * sunrpc/clnt_gen.c: Likewise.
82528         * sunrpc/clnt_perr.c: Likewise.
82529         * sunrpc/clnt_raw.c: Likewise.
82530         * sunrpc/clnt_simp.c: Likewise.
82531         * sunrpc/clnt_tcp.c: Likewise.
82532         * sunrpc/clnt_udp.c: Likewise.
82533         * sunrpc/clnt_unix.c: Likewise.
82534         * sunrpc/des_crypt.c: Likewise.
82535         * sunrpc/des_soft.c: Likewise.
82536         * sunrpc/get_myaddr.c: Likewise.
82537         * sunrpc/getrpcport.c: Likewise.
82538         * sunrpc/key_call.c: Likewise.
82539         * sunrpc/key_prot.c: Likewise.
82540         * sunrpc/openchild.c: Likewise.
82541         * sunrpc/pm_getmaps.c: Likewise.
82542         * sunrpc/pm_getport.c: Likewise.
82543         * sunrpc/pmap_clnt.c: Likewise.
82544         * sunrpc/pmap_prot.c: Likewise.
82545         * sunrpc/pmap_prot2.c: Likewise.
82546         * sunrpc/pmap_rmt.c: Likewise.
82547         * sunrpc/rpc/auth.h: Likewise.
82548         * sunrpc/rpc/auth_unix.h: Likewise.
82549         * sunrpc/rpc/clnt.h: Likewise.
82550         * sunrpc/rpc/des_crypt.h: Likewise.
82551         * sunrpc/rpc/key_prot.h: Likewise.
82552         * sunrpc/rpc/netdb.h: Likewise.
82553         * sunrpc/rpc/pmap_clnt.h: Likewise.
82554         * sunrpc/rpc/pmap_prot.h: Likewise.
82555         * sunrpc/rpc/pmap_rmt.h: Likewise.
82556         * sunrpc/rpc/rpc.h: Likewise.
82557         * sunrpc/rpc/rpc_des.h: Likewise.
82558         * sunrpc/rpc/rpc_msg.h: Likewise.
82559         * sunrpc/rpc/svc.h: Likewise.
82560         * sunrpc/rpc/svc_auth.h: Likewise.
82561         * sunrpc/rpc/types.h: Likewise.
82562         * sunrpc/rpc/xdr.h: Likewise.
82563         * sunrpc/rpc_clntout.c: Likewise.
82564         * sunrpc/rpc_cmsg.c: Likewise.
82565         * sunrpc/rpc_common.c: Likewise.
82566         * sunrpc/rpc_cout.c: Likewise.
82567         * sunrpc/rpc_dtable.c: Likewise.
82568         * sunrpc/rpc_hout.c: Likewise.
82569         * sunrpc/rpc_main.c: Likewise.
82570         * sunrpc/rpc_parse.c: Likewise.
82571         * sunrpc/rpc_parse.h: Likewise.
82572         * sunrpc/rpc_prot.c: Likewise.
82573         * sunrpc/rpc_sample.c: Likewise.
82574         * sunrpc/rpc_scan.c: Likewise.
82575         * sunrpc/rpc_scan.h: Likewise.
82576         * sunrpc/rpc_svcout.c: Likewise.
82577         * sunrpc/rpc_tblout.c: Likewise.
82578         * sunrpc/rpc_util.c: Likewise.
82579         * sunrpc/rpc_util.h: Likewise.
82580         * sunrpc/rpcinfo.c: Likewise.
82581         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
82582         * sunrpc/rpcsvc/key_prot.x: Likewise.
82583         * sunrpc/rpcsvc/klm_prot.x: Likewise.
82584         * sunrpc/rpcsvc/mount.x: Likewise.
82585         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
82586         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
82587         * sunrpc/rpcsvc/rex.x: Likewise.
82588         * sunrpc/rpcsvc/rstat.x: Likewise.
82589         * sunrpc/rpcsvc/rusers.x: Likewise.
82590         * sunrpc/rpcsvc/sm_inter.x: Likewise.
82591         * sunrpc/rpcsvc/spray.x: Likewise.
82592         * sunrpc/rpcsvc/yppasswd.x: Likewise.
82593         * sunrpc/rtime.c: Likewise.
82594         * sunrpc/svc.c: Likewise.
82595         * sunrpc/svc_auth.c: Likewise.
82596         * sunrpc/svc_authux.c: Likewise.
82597         * sunrpc/svc_raw.c: Likewise.
82598         * sunrpc/svc_run.c: Likewise.
82599         * sunrpc/svc_simple.c: Likewise.
82600         * sunrpc/svc_tcp.c: Likewise.
82601         * sunrpc/svc_udp.c: Likewise.
82602         * sunrpc/svc_unix.c: Likewise.
82603         * sunrpc/svcauth_des.c: Likewise.
82604         * sunrpc/xcrypt.c: Likewise.
82605         * sunrpc/xdr.c: Likewise.
82606         * sunrpc/xdr_array.c: Likewise.
82607         * sunrpc/xdr_float.c: Likewise.
82608         * sunrpc/xdr_mem.c: Likewise.
82609         * sunrpc/xdr_rec.c: Likewise.
82610         * sunrpc/xdr_ref.c: Likewise.
82611         * sunrpc/xdr_sizeof.c: Likewise.
82612         * sunrpc/xdr_stdio.c: Likewise.
82613
82614         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
82615         handling.
82616
82617 2010-08-19  Andreas Schwab  <schwab@redhat.com>
82618
82619         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
82620
82621 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
82622
82623         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
82624         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
82625         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
82626         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
82627         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
82628         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
82629         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
82630         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
82631         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
82632         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
82633         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
82634         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
82635         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
82636         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
82637
82638 2010-07-26  Anton Blanchard  <anton@samba.org>
82639
82640         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
82641         * malloc/arena.c (heap_trim): Likewise.
82642
82643 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
82644
82645         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
82646         here.  Not...
82647         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
82648         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
82649
82650 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
82651
82652         * sysdeps/i386/elf/Makefile: New file.
82653
82654 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82655
82656         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
82657         from fanotify_init.
82658         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
82659         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82660
82661 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
82662
82663         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
82664         of strncasecmp_l.
82665         * sysdeps/multiarch/strcmp.S: Likewise.
82666
82667 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
82668
82669         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82670         strncase_l-nonascii.
82671         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82672         Add strncase_l-ssse3.
82673         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
82674         * sysdeps/x86_64/strcmp.S: Likewise.
82675         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
82676         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
82677         * sysdeps/x86_64/strncase.S: New file.
82678         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
82679         * sysdeps/x86_64/strncase_l.S: New file.
82680         * string/Makefile (strop-tests): Add strncasecmp.
82681         * string/test-strncasecmp.c: New file.
82682
82683         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
82684         warning.
82685
82686         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
82687         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
82688
82689 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
82690
82691         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
82692
82693 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
82694
82695         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
82696         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
82697         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
82698
82699 2010-05-01  Alan Modra  <amodra@gmail.com>
82700
82701         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
82702         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
82703         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
82704         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
82705         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
82706         tidying.  Don't tail-call __sigjmp_save for static lib.
82707         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
82708         save location.
82709         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
82710         (CALL_MCOUNT): Add eh info, and nop after bl.
82711         (TAIL_CALL_SYSCALL_ERROR): New macro.
82712         (PSEUDO_RET): Use it.
82713         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
82714         Correct save location of integer regs and cr.
82715         (_dl_profile_resolve): Correct cr save location.  Delete nops
82716         after bl when SHARED.  Reduce cfi size a little by better
82717         placement of cfi directives.
82718         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
82719         make a stack frame.  Instead use parm save area as a temp.
82720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
82721         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
82722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
82723         Don't make a stack frame for parent, use parm save area.
82724         Increase child stack frame to 112 bytes.  Don't save unused reg,
82725         and adjust reg usage.  Set up cfi on error recovery and
82726         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
82727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
82728         (__makecontext): Add dummy nop after jump to exit.
82729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
82730         Use correct parm save area and cr save, reduce stack frame.
82731         Correct cfi for possible PSEUDO_RET frame setup.
82732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
82733         Branch to local label emitted by PSEUDO_RET rather than
82734         __syscall_error.
82735
82736 2010-08-12  Andreas Schwab  <schwab@redhat.com>
82737
82738         [BZ #11904]
82739         * locale/programs/locale.c (print_assignment): New function.
82740         (show_locale_vars): Use it.
82741
82742 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
82743
82744         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
82745         field.
82746         (struct statfs64): Likewise.
82747         (_STATFS_F_FLAGS): Define.
82748         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
82749         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
82750         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
82751         (ST_VALID): Define locally.
82752         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
82753         __statvfs_getflags, use the provided value.
82754         * sysdeps/unix/sysv/linux/kernel-features.h: Define
82755         __ASSUME_STATFS_F_FLAGS.
82756
82757         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
82758
82759         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
82760         Add sys/fanotify.h.
82761         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
82762         fanotify_mask for GLIBC_2.13.
82763         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
82764         fanotify_init and fanotify_mark.
82765         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
82766         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
82767
82768         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
82769         Add prlimit.
82770         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
82771         prlimit64 for GLIBC_2.13.
82772         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
82773         prlimit64.
82774         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
82775         syscall.
82776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
82777         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
82778         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
82779         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
82780         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
82781         add prlimit alias.
82782         * sysdeps/unix/sysv/linux/prlimit.c: New file.
82783
82784         [BZ #11903]
82785         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
82786         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
82787
82788         * nss/Makefile: Add rules to build and run tst-nss-test1.
82789         * shlib-versions: Add entry for libnss_test1.
82790         * nss/nss_test1.c: New file.
82791         * nss/tst-nss-test1.c: New file.
82792
82793         * nss/nsswitch.c (__nss_database_custom): Define new variable.
82794         (__nss_configure_lookup): Set appropriate entry in
82795         __nss_configure_lookup to true.
82796         * nss/nsswitch.h: Define enum with indeces of databases in
82797         databases and __nss_database_custom arrays.  Declare
82798         __nss_database_custom.
82799         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
82800         to avoid using nscd when custom rules are installed.
82801         * nss/getXXbyYY_r.c: Likewise.
82802         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
82803
82804         * nss/nss_files/files-parse.c: Whitespace fixes.
82805
82806 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
82807
82808         [BZ #11883]
82809         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
82810         * posix/fnmatch_loop.c: Likewise.
82811
82812 2010-07-17  Andi Kleen  <ak@linux.intel.com>
82813
82814         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
82815         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
82816         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
82817         * Versions.def [GLIBC_2.13]: Add.
82818
82819 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
82820
82821         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
82822         Also fail if tpwd after pwuid call is NULL.
82823
82824 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82825
82826         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
82827         when converting to ms.
82828
82829 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
82830
82831         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
82832         EOPNOTSUPP errors with ENOTTY.
82833         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
82834         EOPNOTSUPP errors with ENOTTY.
82835
82836 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
82837
82838         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
82839         Add strcasecmp_l-ssse3.
82840         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
82841         strcasecmp.
82842         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
82843         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
82844         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
82845
82846 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
82847
82848         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
82849
82850         * string/Makefile (strop-tests): Add strcasecmp.
82851         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
82852         strcasecmp_l-nonascii.
82853         (gen-as-const-headers): Add locale-defines.sym.
82854         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
82855         * sysdeps/x86_64/strcasecmp.S: New file.
82856         * sysdeps/x86_64/strcasecmp_l.S: New file.
82857         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
82858         * sysdeps/x86_64/locale-defines.sym: New file.
82859         * string/test-strcasecmp.c: New file.
82860
82861         * string/test-strcasestr.c: Test both ends of the range of characters.
82862         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
82863
82864 2010-07-29  Roland McGrath  <roland@redhat.com>
82865
82866         [BZ #11856]
82867         * manual/locale.texi (Yes-or-No Questions): Fix example code.
82868
82869 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
82870
82871         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
82872         for ld.so.
82873
82874 2010-07-27  Andreas Schwab  <schwab@redhat.com>
82875
82876         * manual/memory.texi (Malloc Tunable Parameters): Document
82877         M_PERTURB.
82878
82879 2010-07-26  Roland McGrath  <roland@redhat.com>
82880
82881         [BZ #11840]
82882         * configure.in (-fgnu89-inline check): Set and substitute
82883         gnu89_inline, not libc_cv_gnu89_inline.
82884         * configure: Regenerated.
82885         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
82886
82887 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
82888
82889         * string/test-strnlen.c: New file.
82890         * string/Makefile (strop-tests): Add strnlen.
82891         * string/tester.c (test_strnlen): Add a few more test cases.
82892         * string/tst-strlen.c: Better error reporting.
82893
82894         * sysdeps/x86_64/strnlen.S: New file.
82895
82896 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
82897
82898         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
82899         lower-latency instructions.
82900
82901 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
82902
82903         * string/test-strcasestr.c: New file.
82904         * string/test-strstr.c: New file.
82905         * string/Makefile (strop-tests): Add strstr and strcasestr.
82906         * string/str-two-way.h: Don't undefine MAX.
82907         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
82908
82909 2010-07-21  Andreas Schwab  <schwab@redhat.com>
82910
82911         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
82912         strcasestr-nonascii.
82913         (CFLAGS-strcasestr-nonascii.c): Define.
82914         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
82915         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
82916         Remove unused attribute.
82917
82918 2010-07-20  Roland McGrath  <roland@redhat.com>
82919
82920         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
82921         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
82922         ld.so.cache was broken.  With it, there is no way to disable dsocaps
82923         like LD_HWCAP_MASK can disable hwcaps.
82924
82925 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
82926
82927         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
82928
82929 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
82930
82931         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
82932         call in strcasestr.
82933         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
82934         __strcasestr_sse42_nonascii.
82935         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
82936         strcasestr-nonascii.c.
82937         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
82938
82939 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
82940
82941         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
82942         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
82943         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
82944         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
82945
82946 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
82947
82948         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
82949         fcntl.
82950
82951 2010-07-06  Andreas Schwab  <schwab@redhat.com>
82952
82953         [BZ #11577]
82954         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
82955         dl_signal_cerror.
82956
82957 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
82958
82959         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
82960         _PC_PIPE_BUF using F_GETPIPE_SZ.
82961
82962 2010-07-05  Roland McGrath  <roland@redhat.com>
82963
82964         * manual/arith.texi (Rounding Functions): Fix rint description
82965         implicit in round description.
82966
82967 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
82968
82969         * elf/Makefile: Fix linking for a few tests to make recent linker
82970         happy.
82971
82972 2010-06-30  Andreas Schwab  <schwab@redhat.com>
82973
82974         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
82975         $(common-objpfx)libc_nonshared.a.
82976
82977 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
82978
82979         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
82980         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
82981         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
82982         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
82983         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
82984         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
82985         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
82986         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
82987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
82988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
82989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
82990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
82991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
82992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
82993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
82994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
82995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
82996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
82997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
82998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
82999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
83000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
83001         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
83002         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
83003         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
83004         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
83005         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
83006         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
83007         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
83008         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
83009         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
83010         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
83011         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
83012         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
83013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
83014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
83015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
83016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
83017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
83018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
83019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
83020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
83021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
83022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
83023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
83024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
83025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
83026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
83027
83028 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
83029
83030         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
83031         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
83032         * string/memmove.c (memmove): Renamed to ...
83033         (MEMMOVE): ...this.  Default to memmove.
83034         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
83035         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
83036         (END_CHK): Define.
83037         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
83038         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
83039         mempcpy-ssse3-back memmove-ssse3-back.
83040         * sysdeps/x86_64/multiarch/bcopy.S: New file .
83041         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
83042         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
83043         * sysdeps/x86_64/multiarch/memcpy.S: New file.
83044         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
83045         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
83046         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
83047         * sysdeps/x86_64/multiarch/memmove.c: New file.
83048         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
83049         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
83050         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
83051         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
83052         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
83053         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
83054         Define.
83055         (index_Fast_Copy_Backward): Define.
83056         (HAS_ARCH_FEATURE): Define.
83057         (HAS_FAST_REP_STRING): Define.
83058         (HAS_FAST_COPY_BACKWARD): Define.
83059
83060 2010-06-21  Andreas Schwab  <schwab@redhat.com>
83061
83062         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
83063         Restore proper fallback handling.
83064
83065 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
83066
83067         [BZ #11701]
83068         * posix/group_member.c (__group_member): Correct checking loop.
83069
83070         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
83071         OOM in getpwuid_r correctly.  Return error number when the caller
83072         should return, otherwise -1.
83073         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
83074         call returning > 0 value.
83075         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
83076
83077 2010-06-07  Andreas Schwab  <schwab@redhat.com>
83078
83079         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
83080         libc_nonshared.a from targets in modules-names.
83081
83082 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
83083
83084         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
83085         requires it.
83086
83087 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
83088
83089         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
83090         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
83091         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
83092         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
83093
83094 2010-06-02  Andreas Schwab  <schwab@redhat.com>
83095
83096         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
83097
83098 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
83099
83100         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
83101         and F_GETPIPE_SZ.
83102         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
83103         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
83104         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
83105         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
83106         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
83107         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
83108
83109 2010-06-14  Roland McGrath  <roland@redhat.com>
83110
83111         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
83112
83113 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
83114
83115         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
83116         __REDIRECT followed by __THROW.
83117         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
83118         * posix/getopt.h (getopt): Likewise.
83119
83120 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
83121
83122         * hurd/lookup-at.c (__file_name_lookup_at): Accept
83123         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
83124         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
83125         in AT_FLAGS.
83126         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
83127         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
83128
83129 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
83130
83131         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
83132
83133 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
83134
83135         [BZ #11640]
83136         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
83137         Properly check family and model.
83138
83139 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
83140
83141         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
83142
83143 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
83144
83145         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
83146
83147 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
83148
83149         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
83150         symbol reference.
83151
83152 2010-05-19  Andreas Schwab  <schwab@redhat.com>
83153
83154         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
83155         symbol reference.
83156
83157 2010-05-21  Andreas Schwab  <schwab@redhat.com>
83158
83159         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
83160         and internal_recvmmsg.
83161         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
83162         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
83163         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
83164         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
83165
83166         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
83167         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
83168         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
83169
83170 2010-05-20  Andreas Schwab  <schwab@redhat.com>
83171
83172         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
83173
83174 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
83175
83176         POWER7 optimizations.
83177         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
83178         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
83179
83180 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
83181
83182         * version.h: Update for 2.13 development version.
83183
83184 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
83185
83186         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
83187         exceptions.  Return 0.
83188
83189 2010-05-07  Roland McGrath  <roland@redhat.com>
83190
83191         * elf/ldconfig.c (main): Add a const.
83192
83193 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
83194
83195         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
83196         (args_options): Add no-idn option.
83197         (ahosts_keys_int): Add idn_flags to ai_flags.
83198         (parse_option): Handle 'i' option to clear idn_flags.
83199
83200         * malloc/malloc.c (_int_free): Possible race in the most recently
83201         added check.  Only act on the data if no current modification
83202         happened.
83203
83204 See ChangeLog.17 for earlier changes.